diff --git a/.ci/after-failure.sh b/.ci/after-failure.sh index a3cfdcf648..bad9ec49d8 100755 --- a/.ci/after-failure.sh +++ b/.ci/after-failure.sh @@ -8,43 +8,30 @@ # the LICENSE file that was distributed with this source code. autoconf --version -echo "----------------------------------------------------------------------------" +echo "-------------------------------------------------------------------------" cc --version -echo "----------------------------------------------------------------------------" +echo "-------------------------------------------------------------------------" make --version -echo "----------------------------------------------------------------------------" +echo "-------------------------------------------------------------------------" re2c --version -echo "----------------------------------------------------------------------------" +echo "-------------------------------------------------------------------------" -php -v -echo "----------------------------------------------------------------------------" +command -v php && (php -v; php -m) +echo "-------------------------------------------------------------------------" -phpize --version -echo "----------------------------------------------------------------------------" +command -v php-config && (php-config || true) # php-config returns 1 +echo "-------------------------------------------------------------------------" -php -m -echo "----------------------------------------------------------------------------" - -command -v php -echo "----------------------------------------------------------------------------" - -command -v php-config -echo "----------------------------------------------------------------------------" - -command -v phpize -echo "----------------------------------------------------------------------------" - -php-config -echo "----------------------------------------------------------------------------" +command -v phpize && phpize --version +echo "-------------------------------------------------------------------------" ls -al "$(php-config --extension-dir)" -echo "----------------------------------------------------------------------------" +echo "-------------------------------------------------------------------------" -if [ -f ./compile-errors.log ] -then +if [ -f ./compile-errors.log ]; then log_contents=$(cat ./compile-errors.log) [[ -z "${log_contents// }" ]] || { (>&1 echo "Compiler log:") diff --git a/.ci/build-phar.sh b/.ci/build-phar.sh index dc5b59b3cc..0ed8c94995 100755 --- a/.ci/build-phar.sh +++ b/.ci/build-phar.sh @@ -18,8 +18,8 @@ if [ "$(command -v box 2>/dev/null || true)" = "" ]; then exit 1 fi -box validate -box compile +box validate || exit 1 +box compile || exit 1 if [ ! -f "./zephir.phar" ] || [ ! -x "./zephir.phar" ]; then (>&2 echo "Something went wrong when building zephir.phar") diff --git a/.ci/install-zephir-parser.sh b/.ci/install-zephir-parser.sh index d7143b22ed..dce0752342 100755 --- a/.ci/install-zephir-parser.sh +++ b/.ci/install-zephir-parser.sh @@ -12,10 +12,11 @@ set -eu : "${ZEPHIR_PARSER_VERSION:=development}" -PHP_VERSION=$1 echo "Install Zephir Parser using version: $ZEPHIR_PARSER_VERSION" +PHP_INI_DIR="$(dirname "$(php -i | grep /.+/conf.d/.+.ini -oE | head -n 1)")" + git clone -b "$ZEPHIR_PARSER_VERSION" \ --depth 1 \ -q https://github.com/phalcon/php-zephir-parser \ @@ -24,11 +25,11 @@ git clone -b "$ZEPHIR_PARSER_VERSION" \ cd php-zephir-parser || exit 1 phpize -./configure --with-php-config=/usr/bin/php-config --enable-zephir_parser +./configure --with-php-config="$(command -v php-config)" --enable-zephir_parser make -j"$(getconf _NPROCESSORS_ONLN)" sudo make install echo 'extension="zephir_parser.so"' |\ - sudo tee "/etc/php/$PHP_VERSION/cli/conf.d/zephir_parser.ini" + sudo tee "$PHP_INI_DIR/zephir_parser.ini" php --ri "Zephir Parser" diff --git a/.ci/memcheck.sh b/.ci/memcheck.sh index 68ad5a43e7..f5ce496833 100755 --- a/.ci/memcheck.sh +++ b/.ci/memcheck.sh @@ -37,7 +37,7 @@ valgrind \ --num-callers=20 \ --run-libc-freeres=no \ php \ - -d "extension=ext/modules/test.so" \ + -d "extension=ext/modules/stub.so" \ "vendor/bin/simple-phpunit" \ --no-coverage \ --testsuite "$test_suite" diff --git a/.ci/run-tests.sh b/.ci/run-tests.sh index 5931f57275..1011793270 100755 --- a/.ci/run-tests.sh +++ b/.ci/run-tests.sh @@ -20,10 +20,10 @@ fi vendor/bin/simple-phpunit --version php \ - -d extension=ext/modules/test.so \ + -d extension=ext/modules/stub.so \ vendor/bin/simple-phpunit \ --colors=always \ - --bootstrap unit-tests/ext-bootstrap.php \ + --bootstrap tests/ext-bootstrap.php \ --testsuite ${test_suite} php \ diff --git a/.codacy.yml b/.codacy.yml index af9dc44f49..ed6d8fea13 100644 --- a/.codacy.yml +++ b/.codacy.yml @@ -4,6 +4,10 @@ engines: enabled: true config: rulesets: "phpmd.xml.dist" + phpcs: + enabled: true + config: + ruleset: "phpcs.xml.dist" exclude_paths: - 'ext/**' diff --git a/.codecov.yml b/.codecov.yml index afa6740bcd..e16d276bec 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -34,7 +34,6 @@ ignore: - ".github/.*" - ".zephir/.*" - "ide/.*" - - "/home/travis/.phpenv/.*" - "php-zephir-parser/.*" - ".phpunit/.*" - "tests/.*" diff --git a/.gitattributes b/.gitattributes index 96fd3d7a36..ba6684525b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,9 +2,8 @@ prototypes/* linguist-vendored -tests/* linguist-vendored -unit-tests/* linguist-vendored -unit-tests/fixtures/* linguist-vendored +ext/* linguist-vendored +stub/* linguist-vendored *.xml.dist text eol=lf linguist-language=XML *.json.dist text eol=lf linguist-language=JSON diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 374f0ca5bf..4131298ea4 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -8,18 +8,20 @@ on: pull_request: branches: - master + - develoment jobs: analysis: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2-beta + - name: Checkout Code + uses: actions/checkout@v2 with: fetch-depth: 1 - name: Setup PHP - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: '7.3' coverage: none diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-unix.yml similarity index 70% rename from .github/workflows/build-linux.yml rename to .github/workflows/build-unix.yml index 4a42aa9554..cef414146a 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-unix.yml @@ -1,4 +1,4 @@ -name: Linux CI +name: Unix CI on: push: @@ -15,13 +15,17 @@ env: jobs: linux: - name: "Linux: PHP v${{ matrix.php }}" - runs-on: ubuntu-latest + name: "${{ matrix.os }}: PHP v${{ matrix.php }}" + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: + os: + - ubuntu-18.04 + # - macos-latest + php: - '7.0' - '7.1' @@ -74,16 +78,16 @@ jobs: date.timezone=UTC, xdebug.max_nesting_level=256 - - name: Set environment variables + - name: Set Environment Variables run: | - echo "::set-env name=SYMFONY_PHPUNIT_VERSION::${{ matrix.symfony_phpunit }}" + echo ::set-env name=SYMFONY_PHPUNIT_VERSION::${{ matrix.symfony_phpunit }} - - name: Checkout code + - name: Checkout Code uses: actions/checkout@v2 with: fetch-depth: 5 - - name: Common settings + - name: Common Settings run: | # Core dump settings ulimit -c unlimited -S || true @@ -94,7 +98,8 @@ jobs: # Will be used before as a cache key export CPUHASH="$(cat /proc/cpuinfo | grep "model name" | head -n 1 | cut -d':' -f2 | md5sum)" - - name: Setup APT repositories + - name: Setup APT Repositories + if: startsWith(runner.os, 'Linux') run: | # We don't need this at all, and our # builds often fails because Microsoft @@ -102,14 +107,19 @@ jobs: sudo rm -f /etc/apt/sources.list.d/dotnetdev.list sudo rm -f /etc/apt/sources.list.d/azure*.list - - name: Install system dependencies + # - name: Install System Dependencies (macOS) + # if: startsWith(runner.os, 'macOS') + # run: brew install re2c + + - name: Install System Dependencies (Linux) + if: startsWith(runner.os, 'Linux') run: | sudo apt-get update --quiet --yes 1>/dev/null sudo apt-get install --no-install-recommends -q -y re2c - name: Get Zephir Parser Cache Key id: pcache - run: echo "::set-output name=key::$(echo -n ${ZEPHIR_PARSER_VERSION}_${CPUHASH})" + run: echo ::set-output name=key::$(echo -n ${ZEPHIR_PARSER_VERSION}_${CPUHASH}) - name: Cache Zephir Parser uses: actions/cache@v1 @@ -119,30 +129,31 @@ jobs: restore-keys: ${{ runner.os }}-${{ matrix.php }}-zephir-parser- - name: Install Zephir Parser - run: .ci/install-zephir-parser.sh ${{ matrix.php }} - - - name: Setup GitHub Token - run: | - # To increase the GitHub rate limit we're use GitHub authentication - if [ -n "${{ secrets.GH_TOKEN }}" ]; then - composer config github-oauth.github.com "${{ secrets.GH_TOKEN }}" - fi + run: .ci/install-zephir-parser.sh - name: Get Composer Cache Directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo ::set-output name=dir::$(composer config cache-files-dir) - name: Setup Composer Cache uses: actions/cache@v1 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: ${{ runner.os }}-composer- + restore-keys: | + ${{ runner.os }}-composer- - - name: Install project dependencies + - name: Setup Composer Token + run: | + # To increase the GitHub rate limit we're use GitHub authentication + if [ ! -z '${{ secrets.COMPOSER_TOKEN }}' ]; then + composer config github-oauth.github.com ${{ secrets.COMPOSER_TOKEN }} + fi + + - name: Install Project Dependencies run: composer install --prefer-dist --no-interaction --no-ansi --no-progress --no-suggest - - name: Prepare Zephir executable + - name: Prepare Zephir Executable run: sudo ln -s "$(pwd)/zephir" /usr/local/bin/zephir - name: Fast Commands Test @@ -154,7 +165,18 @@ jobs: zephir stubs zephir api - - name: Compile Test Project + # - name: Compile Test Project (macOS) + # if: startsWith(runner.os, 'macOS') + # run: | + # # These variables are needed to produce non optimized code + # CFLAGS="-O0 -g" + # CXXFLAGS="-O0 -g" + + # # Export variables in the subshell to not shadow global variables + # ( export CFLAGS CXXFLAGS; zephir compile ) || false + + - name: Compile Stub Project (Linux) + if: startsWith(runner.os, 'Linux') run: | # These variables are needed to produce non optimized code as well as for code coverage LDFLAGS="--coverage" @@ -165,20 +187,20 @@ jobs: ( export LDFLAGS CFLAGS CXXFLAGS; zephir compile ) || false - name: Setup Problem Matchers for PHPUnit - run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + run: echo ::add-matcher::${{ runner.tool_cache }}/phpunit.json - - name: Unit testing + - name: Unit Testing run: .ci/run-tests.sh - - name: Black-box testing + - name: Black-box Testing if: always() - run: cd unit-tests/sharness && PHP=$(which php) make + run: cd tests/sharness && PHP=$(which php) make - name: After Failure if: failure() run: .ci/after-failure.sh - - name: Upload code coverage report + - name: Upload Code Coverage Report uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -187,6 +209,6 @@ jobs: flags: unittests fail_ci_if_error: false - - name: Success reporting + - name: Success Reporting if: success() run: git log --format=fuller -5 diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index cefc7f3423..7ec19f7433 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -2,12 +2,15 @@ name: Windows CI on: push: + branches: + - development paths-ignore: - '**.md' - '**.txt' pull_request: branches: - master + - development env: PARSER_VERSION: 1.3.4 @@ -15,9 +18,9 @@ env: PHP_SDK_VERSION: 2.2.0 PHP_DEVPACK: C:\tools\php-devpack PHP_SDK_PATH: C:\tools\php-sdk - PACKAGE_PREFIX: test - EXTENSION_NAME: test - EXTENSION_FILE: php_test.dll + PACKAGE_PREFIX: stub + EXTENSION_NAME: stub + EXTENSION_FILE: php_stub.dll jobs: windows: @@ -60,7 +63,7 @@ jobs: env: PHPTS: ${{ matrix.build_type }} - - name: Set Up Environment Variables + - name: Set Environment Variables run: | echo "::set-env name=SYMFONY_PHPUNIT_VERSION::${{ matrix.symfony_phpunit }}" echo "::set-env name=PHP_VERSION::$(php -r 'echo phpversion();')" @@ -139,9 +142,15 @@ jobs: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} restore-keys: | - ${{ runner.os }}-composer-${{ env.cache-name }}- ${{ runner.os }}-composer- - ${{ runner.os }}- + + - name: Setup GitHub Token + shell: bash + run: | + # To increase the GitHub rate limit we're use GitHub authentication + if [ ! -z '${{ secrets.COMPOSER_TOKEN }}' ]; then + composer config github-oauth.github.com ${{ secrets.COMPOSER_TOKEN }} + fi - name: Install Project Dependencies run: composer install --prefer-dist --no-interaction --no-ansi --no-progress --no-suggest @@ -161,24 +170,32 @@ jobs: # .\zephir.bat stubs # .\zephir.bat api - - name: Compile Test Project - run: .\zephir.bat compile -Wnonexistent-function -Wnonexistent-class -Wunused-variable -Wnonexistent-constant -Wunreachable-code -Wnot-supported-magic-constant -Wnon-valid-decrement - - - name: Make Test Extension + - name: Compile Stub Project + run: | + .\zephir.bat compile ` + -Wnonexistent-function ` + -Wnonexistent-class ` + -Wunused-variable ` + -Wnonexistent-constant ` + -Wunreachable-code ` + -Wnot-supported-magic-constant ` + -Wnon-valid-decrement + + - name: Make Stub Extension shell: cmd run: | cd ext nmake 2> "%GITHUB_WORKSPACE%\compile-errors.log" 1> "%GITHUB_WORKSPACE%\compile.log" - - name: Inspecting Test Extension DLL File + - name: Inspecting Stub Extension DLL File run: Get-PhpExtension "${env:RELEASE_DLL_PATH}" - - name: Enable Test Extension + - name: Enable Stub Extension run: | Import-Module .\.ci\win-ci-tools.psm1 EnableTestExtension - - name: Minimal Load Test for Test Extension + - name: Minimal Load Test for Stub Extension run: php --ri "${env:EXTENSION_NAME}" - name: Install PHPUnit @@ -189,7 +206,7 @@ jobs: run: | SET X=0 php phpunit install - php phpunit --bootstrap %GITHUB_WORKSPACE%\unit-tests\ext-bootstrap.php --testsuite Extension_Php72 || SET X=!errorlevel! + php phpunit --bootstrap %GITHUB_WORKSPACE%\tests\ext-bootstrap.php --testsuite Extension_Php72 || SET X=!errorlevel! php phpunit --testsuite Zephir || SET X=!errorlevel! exit %X% diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9245bfd126..33dcd29818 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,51 +10,47 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set environment variables + - name: Setup Environment Variables uses: allenevans/set-env@v1.0.0 with: BOX_VERSION: '3.8.4' - - name: Checkout code - uses: actions/checkout@v2-beta + - name: Checkout Code + uses: actions/checkout@v2 with: fetch-depth: 5 - name: Setup PHP - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: '7.2' extensions: intl, zip, zlib coverage: none ini-values: memory_limit=1G, phar.readonly=0 - - name: Common settings - run: | - git config --global user.name cicdbot - git config --global user.email team@zephir-lang.com - - # Choose a suitable PHP version to build PHAR - composer config platform.php 7.0.33 - - - name: Setup GitHub Token - run: | - # To increase the GitHub rate limit we're use GitHub authentication - if [ -n "${{ secrets.GH_TOKEN }}" ]; then - composer config github-oauth.github.com "${{ secrets.GH_TOKEN }}" - fi + - name: Choose a Suitable PHP Version to Build PHAR + run: composer config platform.php 7.0.33 - name: Get Composer Cache Directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo ::set-output name=dir::$(composer config cache-files-dir) - - name: Cache dependencies + - name: Setup Composer Cache uses: actions/cache@v1 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: ${{ runner.os }}-composer- + restore-keys: | + ${{ runner.os }}-composer- - - name: Install project dependencies + - name: Setup GitHub Token + run: | + # To increase the GitHub rate limit we're use GitHub authentication + if [ ! -z '${{ secrets.COMPOSER_TOKEN }}' ]; then + composer config github-oauth.github.com ${{ secrets.COMPOSER_TOKEN }} + fi + + - name: Install Project Dependencies run: composer install --prefer-dist --no-interaction --no-ansi --no-progress --no-suggest - name: Install Box @@ -68,34 +64,22 @@ jobs: sudo mv ./box /usr/local/bin - name: Build Zephir PHAR - run: | - .ci/build-phar.sh - ls -al ./zephir.phar - cat ".git/${{ github.ref }}" + run: .ci/build-phar.sh - - name: Get the version + - name: Geting Tag Name id: get-version run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} - name: Create Release - id: create_release - uses: actions/create-release@v1.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ncipollo/release-action@v1 with: - tag_name: ${{ github.ref }} - release_name: ${{ steps.get-version.outputs.VERSION }} + # This token is provided by GitHub Actions. + # You DO NOT need to create your own token. + token: ${{ secrets.GITHUB_TOKEN }} + name: ${{ steps.get-version.outputs.version }} + tag: ${{ steps.get-version.outputs.version }} body: 'All notable changes to this version has been documented in the CHANGELOG.md file.' - draft: false - prerelease: false - - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./zephir.phar - asset_name: zephir.phar - asset_content_type: application/x-php + # This will update existing tags if any + allowUpdates: true + artifacts: zephir.phar + artifactContentType: application/x-php diff --git a/.php_cs.dist b/.php_cs.dist index 0ee8ea4288..4eea91ea28 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -29,9 +29,10 @@ $finder = PhpCsFixer\Finder::create() 'ext', 'ide', 'templates/ZendEngine3', - 'unit-tests/sharness', + 'tests/fixtures', + 'tests/sharness', ]) - ->notPath('#unit-tests/fixtures/stubs/.*#'); + ->notPath('#tests/fixtures/stubs/.*#'); return PhpCsFixer\Config::create() ->setRiskyAllowed(true) diff --git a/CHANGELOG.md b/CHANGELOG.md index 620752b9b2..cb9415dd96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,13 +5,24 @@ The format is based on [Keep a Changelog](http://keepachangelog.com) and this project adheres to [Semantic Versioning](http://semver.org). ## [Unreleased] +## [0.12.19] - 2020-05-13 +### Fixed +- Fixed duplicate definition with GCC 10 + [ice/framework#266](https://github.com/ice/framework/pull/266) +- Fixed initialization of object properties with default values when + the object is an instance of a child class + [#2089](https://github.com/phalcon/zephir/issues/2089) + +### Changed +- Improved stubs generation for methods which may return object or null + [#2092](https://github.com/phalcon/zephir/issues/2092) ## [0.12.18] - 2020-04-25 ### Fixed - In some cases for C "control characters" aren't properly escaped [#2065](https://github.com/phalcon/zephir/issues/2065) - Zephir ignored property visibility and has not thrown error when setting - private/protected properties in scope that shouldn't intended for it + private/protected properties in scope that shouldn't intend for it [#2078](https://github.com/phalcon/zephir/pull/2078), [phalcon/cphalcon#14810](https://github.com/phalcon/cphalcon/issues/14810), [phalcon/cphalcon#14766](https://github.com/phalcon/cphalcon/issues/14766) @@ -399,7 +410,8 @@ and this project adheres to [Semantic Versioning](http://semver.org). - Fixed casting resource to int (only ZendEngine 3) [#1524](https://github.com/phalcon/zephir/issues/1524) -[Unreleased]: https://github.com/phalcon/zephir/compare/0.12.18...HEAD +[Unreleased]: https://github.com/phalcon/zephir/compare/0.12.19...HEAD +[0.12.19]: https://github.com/phalcon/zephir/compare/0.12.18...0.12.19 [0.12.18]: https://github.com/phalcon/zephir/compare/0.12.17...0.12.18 [0.12.17]: https://github.com/phalcon/zephir/compare/0.12.16...0.12.17 [0.12.16]: https://github.com/phalcon/zephir/compare/0.12.15...0.12.16 diff --git a/Library/AliasManager.php b/Library/AliasManager.php index 55885527f0..6ab6aafd6e 100644 --- a/Library/AliasManager.php +++ b/Library/AliasManager.php @@ -72,6 +72,8 @@ public function getAliases(): array * Returns alias by fully qualified class name. * * @param string $className - fully qualified class name + * + * @return string */ public function getAliasForClassName(string $className): string { diff --git a/Library/Backends/ZendEngine2/Backend.php b/Library/Backends/ZendEngine2/Backend.php index cb674a52d7..ec5bfe792a 100644 --- a/Library/Backends/ZendEngine2/Backend.php +++ b/Library/Backends/ZendEngine2/Backend.php @@ -632,25 +632,25 @@ public function fetchClass(Variable $zendClassEntry, $className, $guarded, Compi ); } - public function fetchProperty(Variable $symbolVariable, Variable $variableVariable, $property, $readOnly, CompilationContext $context, $useOptimized = false) - { - if ($useOptimized) { - if ($readOnly) { - $context->codePrinter->output($symbolVariable->getName().' = zephir_fetch_nproperty_this('.$variableVariable->getName().', SL("'.$property.'"), PH_NOISY_CC);'); - } else { - $context->codePrinter->output('zephir_read_property_this(&'.$symbolVariable->getName().', '.$variableVariable->getName().', SL("'.$property.'"), PH_NOISY_CC);'); - } - } else { - if ($property instanceof Variable) { - $context->codePrinter->output('zephir_read_property_zval(&'.$symbolVariable->getName().', '.$variableVariable->getName().', '.$this->getVariableCode($property).', PH_NOISY_CC);'); - } else { - $context->codePrinter->output('zephir_read_property(&'.$symbolVariable->getName().', '.$variableVariable->getName().', SL("'.$property.'"), PH_NOISY_CC);'); - } - } + public function fetchProperty( + Variable $symbolVariable, + Variable $variableVariable, + $property, + $readOnly, + CompilationContext $context + ) { + throw new CompilerException( + 'ZendEngine2 backend is no longer supported' + ); } - public function fetchStaticProperty(Variable $symbolVariable, $classDefinition, $property, $readOnly, CompilationContext $context) - { + public function fetchStaticProperty( + Variable $symbolVariable, + $classDefinition, + $property, + $readOnly, + CompilationContext $context + ) { throw new CompilerException( 'ZendEngine2 backend is no longer supported' ); diff --git a/Library/Backends/ZendEngine3/Backend.php b/Library/Backends/ZendEngine3/Backend.php index 28401eb95d..0c07c1d223 100644 --- a/Library/Backends/ZendEngine3/Backend.php +++ b/Library/Backends/ZendEngine3/Backend.php @@ -739,20 +739,55 @@ public function fetchClass(Variable $zendClassEntry, $className, $guarded, Compi } } - public function fetchProperty(Variable $symbolVariable, Variable $variableVariable, $property, $readOnly, CompilationContext $context, $useOptimized = false) - { + /** + * {@inheritdoc} + * + * @param Variable $symbolVariable + * @param Variable $variableVariable + * @param Variable|string $property + * @param bool $readOnly + * @param CompilationContext $context + * + * @return void + */ + public function fetchProperty( + Variable $symbolVariable, + Variable $variableVariable, + $property, + $readOnly, + CompilationContext $context + ) { $flags = 'PH_NOISY_CC'; if ($readOnly) { $flags .= ' | PH_READONLY'; } + $variableCode = $this->getVariableCode($variableVariable); $symbol = $this->getVariableCode($symbolVariable); - //TODO: maybe optimizations (read_nproperty/quick) for thisScope access in NG (as in ZE2 - if necessary) + if ($property instanceof Variable) { - $context->codePrinter->output('zephir_read_property_zval('.$symbol.', '.$variableCode.', '.$this->getVariableCode($property).', '.$flags.');'); - } else { - $context->codePrinter->output('zephir_read_property('.$symbol.', '.$variableCode.', SL("'.$property.'"), '.$flags.');'); + $context->codePrinter->output( + sprintf( + 'zephir_read_property_zval(%s, %s, %s, %s);', + $symbol, + $variableCode, + $this->getVariableCode($property), + $flags + ) + ); + + return; + } + + $template = 'zephir_read_property(%s, %s, ZEND_STRL("%s"), %s);'; + /* Are we going to init default object property value? */ + if ($context->currentMethod && $context->currentMethod->isInitializer()) { + $template = 'zephir_read_property_ex(%s, %s, ZEND_STRL("%s"), %s);'; } + + $context->codePrinter->output( + sprintf($template, $symbol, $variableCode, $property, $flags) + ); } /** @@ -852,7 +887,6 @@ public function resolveValue($value, CompilationContext $context, $usePointer = */ public function updateProperty(Variable $variable, $property, $value, CompilationContext $context) { - // TODO(serghei): maybe optimizations as well as above $value = $this->resolveValue($value, $context); if ($property instanceof Variable) { @@ -868,34 +902,20 @@ public function updateProperty(Variable $variable, $property, $value, Compilatio return; } + $template = 'zephir_update_property_zval(%s, ZEND_STRL("%s"), %s);'; /* Are we going to init default object property value? */ - if ($context->currentMethod && - preg_match('/^zephir_init_properties/', $context->currentMethod->getName())) { - $context->codePrinter->output( - sprintf( - 'zend_update_property(Z_OBJCE_P(%s), %s, ZEND_STRL("%s"), %s);', - $this->getVariableCode($variable), - $this->getVariableCode($variable), - $property, - $value - ) - ); - - return; + if ($context->currentMethod && $context->currentMethod->isInitializer()) { + $template = 'zephir_update_property_zval_ex(%s, ZEND_STRL("%s"), %s);'; } $context->codePrinter->output( - sprintf( - 'zephir_update_property_zval(%s, ZEND_STRL("%s"), %s);', - $this->getVariableCode($variable), - $property, - $value - ) + sprintf($template, $this->getVariableCode($variable), $property, $value) ); } public function updateStaticProperty($classEntry, $property, $value, CompilationContext $context) { + // TODO(serghei): Sort out as well as above $value = $this->resolveValue($value, $context); $context->codePrinter->output('zephir_update_static_property_ce('.$classEntry.', ZEND_STRL("'.$property.'"), '.$value.');'); } diff --git a/Library/BaseBackend.php b/Library/BaseBackend.php index 53aa3e0745..2847fdaad6 100644 --- a/Library/BaseBackend.php +++ b/Library/BaseBackend.php @@ -225,7 +225,22 @@ abstract public function fetchGlobal(Variable $globalVar, CompilationContext $co abstract public function fetchClass(Variable $var, $name, $guarded, CompilationContext $context); - abstract public function fetchProperty(Variable $symbolVariable, Variable $variableVariable, $property, $readOnly, CompilationContext $context, $useOptimized = false); + /** + * Fetch object's property. + * + * @param Variable $symbolVariable + * @param Variable $variableVariable + * @param Variable|string $property + * @param bool $readOnly + * @param CompilationContext $context + */ + abstract public function fetchProperty( + Variable $symbolVariable, + Variable $variableVariable, + $property, + $readOnly, + CompilationContext $context + ); abstract public function fetchStaticProperty(Variable $symbolVariable, $classDefinition, $property, $readOnly, CompilationContext $context); diff --git a/Library/ClassMethod.php b/Library/ClassMethod.php index 65fc4fcd3f..3b71782ad2 100644 --- a/Library/ClassMethod.php +++ b/Library/ClassMethod.php @@ -2107,7 +2107,7 @@ public function compile(CompilationContext $compilationContext) $globalVar = $symbolTable->getVariable($name); $codePrinter->preOutput("\t".$compilationContext->backend->fetchGlobal($globalVar, $compilationContext, false)); } - if ($variable->isLocalSatic()) { + if ($variable->isLocalStatic()) { $staticVar = $symbolTable->getVariable($name); $codePrinter->preOutput(sprintf( diff --git a/Library/Compiler.php b/Library/Compiler.php index 3f8cdbce5d..2e93336c4b 100644 --- a/Library/Compiler.php +++ b/Library/Compiler.php @@ -146,7 +146,7 @@ public function setPrototypesPath($prototypesPath) * * @throws IllegalStateException in case of absence internal prototypes directory */ - private function reslovePrototypesPath() + private function resolvePrototypesPath() { $prototypesPath = $this->prototypesPath; @@ -657,7 +657,7 @@ public function generate($fromGenerate = false) /* * Load additional extension prototypes. */ - $prototypesPath = $this->reslovePrototypesPath(); + $prototypesPath = $this->resolvePrototypesPath(); foreach (new \DirectoryIterator($prototypesPath) as $file) { if ($file->isDir() || $file->isDot()) { continue; diff --git a/Library/Expression/NativeArray.php b/Library/Expression/NativeArray.php index efcf5b6db9..ee845539a7 100644 --- a/Library/Expression/NativeArray.php +++ b/Library/Expression/NativeArray.php @@ -215,7 +215,7 @@ public function compile($expression, CompilationContext $compilationContext) $arrayLength = gmp_strval(gmp_nextprime($arrayLength - 1)); } $oldSymbolVariable = $symbolVariable; - if ($this->expectingVariable && $symbolVariable->geVariantInits() >= 1) { + if ($this->expectingVariable && $symbolVariable->getVariantInits() >= 1) { $symbolVariable = $compilationContext->symbolTable->addTemp('variable', $compilationContext); $symbolVariable->initVariant($compilationContext); $compilationContext->backend->initArray($symbolVariable, $compilationContext, $arrayLength > 0 ? $arrayLength : null); diff --git a/Library/Expression/PropertyAccess.php b/Library/Expression/PropertyAccess.php index 343dfb3cf1..c99c86b6ad 100644 --- a/Library/Expression/PropertyAccess.php +++ b/Library/Expression/PropertyAccess.php @@ -222,10 +222,7 @@ public function compile($expression, CompilationContext $compilationContext) } $readOnly = $this->readOnly || $readOnly; - $useOptimized = $classDefinition == $currentClassDefinition; - if (!$compilationContext->backend->isZE3()) { - $readOnly = $useOptimized && $readOnly; - } + if ($makeSymbolVariable) { if ($readOnly) { $symbolVariable = $compilationContext->symbolTable->getTempNonTrackedVariable('variable', $compilationContext); @@ -248,7 +245,7 @@ public function compile($expression, CompilationContext $compilationContext) $compilationContext->headersManager->add('kernel/object'); - $compilationContext->backend->fetchProperty($symbolVariable, $variableVariable, $property, $readOnly, $compilationContext, $useOptimized); + $compilationContext->backend->fetchProperty($symbolVariable, $variableVariable, $property, $readOnly, $compilationContext); return new CompiledExpression('variable', $symbolVariable->getRealName(), $expression); } diff --git a/Library/Expression/PropertyDynamicAccess.php b/Library/Expression/PropertyDynamicAccess.php index bdad71f891..62fbb1ea94 100644 --- a/Library/Expression/PropertyDynamicAccess.php +++ b/Library/Expression/PropertyDynamicAccess.php @@ -138,7 +138,7 @@ public function compile($expression, CompilationContext $compilationContext) $compilationContext->headersManager->add('kernel/object'); $property = $propertyVariable ? $propertyVariable : add_slashes($expression['right']['value']); - $compilationContext->backend->fetchProperty($symbolVariable, $variableVariable, $property, false, $compilationContext, false); + $compilationContext->backend->fetchProperty($symbolVariable, $variableVariable, $property, false, $compilationContext); return new CompiledExpression('variable', $symbolVariable->getRealName(), $expression); } diff --git a/Library/Statements/Let/Variable.php b/Library/Statements/Let/Variable.php index c8e1ee8ad8..f5ebb86c5f 100644 --- a/Library/Statements/Let/Variable.php +++ b/Library/Statements/Let/Variable.php @@ -41,7 +41,7 @@ class Variable * @throws CompilerException */ public function assign( - $variable, + string $variable, ZephirVariable $symbolVariable, CompiledExpression $resolvedExpr, ReadDetector $readDetector, @@ -122,7 +122,7 @@ public function assign( private function doNumericAssignment( CodePrinter $codePrinter, CompiledExpression $resolvedExpr, - $variable, + string $variable, array $statement, CompilationContext $compilationContext ) { @@ -359,7 +359,7 @@ private function doNumericAssignment( private function doDoubleAssignment( CodePrinter $codePrinter, CompiledExpression $resolvedExpr, - $variable, + string $variable, array $statement, CompilationContext $compilationContext ) { @@ -547,7 +547,7 @@ private function doStringAssignment( CodePrinter $codePrinter, CompiledExpression $resolvedExpr, ZephirVariable $symbolVariable, - $variable, + string $variable, array $statement, CompilationContext $compilationContext ) { @@ -734,7 +734,7 @@ private function doArrayAssignment( CodePrinter $codePrinter, CompiledExpression $resolvedExpr, ZephirVariable $symbolVariable, - $variable, + string $variable, array $statement, CompilationContext $compilationContext ) { @@ -781,7 +781,7 @@ private function doArrayAssignment( private function doBoolAssignment( CodePrinter $codePrinter, CompiledExpression $resolvedExpr, - $variable, + string $variable, array $statement, CompilationContext $compilationContext ) { @@ -918,7 +918,7 @@ private function doVariableAssignment( CodePrinter $codePrinter, CompiledExpression $resolvedExpr, ZephirVariable $symbolVariable, - $variable, + string $variable, array $statement, CompilationContext $compilationContext, ReadDetector $readDetector diff --git a/Library/Types.php b/Library/Types.php index be327f6288..eb13566d1c 100644 --- a/Library/Types.php +++ b/Library/Types.php @@ -40,6 +40,7 @@ final class Types * Gets PHP compatible return type from class method. * * @param ClassMethod $method + * @param array|null $returnTypes * * @return string */ @@ -49,6 +50,7 @@ public function getReturnTypeAnnotation(ClassMethod $method, array $returnTypes return ''; } + $isProcessedReturnType = null !== $returnTypes; $returnTypes = $returnTypes ?? $method->getReturnTypes(); $typesCount = \count($returnTypes); @@ -121,6 +123,16 @@ public function getReturnTypeAnnotation(ClassMethod $method, array $returnTypes return implode('|', array_keys($returnTypes)); } + if ($isTypeHinted && $isProcessedReturnType) { + $withoutNullable = array_filter(array_values($returnTypes), static function ($ret) { + if ($ret !== static::T_NULL) { + return $ret; + } + }); + + return implode('|', array_values($withoutNullable)).$nullableType; + } + if ($isCollection) { return implode('|', array_values($returnTypes)); } @@ -312,7 +324,8 @@ private function isNumeric(array $types): bool */ private function isNullable(array $types): bool { - return \array_key_exists(static::T_NULL, $types) + return (\array_key_exists(static::T_NULL, $types) + || \in_array(static::T_NULL, $types)) && 1 !== \count($types); } diff --git a/Library/Variable.php b/Library/Variable.php index 0a63fbe2af..6081ebfe4e 100644 --- a/Library/Variable.php +++ b/Library/Variable.php @@ -11,6 +11,7 @@ namespace Zephir; +use ReflectionClass; use Zephir\Exception\CompilerException; use Zephir\Variable\Globals; @@ -170,7 +171,7 @@ class Variable implements TypeAwareInterface * @param string $name * @param Branch $branch */ - public function __construct($type, $name, Branch $branch = null) + public function __construct(string $type, string $name, Branch $branch = null) { $this->globalsManager = new Globals(); @@ -208,7 +209,7 @@ public function getInitBranches() * * @param string $type */ - public function setType($type) + public function setType(string $type) { $this->type = $type; } @@ -228,7 +229,7 @@ public function getType() * * @param bool $localOnly */ - public function setLocalOnly($localOnly) + public function setLocalOnly(bool $localOnly) { $this->localOnly = $localOnly; } @@ -248,7 +249,7 @@ public function isLocalOnly() * * @param bool $doublePointer */ - public function setIsDoublePointer($doublePointer) + public function setIsDoublePointer(bool $doublePointer) { $this->doublePointer = $doublePointer; } @@ -290,7 +291,7 @@ public function getName() * * @param string $lowName */ - public function setLowName($lowName) + public function setLowName(string $lowName) { $this->lowName = $lowName; } @@ -300,7 +301,7 @@ public function setLowName($lowName) * * @param bool $readOnly */ - public function setReadOnly($readOnly) + public function setReadOnly(bool $readOnly) { $this->readOnly = $readOnly; } @@ -320,7 +321,7 @@ public function isReadOnly() * * @param bool $temporal */ - public function setTemporal($temporal) + public function setTemporal(bool $temporal) { $this->temporal = $temporal; } @@ -340,7 +341,7 @@ public function isTemporal() * * @param bool $idle */ - public function setIdle($idle) + public function setIdle(bool $idle) { $this->idle = false; @@ -366,7 +367,7 @@ public function isIdle() * * @param bool $reusable */ - public function setReusable($reusable) + public function setReusable(bool $reusable) { $this->reusable = $reusable; } @@ -384,10 +385,10 @@ public function isReusable() /** * Sets the latest node where a variable was used. * - * @param bool $used - * @param array $node + * @param bool $used + * @param array|null $node */ - public function setUsed($used, $node) + public function setUsed(bool $used, array $node = null) { $this->used = $used; $this->usedNode = $node; @@ -418,7 +419,7 @@ public function getLastUsedNode() * * @param bool $memoryTracked */ - public function setMemoryTracked($memoryTracked) + public function setMemoryTracked(bool $memoryTracked) { $this->memoryTracked = $memoryTracked; } @@ -504,7 +505,7 @@ public function getClassTypes() /** * Sets the PHP class related to variable. * - * @param ClassDefinition $associatedClass + * @param ClassDefinition|ReflectionClass $associatedClass */ public function setAssociatedClass($associatedClass) { @@ -580,11 +581,11 @@ public function hasAnyDynamicType($types) /** * Check if the variable has at least one dynamic type to the ones passed in the list. * - * @param array|string $types + * @param array $types * * @return bool */ - public function hasDifferentDynamicType($types) + public function hasDifferentDynamicType(array $types) { $number = 0; foreach ($types as $type) { @@ -639,7 +640,7 @@ public function getNumberMutations() * @param bool $initialized * @param CompilationContext $compilationContext */ - public function setIsInitialized($initialized, CompilationContext $compilationContext) + public function setIsInitialized(bool $initialized, CompilationContext $compilationContext) { $this->initialized = $initialized; @@ -669,7 +670,7 @@ public function isInitialized() * * @param bool $isExternal */ - public function setIsExternal($isExternal) + public function setIsExternal(bool $isExternal) { $this->isExternal = $isExternal; $this->variantInits = 1; @@ -805,7 +806,7 @@ public function initNonReferenced(CompilationContext $compilationContext) * * @return int */ - public function geVariantInits() + public function getVariantInits() { return $this->variantInits; } @@ -1056,7 +1057,7 @@ public function isSuperGlobal() * * @return bool */ - public function isLocalSatic() + public function isLocalStatic() { return $this->isExternal && $this->localOnly; } diff --git a/Library/Zephir.php b/Library/Zephir.php index bfb96a4cca..823943e233 100644 --- a/Library/Zephir.php +++ b/Library/Zephir.php @@ -16,7 +16,7 @@ */ final class Zephir { - const VERSION = '0.12.18-$Id$'; + const VERSION = '0.12.19-$Id$'; const LOGO = <<<'ASCII' _____ __ _ diff --git a/README.md b/README.md index 0c5f7859a5..cfefec6e92 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # [![Zephir][zephir logo]][web site] -[![Build on Linux][actions lin badge]][actions link] -[![Build on Windows][actions win badge]][actions link] +[![Build on Linux][actions unix]][actions link] +[![Build on Windows][actions windows]][actions link] [![Latest Stable Version][version badge]][packagist link] [![MIT License][license badge]](./LICENSE) @@ -16,7 +16,7 @@ Functionality is exposed to the PHP language. ## Community * Follow us on [GitHub][zephir] and [Facebook][facebook] -* Get Zephir support on [Discord][discord] and [Official Forums][forum] +* Get Zephir support on [Discord][discord] * Read our [Code of Conduct](./CODE_OF_CONDUCT.md) ## Contributing @@ -50,13 +50,11 @@ Zephir licensed under the MIT License. See the [LICENSE](./LICENSE) file for mor [zephir]: https://github.com/phalcon/zephir [facebook]: https://www.facebook.com/groups/zephir.language [discord]: https://phalcon.link/discord - [zephir logo]: https://assets.phalconphp.com/zephir/zephir_logo-105x36.svg -[forum]: https://forum.zephir-lang.com [web site]: https://zephir-lang.com [actions link]: https://github.com/phalcon/zephir/actions -[actions lin badge]: https://github.com/phalcon/zephir/workflows/Linux%20CI/badge.svg -[actions win badge]: https://github.com/phalcon/zephir/workflows/Windows%20CI/badge.svg +[actions unix]: https://github.com/phalcon/zephir/workflows/Unix%20CI/badge.svg +[actions windows]: https://github.com/phalcon/zephir/workflows/Windows%20CI/badge.svg [version badge]: https://poser.pugx.org/phalcon/zephir/v/stable.svg [packagist link]: https://packagist.org/packages/phalcon/zephir [license badge]: https://poser.pugx.org/phalcon/zephir/license.svg diff --git a/box.json.dist b/box.json.dist index dd6bfef69b..6047bd01f0 100644 --- a/box.json.dist +++ b/box.json.dist @@ -18,8 +18,9 @@ "LICENSE" ], "blacklist": [ - "unit-tests", - "test" + "ext", + "tests", + "stub" ], "finder": [ { diff --git a/composer.json b/composer.json index 6a15e5ea45..e00c4a2732 100644 --- a/composer.json +++ b/composer.json @@ -72,11 +72,11 @@ }, "autoload-dev": { "psr-4": { - "Zephir\\Test\\": "unit-tests/Zephir/Test/", - "Extension\\": "unit-tests/Extension/" + "Zephir\\Test\\": "tests/Zephir/", + "Extension\\": "tests/Extension/" }, "classmap": [ - "unit-tests/fixtures/mocks/" + "tests/fixtures/mocks/" ] }, "minimum-stability": "dev", @@ -86,8 +86,8 @@ ], "support": { "issues": "https://github.com/phalcon/zephir/issues?state=open", - "forum": "https://forum.zephir-lang.com", "source": "https://github.com/phalcon/zephir", + "irc": "irc://irc.freenode.net/zephir", "docs": "https://docs.zephir-lang.com" } } diff --git a/config.json b/config.json index 7e842f99dd..c2d4360046 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { - "namespace": "test", + "namespace": "stub", "name": "Test Extension", "description": "Description test forTest Extension.", "author": "Phalcon Team and contributors", diff --git a/ext/config.m4 b/ext/config.m4 index 9b3f86d24e..efe9933997 100644 --- a/ext/config.m4 +++ b/ext/config.m4 @@ -1,208 +1,208 @@ -PHP_ARG_ENABLE(test, whether to enable test, [ --enable-test Enable Test]) +PHP_ARG_ENABLE(stub, whether to enable stub, [ --enable-stub Enable Stub]) -if test "$PHP_TEST" = "yes"; then +if test "$PHP_STUB" = "yes"; then if ! test "x" = "x"; then - PHP_EVAL_LIBLINE(, TEST_SHARED_LIBADD) + PHP_EVAL_LIBLINE(, STUB_SHARED_LIBADD) fi - AC_DEFINE(HAVE_TEST, 1, [Whether you have Test]) - test_sources="test.c kernel/main.c kernel/memory.c kernel/exception.c kernel/debug.c kernel/backtrace.c kernel/object.c kernel/array.c kernel/string.c kernel/fcall.c kernel/require.c kernel/file.c kernel/operators.c kernel/math.c kernel/concat.c kernel/variables.c kernel/filter.c kernel/iterator.c kernel/time.c kernel/exit.c test/testinterface.zep.c - test/oo/extend/exception.zep.c - test/oo/extend/db/exception.zep.c - test/scallparent.zep.c - test/constantsparent.zep.c - test/globals/session/base.zep.c - test/methodinterface.zep.c - test/oo/abstractstatic.zep.c - test/oo/extend/db/query/exception.zep.c - test/oo/oodynamica.zep.c - test/oo/scopes/hasprivatemethod.zep.c - test/oo/scopes/scopetesterinterface.zep.c - test/ooimpl/zbeginning.zep.c - test/properties/publicproperties.zep.c - test/arithmetic.zep.c - test/arrayaccessobj.zep.c - test/arrayaccesstest.zep.c - test/arrayiterator.zep.c - test/arrayiteratortest.zep.c - test/arrayobject.zep.c - test/arraysearch.zep.c - test/assign.zep.c - test/bench/foo.zep.c - test/bitwise.zep.c - test/branchprediction.zep.c - test/builtin/arraymethods.zep.c - test/builtin/charmethods.zep.c - test/builtin/intmethods.zep.c - test/builtin/stringmethods.zep.c - test/cast.zep.c - test/cblock.zep.c - test/chars.zep.c - test/closures.zep.c - test/compare.zep.c - test/concat.zep.c - test/constants.zep.c - test/constantsinterface.zep.c - test/constantsinterfacea.zep.c - test/constantsinterfaceb.zep.c - test/declaretest.zep.c - test/diinterface.zep.c - test/echoes.zep.c - test/emptytest.zep.c - test/evaltest.zep.c - test/exception.zep.c - test/exceptions.zep.c - test/exists.zep.c - test/exitdie.zep.c - test/extendedinterface.zep.c - test/factorial.zep.c - test/fannkuch.zep.c - test/fasta.zep.c - test/fcall.zep.c - test/fetchtest.zep.c - test/fibonnaci.zep.c - test/flow.zep.c - test/flow/switchflow.zep.c - test/fortytwo.zep.c - test/functional.zep.c - test/functionexists.zep.c - test/geometry.zep.c - test/globals.zep.c - test/globals/env.zep.c - test/globals/post.zep.c - test/globals/server.zep.c - test/globals/serverrequestfactory.zep.c - test/globals/session/child.zep.c - test/instance.zep.c - test/instanceoff.zep.c - test/integration/psr/http/message/messageinterfaceex.zep.c - test/internalclasses.zep.c - test/internalinterfaces.zep.c - test/invoke.zep.c - test/issettest.zep.c - test/issue1404.zep.c - test/issue1521.zep.c - test/issues.zep.c - test/json.zep.c - test/logical.zep.c - test/mcall.zep.c - test/mcall/caller.zep.c - test/mcallchained.zep.c - test/mcalldynamic.zep.c - test/mcallinternal.zep.c - test/methodabstract.zep.c - test/methodargs.zep.c - test/nativearray.zep.c - test/oo.zep.c - test/oo/abstractclass.zep.c - test/oo/concretestatic.zep.c - test/oo/constantsinterface.zep.c - test/oo/deprecatedmethods.zep.c - test/oo/dynamicprop.zep.c - test/oo/extend/db/query/placeholder/exception.zep.c - test/oo/extend/spl/arrayobject.zep.c - test/oo/extend/spl/directoryiterator.zep.c - test/oo/extend/spl/doublylinkedlist.zep.c - test/oo/extend/spl/fileinfo.zep.c - test/oo/extend/spl/fileobject.zep.c - test/oo/extend/spl/filesystemiterator.zep.c - test/oo/extend/spl/fixedarray.zep.c - test/oo/extend/spl/globiterator.zep.c - test/oo/extend/spl/heap.zep.c - test/oo/extend/spl/maxheap.zep.c - test/oo/extend/spl/minheap.zep.c - test/oo/extend/spl/priorityqueue.zep.c - test/oo/extend/spl/queue.zep.c - test/oo/extend/spl/recursivedirectoryiterator.zep.c - test/oo/extend/spl/stack.zep.c - test/oo/extend/spl/tempfileobject.zep.c - test/oo/extendpdoclass.zep.c - test/oo/ooconstruct.zep.c - test/oo/ooconstructparams.zep.c - test/oo/oodestruct.zep.c - test/oo/oodynamicb.zep.c - test/oo/oonativeimplements.zep.c - test/oo/oonoconstruct.zep.c - test/oo/ooparams.zep.c - test/oo/param.zep.c - test/oo/propertyaccess.zep.c - test/oo/scopes/abstractclass.zep.c - test/oo/scopes/abstractclassmagic.zep.c - test/oo/scopes/privatescopetester.zep.c - test/ooimpl/abeginning.zep.c - test/operator.zep.c - test/optimizers/isscalar.zep.c - test/optimizers/acos.zep.c - test/optimizers/arraymerge.zep.c - test/optimizers/asin.zep.c - test/optimizers/cos.zep.c - test/optimizers/createarray.zep.c - test/optimizers/ldexp.zep.c - test/optimizers/sin.zep.c - test/optimizers/sqrt.zep.c - test/optimizers/strreplace.zep.c - test/optimizers/substr.zep.c - test/optimizers/tan.zep.c - test/pdostatement.zep.c - test/pregmatch.zep.c - test/properties/app.zep.c - test/properties/extendspublicproperties.zep.c - test/properties/privateproperties.zep.c - test/properties/propertyarray.zep.c - test/properties/propertyupdate.zep.c - test/properties/protectedproperties.zep.c - test/properties/staticprivateproperties.zep.c - test/properties/staticpropertyarray.zep.c - test/properties/staticprotectedproperties.zep.c - test/properties/staticpublicproperties.zep.c - test/quantum.zep.c - test/range.zep.c - test/references.zep.c - test/regexdna.zep.c - test/requires.zep.c - test/requires/external3.zep.c - test/resourcetest.zep.c - test/returns.zep.c - test/router.zep.c - test/router/exception.zep.c - test/router/route.zep.c - test/scall.zep.c - test/scalldynamic.zep.c - test/scallexternal.zep.c - test/scope.zep.c - test/sort.zep.c - test/spectralnorm.zep.c - test/spropertyaccess.zep.c - test/statements.zep.c - test/strings.zep.c - test/stubs.zep.c - test/ternary.zep.c - test/trytest.zep.c - test/typehinting/testabstract.zep.c - test/typeinstances.zep.c - test/typeoff.zep.c - test/unknownclass.zep.c - test/unsettest.zep.c - test/usetest.zep.c - test/vars.zep.c - test/0__closure.zep.c - test/1__closure.zep.c - test/2__closure.zep.c - test/3__closure.zep.c - test/4__closure.zep.c - test/5__closure.zep.c - test/6__closure.zep.c - test/7__closure.zep.c - test/8__closure.zep.c - test/9__closure.zep.c - test/10__closure.zep.c - test/11__closure.zep.c - test/12__closure.zep.c " - PHP_NEW_EXTENSION(test, $test_sources, $ext_shared,, ) - PHP_SUBST(TEST_SHARED_LIBADD) + AC_DEFINE(HAVE_STUB, 1, [Whether you have Stub]) + stub_sources="stub.c kernel/main.c kernel/memory.c kernel/exception.c kernel/debug.c kernel/backtrace.c kernel/object.c kernel/array.c kernel/string.c kernel/fcall.c kernel/require.c kernel/file.c kernel/operators.c kernel/math.c kernel/concat.c kernel/variables.c kernel/filter.c kernel/iterator.c kernel/time.c kernel/exit.c stub/testinterface.zep.c + stub/oo/extend/exception.zep.c + stub/oo/extend/db/exception.zep.c + stub/scallparent.zep.c + stub/constantsparent.zep.c + stub/globals/session/base.zep.c + stub/methodinterface.zep.c + stub/oo/abstractstatic.zep.c + stub/oo/extend/db/query/exception.zep.c + stub/oo/oodynamica.zep.c + stub/oo/scopes/hasprivatemethod.zep.c + stub/oo/scopes/scopetesterinterface.zep.c + stub/ooimpl/zbeginning.zep.c + stub/properties/publicproperties.zep.c + stub/arithmetic.zep.c + stub/arrayaccessobj.zep.c + stub/arrayaccesstest.zep.c + stub/arrayiterator.zep.c + stub/arrayiteratortest.zep.c + stub/arrayobject.zep.c + stub/arraysearch.zep.c + stub/assign.zep.c + stub/bench/foo.zep.c + stub/bitwise.zep.c + stub/branchprediction.zep.c + stub/builtin/arraymethods.zep.c + stub/builtin/charmethods.zep.c + stub/builtin/intmethods.zep.c + stub/builtin/stringmethods.zep.c + stub/cast.zep.c + stub/cblock.zep.c + stub/chars.zep.c + stub/closures.zep.c + stub/compare.zep.c + stub/concat.zep.c + stub/constants.zep.c + stub/constantsinterface.zep.c + stub/constantsinterfacea.zep.c + stub/constantsinterfaceb.zep.c + stub/declaretest.zep.c + stub/diinterface.zep.c + stub/echoes.zep.c + stub/emptytest.zep.c + stub/evaltest.zep.c + stub/exception.zep.c + stub/exceptions.zep.c + stub/exists.zep.c + stub/exitdie.zep.c + stub/extendedinterface.zep.c + stub/factorial.zep.c + stub/fannkuch.zep.c + stub/fasta.zep.c + stub/fcall.zep.c + stub/fetchtest.zep.c + stub/fibonnaci.zep.c + stub/flow.zep.c + stub/flow/switchflow.zep.c + stub/fortytwo.zep.c + stub/functional.zep.c + stub/functionexists.zep.c + stub/geometry.zep.c + stub/globals.zep.c + stub/globals/env.zep.c + stub/globals/post.zep.c + stub/globals/server.zep.c + stub/globals/serverrequestfactory.zep.c + stub/globals/session/child.zep.c + stub/instance.zep.c + stub/instanceoff.zep.c + stub/integration/psr/http/message/messageinterfaceex.zep.c + stub/internalclasses.zep.c + stub/internalinterfaces.zep.c + stub/invoke.zep.c + stub/issettest.zep.c + stub/issue1404.zep.c + stub/issue1521.zep.c + stub/issues.zep.c + stub/json.zep.c + stub/logical.zep.c + stub/mcall.zep.c + stub/mcall/caller.zep.c + stub/mcallchained.zep.c + stub/mcalldynamic.zep.c + stub/mcallinternal.zep.c + stub/methodabstract.zep.c + stub/methodargs.zep.c + stub/nativearray.zep.c + stub/oo.zep.c + stub/oo/abstractclass.zep.c + stub/oo/concretestatic.zep.c + stub/oo/constantsinterface.zep.c + stub/oo/deprecatedmethods.zep.c + stub/oo/dynamicprop.zep.c + stub/oo/extend/db/query/placeholder/exception.zep.c + stub/oo/extend/spl/arrayobject.zep.c + stub/oo/extend/spl/directoryiterator.zep.c + stub/oo/extend/spl/doublylinkedlist.zep.c + stub/oo/extend/spl/fileinfo.zep.c + stub/oo/extend/spl/fileobject.zep.c + stub/oo/extend/spl/filesystemiterator.zep.c + stub/oo/extend/spl/fixedarray.zep.c + stub/oo/extend/spl/globiterator.zep.c + stub/oo/extend/spl/heap.zep.c + stub/oo/extend/spl/maxheap.zep.c + stub/oo/extend/spl/minheap.zep.c + stub/oo/extend/spl/priorityqueue.zep.c + stub/oo/extend/spl/queue.zep.c + stub/oo/extend/spl/recursivedirectoryiterator.zep.c + stub/oo/extend/spl/stack.zep.c + stub/oo/extend/spl/tempfileobject.zep.c + stub/oo/extendpdoclass.zep.c + stub/oo/ooconstruct.zep.c + stub/oo/ooconstructparams.zep.c + stub/oo/oodestruct.zep.c + stub/oo/oodynamicb.zep.c + stub/oo/oonativeimplements.zep.c + stub/oo/oonoconstruct.zep.c + stub/oo/ooparams.zep.c + stub/oo/param.zep.c + stub/oo/propertyaccess.zep.c + stub/oo/scopes/abstractclass.zep.c + stub/oo/scopes/abstractclassmagic.zep.c + stub/oo/scopes/privatescopetester.zep.c + stub/ooimpl/abeginning.zep.c + stub/operator.zep.c + stub/optimizers/isscalar.zep.c + stub/optimizers/acos.zep.c + stub/optimizers/arraymerge.zep.c + stub/optimizers/asin.zep.c + stub/optimizers/cos.zep.c + stub/optimizers/createarray.zep.c + stub/optimizers/ldexp.zep.c + stub/optimizers/sin.zep.c + stub/optimizers/sqrt.zep.c + stub/optimizers/strreplace.zep.c + stub/optimizers/substr.zep.c + stub/optimizers/tan.zep.c + stub/pdostatement.zep.c + stub/pregmatch.zep.c + stub/properties/app.zep.c + stub/properties/extendspublicproperties.zep.c + stub/properties/privateproperties.zep.c + stub/properties/propertyarray.zep.c + stub/properties/propertyupdate.zep.c + stub/properties/protectedproperties.zep.c + stub/properties/staticprivateproperties.zep.c + stub/properties/staticpropertyarray.zep.c + stub/properties/staticprotectedproperties.zep.c + stub/properties/staticpublicproperties.zep.c + stub/quantum.zep.c + stub/range.zep.c + stub/references.zep.c + stub/regexdna.zep.c + stub/requires.zep.c + stub/requires/external3.zep.c + stub/resourcetest.zep.c + stub/returns.zep.c + stub/router.zep.c + stub/router/exception.zep.c + stub/router/route.zep.c + stub/scall.zep.c + stub/scalldynamic.zep.c + stub/scallexternal.zep.c + stub/scope.zep.c + stub/sort.zep.c + stub/spectralnorm.zep.c + stub/spropertyaccess.zep.c + stub/statements.zep.c + stub/strings.zep.c + stub/stubs.zep.c + stub/ternary.zep.c + stub/trytest.zep.c + stub/typehinting/testabstract.zep.c + stub/typeinstances.zep.c + stub/typeoff.zep.c + stub/unknownclass.zep.c + stub/unsettest.zep.c + stub/usetest.zep.c + stub/vars.zep.c + stub/0__closure.zep.c + stub/1__closure.zep.c + stub/2__closure.zep.c + stub/3__closure.zep.c + stub/4__closure.zep.c + stub/5__closure.zep.c + stub/6__closure.zep.c + stub/7__closure.zep.c + stub/8__closure.zep.c + stub/9__closure.zep.c + stub/10__closure.zep.c + stub/11__closure.zep.c + stub/12__closure.zep.c " + PHP_NEW_EXTENSION(stub, $stub_sources, $ext_shared,, ) + PHP_SUBST(STUB_SHARED_LIBADD) old_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $INCLUDES" @@ -213,7 +213,7 @@ if test "$PHP_TEST" = "yes"; then AC_CHECK_HEADERS( [ext/pcre/php_pcre.h], [ - PHP_ADD_EXTENSION_DEP([test], [pcre]) + PHP_ADD_EXTENSION_DEP([stub], [pcre]) AC_DEFINE([ZEPHIR_USE_PHP_PCRE], [1], [Whether PHP pcre extension is present at compile time]) ], , @@ -230,7 +230,7 @@ if test "$PHP_TEST" = "yes"; then AC_CHECK_HEADERS( [ext/json/php_json.h], [ - PHP_ADD_EXTENSION_DEP([test], [json]) + PHP_ADD_EXTENSION_DEP([stub], [json]) AC_DEFINE([ZEPHIR_USE_PHP_JSON], [1], [Whether PHP json extension is present at compile time]) ], , @@ -243,6 +243,6 @@ if test "$PHP_TEST" = "yes"; then CPPFLAGS=$old_CPPFLAGS - PHP_INSTALL_HEADERS([ext/test], [php_TEST.h]) + PHP_INSTALL_HEADERS([ext/stub], [php_STUB.h]) fi diff --git a/ext/config.w32 b/ext/config.w32 index 860413c99e..d9e7f43f07 100644 --- a/ext/config.w32 +++ b/ext/config.w32 @@ -1,37 +1,37 @@ -ARG_ENABLE("test", "enable test", "no"); +ARG_ENABLE("stub", "enable stub", "no"); -if (PHP_TEST != "no") { - EXTENSION("test", "test.c", null, "-I"+configure_module_dirname); - ADD_SOURCES(configure_module_dirname + "/kernel", "main.c memory.c exception.c debug.c backtrace.c object.c array.c string.c fcall.c require.c file.c operators.c math.c concat.c variables.c filter.c iterator.c exit.c time.c", "test"); +if (PHP_STUB != "no") { + EXTENSION("stub", "stub.c", null, "-I"+configure_module_dirname); + ADD_SOURCES(configure_module_dirname + "/kernel", "main.c memory.c exception.c debug.c backtrace.c object.c array.c string.c fcall.c require.c file.c operators.c math.c concat.c variables.c filter.c iterator.c exit.c time.c", "stub"); /* PCRE is always included on WIN32 */ AC_DEFINE("ZEPHIR_USE_PHP_PCRE", 1, "Whether PHP pcre extension is present at compile time"); if (PHP_JSON != "no") { - ADD_EXTENSION_DEP("test", "json"); + ADD_EXTENSION_DEP("stub", "json"); AC_DEFINE("ZEPHIR_USE_PHP_JSON", 1, "Whether PHP json extension is present at compile time"); } - ADD_SOURCES(configure_module_dirname + "/test", "testinterface.zep.c scallparent.zep.c constantsparent.zep.c methodinterface.zep.c arithmetic.zep.c arrayaccessobj.zep.c arrayaccesstest.zep.c arrayiterator.zep.c arrayiteratortest.zep.c arrayobject.zep.c arraysearch.zep.c assign.zep.c bitwise.zep.c branchprediction.zep.c cast.zep.c cblock.zep.c chars.zep.c closures.zep.c compare.zep.c concat.zep.c constants.zep.c constantsinterface.zep.c constantsinterfacea.zep.c constantsinterfaceb.zep.c declaretest.zep.c diinterface.zep.c echoes.zep.c emptytest.zep.c evaltest.zep.c exception.zep.c exceptions.zep.c exists.zep.c exitdie.zep.c extendedinterface.zep.c factorial.zep.c fannkuch.zep.c fasta.zep.c fcall.zep.c fetchtest.zep.c fibonnaci.zep.c flow.zep.c fortytwo.zep.c functional.zep.c functionexists.zep.c geometry.zep.c globals.zep.c instance.zep.c instanceoff.zep.c internalclasses.zep.c internalinterfaces.zep.c invoke.zep.c issettest.zep.c issue1404.zep.c issue1521.zep.c issues.zep.c json.zep.c logical.zep.c mcall.zep.c mcallchained.zep.c mcalldynamic.zep.c mcallinternal.zep.c methodabstract.zep.c methodargs.zep.c nativearray.zep.c oo.zep.c operator.zep.c pdostatement.zep.c pregmatch.zep.c quantum.zep.c range.zep.c references.zep.c regexdna.zep.c requires.zep.c resourcetest.zep.c returns.zep.c router.zep.c scall.zep.c scalldynamic.zep.c scallexternal.zep.c scope.zep.c sort.zep.c spectralnorm.zep.c spropertyaccess.zep.c statements.zep.c strings.zep.c stubs.zep.c ternary.zep.c trytest.zep.c typeinstances.zep.c typeoff.zep.c unknownclass.zep.c unsettest.zep.c usetest.zep.c vars.zep.c 0__closure.zep.c 1__closure.zep.c 2__closure.zep.c 3__closure.zep.c 4__closure.zep.c 5__closure.zep.c 6__closure.zep.c 7__closure.zep.c 8__closure.zep.c 9__closure.zep.c 10__closure.zep.c 11__closure.zep.c 12__closure.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/oo/extend", "exception.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/oo/extend/db", "exception.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/globals/session", "base.zep.c child.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/oo", "abstractstatic.zep.c oodynamica.zep.c abstractclass.zep.c concretestatic.zep.c constantsinterface.zep.c deprecatedmethods.zep.c dynamicprop.zep.c extendpdoclass.zep.c ooconstruct.zep.c ooconstructparams.zep.c oodestruct.zep.c oodynamicb.zep.c oonativeimplements.zep.c oonoconstruct.zep.c ooparams.zep.c param.zep.c propertyaccess.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/oo/extend/db/query", "exception.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/oo/scopes", "hasprivatemethod.zep.c scopetesterinterface.zep.c abstractclass.zep.c abstractclassmagic.zep.c privatescopetester.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/ooimpl", "zbeginning.zep.c abeginning.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/properties", "publicproperties.zep.c app.zep.c extendspublicproperties.zep.c privateproperties.zep.c propertyarray.zep.c propertyupdate.zep.c protectedproperties.zep.c staticprivateproperties.zep.c staticpropertyarray.zep.c staticprotectedproperties.zep.c staticpublicproperties.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/bench", "foo.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/builtin", "arraymethods.zep.c charmethods.zep.c intmethods.zep.c stringmethods.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/flow", "switchflow.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/globals", "env.zep.c post.zep.c server.zep.c serverrequestfactory.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/integration/psr/http/message", "messageinterfaceex.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/mcall", "caller.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/oo/extend/db/query/placeholder", "exception.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/oo/extend/spl", "arrayobject.zep.c directoryiterator.zep.c doublylinkedlist.zep.c fileinfo.zep.c fileobject.zep.c filesystemiterator.zep.c fixedarray.zep.c globiterator.zep.c heap.zep.c maxheap.zep.c minheap.zep.c priorityqueue.zep.c queue.zep.c recursivedirectoryiterator.zep.c stack.zep.c tempfileobject.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/optimizers", "isscalar.zep.c acos.zep.c arraymerge.zep.c asin.zep.c cos.zep.c createarray.zep.c ldexp.zep.c sin.zep.c sqrt.zep.c strreplace.zep.c substr.zep.c tan.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/requires", "external3.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/router", "exception.zep.c route.zep.c", "test"); - ADD_SOURCES(configure_module_dirname + "/test/typehinting", "testabstract.zep.c", "test"); - ADD_FLAG("CFLAGS_TEST", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); + ADD_SOURCES(configure_module_dirname + "/stub", "testinterface.zep.c scallparent.zep.c constantsparent.zep.c methodinterface.zep.c arithmetic.zep.c arrayaccessobj.zep.c arrayaccesstest.zep.c arrayiterator.zep.c arrayiteratortest.zep.c arrayobject.zep.c arraysearch.zep.c assign.zep.c bitwise.zep.c branchprediction.zep.c cast.zep.c cblock.zep.c chars.zep.c closures.zep.c compare.zep.c concat.zep.c constants.zep.c constantsinterface.zep.c constantsinterfacea.zep.c constantsinterfaceb.zep.c declaretest.zep.c diinterface.zep.c echoes.zep.c emptytest.zep.c evaltest.zep.c exception.zep.c exceptions.zep.c exists.zep.c exitdie.zep.c extendedinterface.zep.c factorial.zep.c fannkuch.zep.c fasta.zep.c fcall.zep.c fetchtest.zep.c fibonnaci.zep.c flow.zep.c fortytwo.zep.c functional.zep.c functionexists.zep.c geometry.zep.c globals.zep.c instance.zep.c instanceoff.zep.c internalclasses.zep.c internalinterfaces.zep.c invoke.zep.c issettest.zep.c issue1404.zep.c issue1521.zep.c issues.zep.c json.zep.c logical.zep.c mcall.zep.c mcallchained.zep.c mcalldynamic.zep.c mcallinternal.zep.c methodabstract.zep.c methodargs.zep.c nativearray.zep.c oo.zep.c operator.zep.c pdostatement.zep.c pregmatch.zep.c quantum.zep.c range.zep.c references.zep.c regexdna.zep.c requires.zep.c resourcetest.zep.c returns.zep.c router.zep.c scall.zep.c scalldynamic.zep.c scallexternal.zep.c scope.zep.c sort.zep.c spectralnorm.zep.c spropertyaccess.zep.c statements.zep.c strings.zep.c stubs.zep.c ternary.zep.c trytest.zep.c typeinstances.zep.c typeoff.zep.c unknownclass.zep.c unsettest.zep.c usetest.zep.c vars.zep.c 0__closure.zep.c 1__closure.zep.c 2__closure.zep.c 3__closure.zep.c 4__closure.zep.c 5__closure.zep.c 6__closure.zep.c 7__closure.zep.c 8__closure.zep.c 9__closure.zep.c 10__closure.zep.c 11__closure.zep.c 12__closure.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/oo/extend", "exception.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/oo/extend/db", "exception.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/globals/session", "base.zep.c child.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/oo", "abstractstatic.zep.c oodynamica.zep.c abstractclass.zep.c concretestatic.zep.c constantsinterface.zep.c deprecatedmethods.zep.c dynamicprop.zep.c extendpdoclass.zep.c ooconstruct.zep.c ooconstructparams.zep.c oodestruct.zep.c oodynamicb.zep.c oonativeimplements.zep.c oonoconstruct.zep.c ooparams.zep.c param.zep.c propertyaccess.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/oo/extend/db/query", "exception.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/oo/scopes", "hasprivatemethod.zep.c scopetesterinterface.zep.c abstractclass.zep.c abstractclassmagic.zep.c privatescopetester.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/ooimpl", "zbeginning.zep.c abeginning.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/properties", "publicproperties.zep.c app.zep.c extendspublicproperties.zep.c privateproperties.zep.c propertyarray.zep.c propertyupdate.zep.c protectedproperties.zep.c staticprivateproperties.zep.c staticpropertyarray.zep.c staticprotectedproperties.zep.c staticpublicproperties.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/bench", "foo.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/builtin", "arraymethods.zep.c charmethods.zep.c intmethods.zep.c stringmethods.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/flow", "switchflow.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/globals", "env.zep.c post.zep.c server.zep.c serverrequestfactory.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/integration/psr/http/message", "messageinterfaceex.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/mcall", "caller.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/oo/extend/db/query/placeholder", "exception.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/oo/extend/spl", "arrayobject.zep.c directoryiterator.zep.c doublylinkedlist.zep.c fileinfo.zep.c fileobject.zep.c filesystemiterator.zep.c fixedarray.zep.c globiterator.zep.c heap.zep.c maxheap.zep.c minheap.zep.c priorityqueue.zep.c queue.zep.c recursivedirectoryiterator.zep.c stack.zep.c tempfileobject.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/optimizers", "isscalar.zep.c acos.zep.c arraymerge.zep.c asin.zep.c cos.zep.c createarray.zep.c ldexp.zep.c sin.zep.c sqrt.zep.c strreplace.zep.c substr.zep.c tan.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/requires", "external3.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/router", "exception.zep.c route.zep.c", "stub"); + ADD_SOURCES(configure_module_dirname + "/stub/typehinting", "testabstract.zep.c", "stub"); + ADD_FLAG("CFLAGS_STUB", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); ADD_FLAG("LDFLAGS", "/LTCG"); } diff --git a/ext/ext.h b/ext/ext.h index 1260252337..a7910bf6f9 100644 --- a/ext/ext.h +++ b/ext/ext.h @@ -1,4 +1,4 @@ /* This file was generated automatically by Zephir do not modify it! */ -#include "test.h" \ No newline at end of file +#include "stub.h" \ No newline at end of file diff --git a/ext/install b/ext/install index 5468a071d9..95eae6adf4 100755 --- a/ext/install +++ b/ext/install @@ -33,7 +33,7 @@ fi ${phpize} --silent -./configure --silent --enable-test CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" +./configure --silent --enable-stub CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" make -s $sudo make -s install diff --git a/ext/kernel/math.c b/ext/kernel/math.c index 1a291a1571..0b0f7eeb12 100644 --- a/ext/kernel/math.c +++ b/ext/kernel/math.c @@ -195,7 +195,7 @@ zephir_mt_rand(zend_long min, zend_long max) zend_long number; if (max < min) { - php_error_docref(NULL, E_WARNING, "max(%lld) is smaller than min(%lld)", max, min); + php_error_docref(NULL, E_WARNING, "max(%ld) is smaller than min(%ld)", max, min); return 0; } diff --git a/ext/kernel/object.c b/ext/kernel/object.c index ba83458ced..0cb92673fd 100644 --- a/ext/kernel/object.c +++ b/ext/kernel/object.c @@ -436,31 +436,84 @@ int zephir_isset_property_zval(zval *object, const zval *property) return 0; } +/** + * Lookup for the real owner of the property + */ static inline zend_class_entry *zephir_lookup_class_ce(zend_class_entry *ce, const char *property_name, unsigned int property_length) { zend_class_entry *original_ce = ce; zend_property_info *info; + zend_class_entry *scope; + zval member; + + ZVAL_STRINGL(&member, property_name, property_length); + + /* Backup current scope */ + scope = zephir_get_scope(0); while (ce) { - info = zend_hash_str_find_ptr(&ce->properties_info, property_name, property_length); + /* Use the scope of the current object */ + zephir_set_scope(ce); + + info = zend_get_property_info(ce, Z_STR(member), 1); + if (info && info != ZEND_WRONG_PROPERTY_INFO) { + zval_ptr_dtor(&member); + /* Restore original scope */ + zephir_set_scope(scope); -#if PHP_VERSION_ID < 70400 - if (info != NULL && (info->flags & ZEND_ACC_SHADOW) != ZEND_ACC_SHADOW) { - return ce; - } -#else - if (info != NULL) { return ce; } -#endif + ce = ce->parent; } + zval_ptr_dtor(&member); + + /* Restore original scope */ + zephir_set_scope(scope); + return original_ce; } +/** + * Checks whether obj is an object and reads a property from this object. + * + * This function is intended to use in initializer. Do not use it for a + * regular property updating. + */ +int zephir_read_property_ex(zval *result, zval *object, const char *property_name, + uint32_t property_length, int flags) +{ + zend_class_entry *scope; + int retval; + + if (Z_TYPE_P(object) == IS_OBJECT) { + zend_class_entry *ce; + + /* Backup current scope */ + scope = zephir_get_scope(0); + ce = Z_OBJCE_P(object); + + /* Lookup for the real owner of the property */ + if (ce->parent) { + ce = zephir_lookup_class_ce(ce, property_name, property_length); + } + + /* Use the scope of the found object */ + zephir_set_scope(ce); + } + /* Read the property */ + retval = zephir_read_property(result, object, property_name, property_length, flags); + + if (Z_TYPE_P(object) == IS_OBJECT) { + /* Restore original scope */ + zephir_set_scope(scope); + } + + return retval; +} /** * Checks whether obj is an object and reads a property from this object @@ -543,8 +596,7 @@ int zephir_fetch_property_zval(zval *result, zval *object, zval *property, int s int zephir_return_property(zval *return_value, zval *object, char *property_name, unsigned int property_length) { ZVAL_NULL(return_value); - zephir_read_property(return_value, object, property_name, property_length, 0); - return SUCCESS; + return zephir_read_property(return_value, object, property_name, property_length, 0); } /** @@ -564,6 +616,44 @@ int zephir_read_property_zval(zval *result, zval *object, zval *property, int fl return zephir_read_property(result, object, Z_STRVAL_P(property), Z_STRLEN_P(property), flags); } +/** + * Checks whether obj is an object and updates property with another zval. + * + * This function is intended to use in initializer. Do not use it for a + * regular property updating. + */ +int zephir_update_property_zval_ex(zval *object, const char *property_name, + unsigned int property_length, zval *value) +{ + zend_class_entry *scope; + int retval; + + if (Z_TYPE_P(object) == IS_OBJECT) { + zend_class_entry *ce; + + /* Backup current scope */ + scope = zephir_get_scope(0); + ce = Z_OBJCE_P(object); + + /* Lookup for the real owner of the property */ + if (ce->parent) { + ce = zephir_lookup_class_ce(ce, property_name, property_length); + } + + /* Use the scope of the found object */ + zephir_set_scope(ce); + } + /* Update the property */ + retval = zephir_update_property_zval(object, property_name, property_length, value); + + if (Z_TYPE_P(object) == IS_OBJECT) { + /* Restore original scope */ + zephir_set_scope(scope); + } + + return retval; +} + /** * Checks whether obj is an object and updates property with another zval */ @@ -601,6 +691,10 @@ int zephir_update_property_zval(zval *object, const char *property_name, Z_OBJ_HT_P(object)->write_property(object, &property, &sep_value, 0); zval_ptr_dtor(&property); + if (UNEXPECTED(EG(exception))) { + return FAILURE; + } + return SUCCESS; } @@ -691,7 +785,6 @@ int zephir_update_property_array(zval *object, const char *property, uint32_t pr return SUCCESS; } - /** * Appends a zval value to an array property */ diff --git a/ext/kernel/object.h b/ext/kernel/object.h index 8cff2c60f8..36598823f3 100644 --- a/ext/kernel/object.h +++ b/ext/kernel/object.h @@ -51,6 +51,7 @@ int zephir_isset_property(zval *object, const char *property_name, unsigned int int zephir_isset_property_zval(zval *object, const zval *property); /** Reading properties */ +int zephir_read_property_ex(zval *result, zval *object, const char *property_name, uint32_t property_length, int silent); int zephir_read_property(zval *result, zval *object, const char *property_name, uint32_t property_length, int silent); int zephir_read_property_zval(zval *result, zval *object, zval *property, int silent); int zephir_return_property(zval *return_value, zval *object, char *property_name, unsigned int property_length); @@ -58,6 +59,7 @@ int zephir_fetch_property(zval *result, zval *object, const char *property_name, int zephir_fetch_property_zval(zval *result, zval *object, zval *property, int silent); /** Updating properties */ +int zephir_update_property_zval_ex(zval *obj, const char *property_name, unsigned int property_length, zval *value); int zephir_update_property_zval(zval *obj, const char *property_name, unsigned int property_length, zval *value); int zephir_update_property_zval_zval(zval *obj, zval *property, zval *value); diff --git a/ext/php_ext.h b/ext/php_ext.h index 73da6ba7f2..515b84f822 100644 --- a/ext/php_ext.h +++ b/ext/php_ext.h @@ -1,4 +1,4 @@ /* This file was generated automatically by Zephir do not modify it! */ -#include "php_test.h" \ No newline at end of file +#include "php_stub.h" \ No newline at end of file diff --git a/ext/php_test.h b/ext/php_stub.h similarity index 54% rename from ext/php_test.h rename to ext/php_stub.h index 0467d9ae26..23870dfa01 100644 --- a/ext/php_test.h +++ b/ext/php_stub.h @@ -1,8 +1,8 @@ /* This file was generated automatically by Zephir do not modify it! */ -#ifndef PHP_TEST_H -#define PHP_TEST_H 1 +#ifndef PHP_STUB_H +#define PHP_STUB_H 1 #ifdef PHP_WIN32 #define ZEPHIR_RELEASE 1 @@ -10,12 +10,12 @@ #include "kernel/globals.h" -#define PHP_TEST_NAME "Test Extension" -#define PHP_TEST_VERSION "1.0.0" -#define PHP_TEST_EXTNAME "test" -#define PHP_TEST_AUTHOR "Phalcon Team and contributors" -#define PHP_TEST_ZEPVERSION "0.12.18-$Id$" -#define PHP_TEST_DESCRIPTION "Description test for
Test Extension." +#define PHP_STUB_NAME "Test Extension" +#define PHP_STUB_VERSION "1.0.0" +#define PHP_STUB_EXTNAME "stub" +#define PHP_STUB_AUTHOR "Phalcon Team and contributors" +#define PHP_STUB_ZEPVERSION "0.12.19-$Id$" +#define PHP_STUB_DESCRIPTION "Description test for
Test Extension." typedef struct _zephir_struct_db { zend_bool my_setting_1; @@ -34,7 +34,7 @@ typedef struct _zephir_struct_extension { -ZEND_BEGIN_MODULE_GLOBALS(test) +ZEND_BEGIN_MODULE_GLOBALS(stub) int initialized; @@ -67,33 +67,33 @@ ZEND_BEGIN_MODULE_GLOBALS(test) char my_setting_4; -ZEND_END_MODULE_GLOBALS(test) +ZEND_END_MODULE_GLOBALS(stub) #ifdef ZTS #include "TSRM.h" #endif -ZEND_EXTERN_MODULE_GLOBALS(test) +ZEND_EXTERN_MODULE_GLOBALS(stub) #ifdef ZTS - #define ZEPHIR_GLOBAL(v) ZEND_MODULE_GLOBALS_ACCESSOR(test, v) + #define ZEPHIR_GLOBAL(v) ZEND_MODULE_GLOBALS_ACCESSOR(stub, v) #else - #define ZEPHIR_GLOBAL(v) (test_globals.v) + #define ZEPHIR_GLOBAL(v) (stub_globals.v) #endif #ifdef ZTS - void ***tsrm_ls; - #define ZEPHIR_VGLOBAL ((zend_test_globals *) (*((void ***) tsrm_get_ls_cache()))[TSRM_UNSHUFFLE_RSRC_ID(test_globals_id)]) + ZEND_TSRMLS_CACHE_EXTERN() + #define ZEPHIR_VGLOBAL ((zend_stub_globals *) (*((void ***) tsrm_get_ls_cache()))[TSRM_UNSHUFFLE_RSRC_ID(stub_globals_id)]) #else - #define ZEPHIR_VGLOBAL &(test_globals) + #define ZEPHIR_VGLOBAL &(stub_globals) #endif #define ZEPHIR_API ZEND_API -#define zephir_globals_def test_globals -#define zend_zephir_globals_def zend_test_globals +#define zephir_globals_def stub_globals +#define zend_zephir_globals_def zend_stub_globals -extern zend_module_entry test_module_entry; -#define phpext_test_ptr &test_module_entry +extern zend_module_entry stub_module_entry; +#define phpext_stub_ptr &stub_module_entry #endif diff --git a/ext/stub.c b/ext/stub.c new file mode 100644 index 0000000000..1648bdfb28 --- /dev/null +++ b/ext/stub.c @@ -0,0 +1,638 @@ + +/* This file was generated automatically by Zephir do not modify it! */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include + +#include "php_ext.h" +#include "stub.h" + +#include + +#include +#include +#include + +#include "kernel/globals.h" +#include "kernel/main.h" +#include "kernel/fcall.h" +#include "kernel/memory.h" + + + +zend_class_entry *stub_testinterface_ce; +zend_class_entry *stub_methodinterface_ce; +zend_class_entry *stub_oo_scopes_scopetesterinterface_ce; +zend_class_entry *stub_ooimpl_zbeginning_ce; +zend_class_entry *stub_diinterface_ce; +zend_class_entry *stub_extendedinterface_ce; +zend_class_entry *stub_integration_psr_http_message_messageinterfaceex_ce; +zend_class_entry *stub_ooimpl_abeginning_ce; +zend_class_entry *stub_oo_extend_exception_ce; +zend_class_entry *stub_oo_extend_db_exception_ce; +zend_class_entry *stub_scallparent_ce; +zend_class_entry *stub_constantsparent_ce; +zend_class_entry *stub_globals_session_base_ce; +zend_class_entry *stub_oo_abstractstatic_ce; +zend_class_entry *stub_oo_extend_db_query_exception_ce; +zend_class_entry *stub_oo_oodynamica_ce; +zend_class_entry *stub_oo_scopes_hasprivatemethod_ce; +zend_class_entry *stub_properties_publicproperties_ce; +zend_class_entry *stub_0__closure_ce; +zend_class_entry *stub_10__closure_ce; +zend_class_entry *stub_11__closure_ce; +zend_class_entry *stub_12__closure_ce; +zend_class_entry *stub_1__closure_ce; +zend_class_entry *stub_2__closure_ce; +zend_class_entry *stub_3__closure_ce; +zend_class_entry *stub_4__closure_ce; +zend_class_entry *stub_5__closure_ce; +zend_class_entry *stub_6__closure_ce; +zend_class_entry *stub_7__closure_ce; +zend_class_entry *stub_8__closure_ce; +zend_class_entry *stub_9__closure_ce; +zend_class_entry *stub_arithmetic_ce; +zend_class_entry *stub_arrayaccessobj_ce; +zend_class_entry *stub_arrayaccesstest_ce; +zend_class_entry *stub_arrayiterator_ce; +zend_class_entry *stub_arrayiteratortest_ce; +zend_class_entry *stub_arrayobject_ce; +zend_class_entry *stub_arraysearch_ce; +zend_class_entry *stub_assign_ce; +zend_class_entry *stub_bench_foo_ce; +zend_class_entry *stub_bitwise_ce; +zend_class_entry *stub_branchprediction_ce; +zend_class_entry *stub_builtin_arraymethods_ce; +zend_class_entry *stub_builtin_charmethods_ce; +zend_class_entry *stub_builtin_intmethods_ce; +zend_class_entry *stub_builtin_stringmethods_ce; +zend_class_entry *stub_cast_ce; +zend_class_entry *stub_cblock_ce; +zend_class_entry *stub_chars_ce; +zend_class_entry *stub_closures_ce; +zend_class_entry *stub_compare_ce; +zend_class_entry *stub_concat_ce; +zend_class_entry *stub_constants_ce; +zend_class_entry *stub_constantsinterface_ce; +zend_class_entry *stub_constantsinterfacea_ce; +zend_class_entry *stub_constantsinterfaceb_ce; +zend_class_entry *stub_declaretest_ce; +zend_class_entry *stub_echoes_ce; +zend_class_entry *stub_emptytest_ce; +zend_class_entry *stub_evaltest_ce; +zend_class_entry *stub_exception_ce; +zend_class_entry *stub_exceptions_ce; +zend_class_entry *stub_exists_ce; +zend_class_entry *stub_exitdie_ce; +zend_class_entry *stub_factorial_ce; +zend_class_entry *stub_fannkuch_ce; +zend_class_entry *stub_fasta_ce; +zend_class_entry *stub_fcall_ce; +zend_class_entry *stub_fetchtest_ce; +zend_class_entry *stub_fibonnaci_ce; +zend_class_entry *stub_flow_ce; +zend_class_entry *stub_flow_switchflow_ce; +zend_class_entry *stub_fortytwo_ce; +zend_class_entry *stub_functional_ce; +zend_class_entry *stub_functionexists_ce; +zend_class_entry *stub_geometry_ce; +zend_class_entry *stub_globals_ce; +zend_class_entry *stub_globals_env_ce; +zend_class_entry *stub_globals_post_ce; +zend_class_entry *stub_globals_server_ce; +zend_class_entry *stub_globals_serverrequestfactory_ce; +zend_class_entry *stub_globals_session_child_ce; +zend_class_entry *stub_instance_ce; +zend_class_entry *stub_instanceoff_ce; +zend_class_entry *stub_internalclasses_ce; +zend_class_entry *stub_internalinterfaces_ce; +zend_class_entry *stub_invoke_ce; +zend_class_entry *stub_issettest_ce; +zend_class_entry *stub_issue1404_ce; +zend_class_entry *stub_issue1521_ce; +zend_class_entry *stub_issues_ce; +zend_class_entry *stub_json_ce; +zend_class_entry *stub_logical_ce; +zend_class_entry *stub_mcall_caller_ce; +zend_class_entry *stub_mcall_ce; +zend_class_entry *stub_mcallchained_ce; +zend_class_entry *stub_mcalldynamic_ce; +zend_class_entry *stub_mcallinternal_ce; +zend_class_entry *stub_methodabstract_ce; +zend_class_entry *stub_methodargs_ce; +zend_class_entry *stub_nativearray_ce; +zend_class_entry *stub_oo_abstractclass_ce; +zend_class_entry *stub_oo_ce; +zend_class_entry *stub_oo_concretestatic_ce; +zend_class_entry *stub_oo_constantsinterface_ce; +zend_class_entry *stub_oo_deprecatedmethods_ce; +zend_class_entry *stub_oo_dynamicprop_ce; +zend_class_entry *stub_oo_extend_db_query_placeholder_exception_ce; +zend_class_entry *stub_oo_extend_spl_arrayobject_ce; +zend_class_entry *stub_oo_extend_spl_directoryiterator_ce; +zend_class_entry *stub_oo_extend_spl_doublylinkedlist_ce; +zend_class_entry *stub_oo_extend_spl_fileinfo_ce; +zend_class_entry *stub_oo_extend_spl_fileobject_ce; +zend_class_entry *stub_oo_extend_spl_filesystemiterator_ce; +zend_class_entry *stub_oo_extend_spl_fixedarray_ce; +zend_class_entry *stub_oo_extend_spl_globiterator_ce; +zend_class_entry *stub_oo_extend_spl_heap_ce; +zend_class_entry *stub_oo_extend_spl_maxheap_ce; +zend_class_entry *stub_oo_extend_spl_minheap_ce; +zend_class_entry *stub_oo_extend_spl_priorityqueue_ce; +zend_class_entry *stub_oo_extend_spl_queue_ce; +zend_class_entry *stub_oo_extend_spl_recursivedirectoryiterator_ce; +zend_class_entry *stub_oo_extend_spl_stack_ce; +zend_class_entry *stub_oo_extend_spl_tempfileobject_ce; +zend_class_entry *stub_oo_extendpdoclass_ce; +zend_class_entry *stub_oo_ooconstruct_ce; +zend_class_entry *stub_oo_ooconstructparams_ce; +zend_class_entry *stub_oo_oodestruct_ce; +zend_class_entry *stub_oo_oodynamicb_ce; +zend_class_entry *stub_oo_oonativeimplements_ce; +zend_class_entry *stub_oo_oonoconstruct_ce; +zend_class_entry *stub_oo_ooparams_ce; +zend_class_entry *stub_oo_param_ce; +zend_class_entry *stub_oo_propertyaccess_ce; +zend_class_entry *stub_oo_scopes_abstractclass_ce; +zend_class_entry *stub_oo_scopes_abstractclassmagic_ce; +zend_class_entry *stub_oo_scopes_privatescopetester_ce; +zend_class_entry *stub_operator_ce; +zend_class_entry *stub_optimizers_acos_ce; +zend_class_entry *stub_optimizers_arraymerge_ce; +zend_class_entry *stub_optimizers_asin_ce; +zend_class_entry *stub_optimizers_cos_ce; +zend_class_entry *stub_optimizers_createarray_ce; +zend_class_entry *stub_optimizers_isscalar_ce; +zend_class_entry *stub_optimizers_ldexp_ce; +zend_class_entry *stub_optimizers_sin_ce; +zend_class_entry *stub_optimizers_sqrt_ce; +zend_class_entry *stub_optimizers_strreplace_ce; +zend_class_entry *stub_optimizers_substr_ce; +zend_class_entry *stub_optimizers_tan_ce; +zend_class_entry *stub_pdostatement_ce; +zend_class_entry *stub_pregmatch_ce; +zend_class_entry *stub_properties_app_ce; +zend_class_entry *stub_properties_extendspublicproperties_ce; +zend_class_entry *stub_properties_privateproperties_ce; +zend_class_entry *stub_properties_propertyarray_ce; +zend_class_entry *stub_properties_propertyupdate_ce; +zend_class_entry *stub_properties_protectedproperties_ce; +zend_class_entry *stub_properties_staticprivateproperties_ce; +zend_class_entry *stub_properties_staticpropertyarray_ce; +zend_class_entry *stub_properties_staticprotectedproperties_ce; +zend_class_entry *stub_properties_staticpublicproperties_ce; +zend_class_entry *stub_quantum_ce; +zend_class_entry *stub_range_ce; +zend_class_entry *stub_references_ce; +zend_class_entry *stub_regexdna_ce; +zend_class_entry *stub_requires_ce; +zend_class_entry *stub_requires_external3_ce; +zend_class_entry *stub_resourcetest_ce; +zend_class_entry *stub_returns_ce; +zend_class_entry *stub_router_ce; +zend_class_entry *stub_router_exception_ce; +zend_class_entry *stub_router_route_ce; +zend_class_entry *stub_scall_ce; +zend_class_entry *stub_scalldynamic_ce; +zend_class_entry *stub_scallexternal_ce; +zend_class_entry *stub_scope_ce; +zend_class_entry *stub_sort_ce; +zend_class_entry *stub_spectralnorm_ce; +zend_class_entry *stub_spropertyaccess_ce; +zend_class_entry *stub_statements_ce; +zend_class_entry *stub_strings_ce; +zend_class_entry *stub_stubs_ce; +zend_class_entry *stub_ternary_ce; +zend_class_entry *stub_trytest_ce; +zend_class_entry *stub_typehinting_testabstract_ce; +zend_class_entry *stub_typeinstances_ce; +zend_class_entry *stub_typeoff_ce; +zend_class_entry *stub_unknownclass_ce; +zend_class_entry *stub_unsettest_ce; +zend_class_entry *stub_usetest_ce; +zend_class_entry *stub_vars_ce; + +ZEND_DECLARE_MODULE_GLOBALS(stub) + +PHP_INI_BEGIN() + STD_PHP_INI_BOOLEAN("stub.db.my_setting_1", "0", PHP_INI_ALL, OnUpdateBool, db.my_setting_1, zend_stub_globals, stub_globals) + + + + STD_PHP_INI_BOOLEAN("stub.orm.cache_enable", "1", PHP_INI_ALL, OnUpdateBool, orm.cache_enable, zend_stub_globals, stub_globals) + STD_PHP_INI_BOOLEAN("extension.test_ini_variable", "1", PHP_INI_ALL, OnUpdateBool, extension.test_ini_variable, zend_stub_globals, stub_globals) + STD_PHP_INI_BOOLEAN("ini-entry.my_setting_1", "1", PHP_INI_ALL, OnUpdateBool, my_setting_1, zend_stub_globals, stub_globals) + STD_PHP_INI_BOOLEAN("stub.test_setting_1", "1", PHP_INI_ALL, OnUpdateBool, test_setting_1, zend_stub_globals, stub_globals) +PHP_INI_END() + +static PHP_MINIT_FUNCTION(stub) +{ + REGISTER_INI_ENTRIES(); + zephir_module_init(); + ZEPHIR_INIT(Stub_TestInterface); + ZEPHIR_INIT(Stub_MethodInterface); + ZEPHIR_INIT(Stub_OoImpl_ZBeginning); + ZEPHIR_INIT(Stub_Oo_Scopes_ScopeTesterInterface); + ZEPHIR_INIT(Stub_DiInterface); + ZEPHIR_INIT(Stub_ExtendedInterface); + ZEPHIR_INIT(Stub_Integration_Psr_Http_Message_MessageInterfaceEx); + ZEPHIR_INIT(Stub_OoImpl_ABeginning); + ZEPHIR_INIT(Stub_Oo_Extend_Exception); + ZEPHIR_INIT(Stub_Oo_Extend_Db_Exception); + ZEPHIR_INIT(Stub_ScallParent); + ZEPHIR_INIT(Stub_ConstantsParent); + ZEPHIR_INIT(Stub_Globals_Session_Base); + ZEPHIR_INIT(Stub_Oo_AbstractStatic); + ZEPHIR_INIT(Stub_Oo_Extend_Db_Query_Exception); + ZEPHIR_INIT(Stub_Oo_OoDynamicA); + ZEPHIR_INIT(Stub_Oo_Scopes_HasPrivateMethod); + ZEPHIR_INIT(Stub_Properties_PublicProperties); + ZEPHIR_INIT(Stub_Arithmetic); + ZEPHIR_INIT(Stub_ArrayAccessObj); + ZEPHIR_INIT(Stub_ArrayAccessTest); + ZEPHIR_INIT(Stub_ArrayIterator); + ZEPHIR_INIT(Stub_ArrayIteratorTest); + ZEPHIR_INIT(Stub_ArrayObject); + ZEPHIR_INIT(Stub_ArraySearch); + ZEPHIR_INIT(Stub_Assign); + ZEPHIR_INIT(Stub_Bench_Foo); + ZEPHIR_INIT(Stub_Bitwise); + ZEPHIR_INIT(Stub_BranchPrediction); + ZEPHIR_INIT(Stub_BuiltIn_ArrayMethods); + ZEPHIR_INIT(Stub_BuiltIn_CharMethods); + ZEPHIR_INIT(Stub_BuiltIn_IntMethods); + ZEPHIR_INIT(Stub_BuiltIn_StringMethods); + ZEPHIR_INIT(Stub_Cast); + ZEPHIR_INIT(Stub_Cblock); + ZEPHIR_INIT(Stub_Chars); + ZEPHIR_INIT(Stub_Closures); + ZEPHIR_INIT(Stub_Compare); + ZEPHIR_INIT(Stub_Concat); + ZEPHIR_INIT(Stub_Constants); + ZEPHIR_INIT(Stub_ConstantsInterface); + ZEPHIR_INIT(Stub_ConstantsInterfaceA); + ZEPHIR_INIT(Stub_ConstantsInterfaceB); + ZEPHIR_INIT(Stub_DeclareTest); + ZEPHIR_INIT(Stub_Echoes); + ZEPHIR_INIT(Stub_EmptyTest); + ZEPHIR_INIT(Stub_EvalTest); + ZEPHIR_INIT(Stub_Exception); + ZEPHIR_INIT(Stub_Exceptions); + ZEPHIR_INIT(Stub_Exists); + ZEPHIR_INIT(Stub_ExitDie); + ZEPHIR_INIT(Stub_Factorial); + ZEPHIR_INIT(Stub_Fannkuch); + ZEPHIR_INIT(Stub_Fasta); + ZEPHIR_INIT(Stub_Fcall); + ZEPHIR_INIT(Stub_FetchTest); + ZEPHIR_INIT(Stub_Fibonnaci); + ZEPHIR_INIT(Stub_Flow); + ZEPHIR_INIT(Stub_Flow_SwitchFlow); + ZEPHIR_INIT(Stub_FortyTwo); + ZEPHIR_INIT(Stub_FunctionExists); + ZEPHIR_INIT(Stub_Functional); + ZEPHIR_INIT(Stub_Geometry); + ZEPHIR_INIT(Stub_Globals); + ZEPHIR_INIT(Stub_Globals_Env); + ZEPHIR_INIT(Stub_Globals_Post); + ZEPHIR_INIT(Stub_Globals_Server); + ZEPHIR_INIT(Stub_Globals_ServerRequestFactory); + ZEPHIR_INIT(Stub_Globals_Session_Child); + ZEPHIR_INIT(Stub_Instance); + ZEPHIR_INIT(Stub_Instanceoff); + ZEPHIR_INIT(Stub_InternalClasses); + ZEPHIR_INIT(Stub_InternalInterfaces); + ZEPHIR_INIT(Stub_Invoke); + ZEPHIR_INIT(Stub_IssetTest); + ZEPHIR_INIT(Stub_Issue1404); + ZEPHIR_INIT(Stub_Issue1521); + ZEPHIR_INIT(Stub_Issues); + ZEPHIR_INIT(Stub_Json); + ZEPHIR_INIT(Stub_Logical); + ZEPHIR_INIT(Stub_Mcall); + ZEPHIR_INIT(Stub_McallChained); + ZEPHIR_INIT(Stub_McallDynamic); + ZEPHIR_INIT(Stub_McallInternal); + ZEPHIR_INIT(Stub_Mcall_Caller); + ZEPHIR_INIT(Stub_MethodAbstract); + ZEPHIR_INIT(Stub_MethodArgs); + ZEPHIR_INIT(Stub_NativeArray); + ZEPHIR_INIT(Stub_Oo); + ZEPHIR_INIT(Stub_Oo_AbstractClass); + ZEPHIR_INIT(Stub_Oo_ConcreteStatic); + ZEPHIR_INIT(Stub_Oo_ConstantsInterface); + ZEPHIR_INIT(Stub_Oo_DeprecatedMethods); + ZEPHIR_INIT(Stub_Oo_DynamicProp); + ZEPHIR_INIT(Stub_Oo_ExtendPdoClass); + ZEPHIR_INIT(Stub_Oo_Extend_Db_Query_Placeholder_Exception); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_ArrayObject); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_DirectoryIterator); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_DoublyLinkedList); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_FileInfo); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_FileObject); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_FilesystemIterator); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_FixedArray); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_GlobIterator); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_Heap); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_MaxHeap); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_MinHeap); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_PriorityQueue); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_Queue); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_RecursiveDirectoryIterator); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_Stack); + ZEPHIR_INIT(Stub_Oo_Extend_Spl_TempFileObject); + ZEPHIR_INIT(Stub_Oo_OoConstruct); + ZEPHIR_INIT(Stub_Oo_OoConstructParams); + ZEPHIR_INIT(Stub_Oo_OoDestruct); + ZEPHIR_INIT(Stub_Oo_OoDynamicB); + ZEPHIR_INIT(Stub_Oo_OoNativeImplements); + ZEPHIR_INIT(Stub_Oo_OoNoConstruct); + ZEPHIR_INIT(Stub_Oo_OoParams); + ZEPHIR_INIT(Stub_Oo_Param); + ZEPHIR_INIT(Stub_Oo_PropertyAccess); + ZEPHIR_INIT(Stub_Oo_Scopes_AbstractClass); + ZEPHIR_INIT(Stub_Oo_Scopes_AbstractClassMagic); + ZEPHIR_INIT(Stub_Oo_Scopes_PrivateScopeTester); + ZEPHIR_INIT(Stub_Operator); + ZEPHIR_INIT(Stub_Optimizers_ACos); + ZEPHIR_INIT(Stub_Optimizers_ASin); + ZEPHIR_INIT(Stub_Optimizers_ArrayMerge); + ZEPHIR_INIT(Stub_Optimizers_Cos); + ZEPHIR_INIT(Stub_Optimizers_CreateArray); + ZEPHIR_INIT(Stub_Optimizers_IsScalar); + ZEPHIR_INIT(Stub_Optimizers_Ldexp); + ZEPHIR_INIT(Stub_Optimizers_Sin); + ZEPHIR_INIT(Stub_Optimizers_Sqrt); + ZEPHIR_INIT(Stub_Optimizers_StrReplace); + ZEPHIR_INIT(Stub_Optimizers_Substr); + ZEPHIR_INIT(Stub_Optimizers_Tan); + ZEPHIR_INIT(Stub_PdoStatement); + ZEPHIR_INIT(Stub_Pregmatch); + ZEPHIR_INIT(Stub_Properties_App); + ZEPHIR_INIT(Stub_Properties_ExtendsPublicProperties); + ZEPHIR_INIT(Stub_Properties_PrivateProperties); + ZEPHIR_INIT(Stub_Properties_PropertyArray); + ZEPHIR_INIT(Stub_Properties_PropertyUpdate); + ZEPHIR_INIT(Stub_Properties_ProtectedProperties); + ZEPHIR_INIT(Stub_Properties_StaticPrivateProperties); + ZEPHIR_INIT(Stub_Properties_StaticPropertyArray); + ZEPHIR_INIT(Stub_Properties_StaticProtectedProperties); + ZEPHIR_INIT(Stub_Properties_StaticPublicProperties); + ZEPHIR_INIT(Stub_Quantum); + ZEPHIR_INIT(Stub_Range); + ZEPHIR_INIT(Stub_References); + ZEPHIR_INIT(Stub_RegexDNA); + ZEPHIR_INIT(Stub_Requires); + ZEPHIR_INIT(Stub_Requires_External3); + ZEPHIR_INIT(Stub_ResourceTest); + ZEPHIR_INIT(Stub_Returns); + ZEPHIR_INIT(Stub_Router); + ZEPHIR_INIT(Stub_Router_Exception); + ZEPHIR_INIT(Stub_Router_Route); + ZEPHIR_INIT(Stub_SPropertyAccess); + ZEPHIR_INIT(Stub_Scall); + ZEPHIR_INIT(Stub_ScallDynamic); + ZEPHIR_INIT(Stub_ScallExternal); + ZEPHIR_INIT(Stub_Scope); + ZEPHIR_INIT(Stub_Sort); + ZEPHIR_INIT(Stub_SpectralNorm); + ZEPHIR_INIT(Stub_Statements); + ZEPHIR_INIT(Stub_Strings); + ZEPHIR_INIT(Stub_Stubs); + ZEPHIR_INIT(Stub_Ternary); + ZEPHIR_INIT(Stub_TryTest); + ZEPHIR_INIT(Stub_TypeHinting_TestAbstract); + ZEPHIR_INIT(Stub_TypeInstances); + ZEPHIR_INIT(Stub_Typeoff); + ZEPHIR_INIT(Stub_UnknownClass); + ZEPHIR_INIT(Stub_Unsettest); + ZEPHIR_INIT(Stub_UseTest); + ZEPHIR_INIT(Stub_Vars); + ZEPHIR_INIT(stub_0__closure); + ZEPHIR_INIT(stub_10__closure); + ZEPHIR_INIT(stub_11__closure); + ZEPHIR_INIT(stub_12__closure); + ZEPHIR_INIT(stub_1__closure); + ZEPHIR_INIT(stub_2__closure); + ZEPHIR_INIT(stub_3__closure); + ZEPHIR_INIT(stub_4__closure); + ZEPHIR_INIT(stub_5__closure); + ZEPHIR_INIT(stub_6__closure); + ZEPHIR_INIT(stub_7__closure); + ZEPHIR_INIT(stub_8__closure); + ZEPHIR_INIT(stub_9__closure); + + return SUCCESS; +} + +#ifndef ZEPHIR_RELEASE +static PHP_MSHUTDOWN_FUNCTION(stub) +{ + + zephir_deinitialize_memory(TSRMLS_C); + UNREGISTER_INI_ENTRIES(); + return SUCCESS; +} +#endif + +/** + * Initialize globals on each request or each thread started + */ +static void php_zephir_init_globals(zend_stub_globals *stub_globals TSRMLS_DC) +{ + stub_globals->initialized = 0; + + /* Cache Enabled */ + stub_globals->cache_enabled = 1; + + /* Recursive Lock */ + stub_globals->recursive_lock = 0; + + /* Static cache */ + memset(stub_globals->scache, '\0', sizeof(zephir_fcall_cache_entry*) * ZEPHIR_MAX_CACHE_SLOTS); + + + stub_globals->db.my_setting_2 = 100; + stub_globals->db.my_setting_3 = 7.5; + stub_globals->orm.cache_level = 3; + + + stub_globals->my_setting_1 = 1; + stub_globals->test_setting_1 = 1; + stub_globals->my_setting_2 = 10; + stub_globals->my_setting_3 = 15.2; + stub_globals->my_setting_4 = 'A'; + + +} + +/** + * Initialize globals only on each thread started + */ +static void php_zephir_init_module_globals(zend_stub_globals *stub_globals TSRMLS_DC) +{ + +} + +static PHP_RINIT_FUNCTION(stub) +{ + zend_stub_globals *stub_globals_ptr; + stub_globals_ptr = ZEPHIR_VGLOBAL; + + php_zephir_init_globals(stub_globals_ptr); + zephir_initialize_memory(stub_globals_ptr); + + zephir_init_static_properties_Stub_Properties_StaticPropertyArray(TSRMLS_C); + zephir_init_static_properties_Stub_SPropertyAccess(TSRMLS_C); + + return SUCCESS; +} + +static PHP_RSHUTDOWN_FUNCTION(stub) +{ + + zephir_deinitialize_memory(TSRMLS_C); + return SUCCESS; +} + + + +static PHP_MINFO_FUNCTION(stub) +{ + php_info_print_box_start(0); + php_printf("%s", PHP_STUB_DESCRIPTION); + php_info_print_box_end(); + + php_info_print_table_start(); + php_info_print_table_header(2, PHP_STUB_NAME, "enabled"); + php_info_print_table_row(2, "Author", PHP_STUB_AUTHOR); + php_info_print_table_row(2, "Version", PHP_STUB_VERSION); + php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__ ); + php_info_print_table_row(2, "Powered by Zephir", "Version " PHP_STUB_ZEPVERSION); + php_info_print_table_end(); + php_info_print_table_start(); + php_info_print_table_header(2, "Test Extension support", "Value"); + php_info_print_table_row(2, "Lifecycle hooks", "PHP provides several lifecycle events, which extensions can use to perform common initialization or shutdown tasks."); + php_info_print_table_row(2, "Static Analysis", "Test extensions' compiler provides static analysis of the compiled code."); + php_info_print_table_end(); + php_info_print_table_start(); + php_info_print_table_header(2, "Test variable", "Value"); + php_info_print_table_row(2, "Extension", "Installed"); + php_info_print_table_row(2, "NFR", "Contributions are welcome!"); + php_info_print_table_end(); + + DISPLAY_INI_ENTRIES(); +} + +static PHP_GINIT_FUNCTION(stub) +{ +#if defined(COMPILE_DL_STUB) && defined(ZTS) + ZEND_TSRMLS_CACHE_UPDATE(); +#endif + + php_zephir_init_globals(stub_globals); + php_zephir_init_module_globals(stub_globals); +} + +static PHP_GSHUTDOWN_FUNCTION(stub) +{ + +} + +PHP_FUNCTION(g_stub_zephir_global_method_test); +ZEND_BEGIN_ARG_INFO_EX(arginfo_g_stub_zephir_global_method_test, 0, 0, 1) + ZEND_ARG_INFO(0, str) +ZEND_END_ARG_INFO() + +PHP_FUNCTION(g_stub_zephir_global_method_with_type_casting); +ZEND_BEGIN_ARG_INFO_EX(arginfo_g_stub_zephir_global_method_with_type_casting, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, variable, stdClass, 0) +ZEND_END_ARG_INFO() + +PHP_FUNCTION(f_Stub_zephir_namespaced_method_test); +ZEND_BEGIN_ARG_INFO_EX(arginfo_f_stub_zephir_namespaced_method_test, 0, 0, 1) + ZEND_ARG_INFO(0, str) +ZEND_END_ARG_INFO() + +PHP_FUNCTION(f_Stub_test_call_relative_object_hint); +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_f_stub_test_call_relative_object_hint, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_f_stub_test_call_relative_object_hint, 0, 1, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_OBJ_INFO(0, a, Stub\\Oo\\PropertyAccess, 0) +ZEND_END_ARG_INFO() + +PHP_FUNCTION(f_Stub_zephir_namespaced_method_with_type_casting); +ZEND_BEGIN_ARG_INFO_EX(arginfo_f_stub_zephir_namespaced_method_with_type_casting, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, variable, stdClass, 0) +ZEND_END_ARG_INFO() + +PHP_FUNCTION(f_Stub_test_call_object_hint); +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_f_stub_test_call_object_hint, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_f_stub_test_call_object_hint, 0, 1, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_OBJ_INFO(0, a, Stub\\Oo\\PropertyAccess, 0) +ZEND_END_ARG_INFO() + + +zend_function_entry php_stub_functions[] = { + ZEND_NAMED_FE(zephir_global_method_test, ZEND_FN(g_stub_zephir_global_method_test), arginfo_g_stub_zephir_global_method_test) +ZEND_NAMED_FE(zephir_global_method_with_type_casting, ZEND_FN(g_stub_zephir_global_method_with_type_casting), arginfo_g_stub_zephir_global_method_with_type_casting) +ZEND_NS_NAMED_FE("Stub", zephir_namespaced_method_test, ZEND_FN(f_Stub_zephir_namespaced_method_test), arginfo_f_stub_zephir_namespaced_method_test) +ZEND_NS_NAMED_FE("Stub", test_call_relative_object_hint, ZEND_FN(f_Stub_test_call_relative_object_hint), arginfo_f_stub_test_call_relative_object_hint) +ZEND_NS_NAMED_FE("Stub", zephir_namespaced_method_with_type_casting, ZEND_FN(f_Stub_zephir_namespaced_method_with_type_casting), arginfo_f_stub_zephir_namespaced_method_with_type_casting) +ZEND_NS_NAMED_FE("Stub", test_call_object_hint, ZEND_FN(f_Stub_test_call_object_hint), arginfo_f_stub_test_call_object_hint) +ZEND_FE_END + +}; + +static const zend_module_dep php_stub_deps[] = { + ZEND_MOD_REQUIRED("pdo") + ZEND_MOD_REQUIRED("spl") + ZEND_MOD_REQUIRED("standard") + ZEND_MOD_REQUIRED("hash") + ZEND_MOD_REQUIRED("json") + ZEND_MOD_END +}; + +zend_module_entry stub_module_entry = { + STANDARD_MODULE_HEADER_EX, + NULL, + php_stub_deps, + PHP_STUB_EXTNAME, + php_stub_functions, + PHP_MINIT(stub), +#ifndef ZEPHIR_RELEASE + PHP_MSHUTDOWN(stub), +#else + NULL, +#endif + PHP_RINIT(stub), + PHP_RSHUTDOWN(stub), + PHP_MINFO(stub), + PHP_STUB_VERSION, + ZEND_MODULE_GLOBALS(stub), + PHP_GINIT(stub), + PHP_GSHUTDOWN(stub), +#ifdef ZEPHIR_POST_REQUEST + PHP_PRSHUTDOWN(stub), +#else + NULL, +#endif + STANDARD_MODULE_PROPERTIES_EX +}; + +/* implement standard "stub" routine to introduce ourselves to Zend */ +#ifdef COMPILE_DL_STUB +# ifdef ZTS +ZEND_TSRMLS_CACHE_DEFINE() +# endif +ZEND_GET_MODULE(stub) +#endif diff --git a/ext/stub.h b/ext/stub.h new file mode 100644 index 0000000000..0d90c3fcc9 --- /dev/null +++ b/ext/stub.h @@ -0,0 +1,200 @@ + +/* This file was generated automatically by Zephir do not modify it! */ + +#ifndef ZEPHIR_CLASS_ENTRIES_H +#define ZEPHIR_CLASS_ENTRIES_H + +#include "stub/testinterface.zep.h" +#include "stub/oo/extend/exception.zep.h" +#include "stub/oo/extend/db/exception.zep.h" +#include "stub/scallparent.zep.h" +#include "stub/constantsparent.zep.h" +#include "stub/globals/session/base.zep.h" +#include "stub/methodinterface.zep.h" +#include "stub/oo/abstractstatic.zep.h" +#include "stub/oo/extend/db/query/exception.zep.h" +#include "stub/oo/oodynamica.zep.h" +#include "stub/oo/scopes/hasprivatemethod.zep.h" +#include "stub/oo/scopes/scopetesterinterface.zep.h" +#include "stub/ooimpl/zbeginning.zep.h" +#include "stub/properties/publicproperties.zep.h" +#include "stub/arithmetic.zep.h" +#include "stub/arrayaccessobj.zep.h" +#include "stub/arrayaccesstest.zep.h" +#include "stub/arrayiterator.zep.h" +#include "stub/arrayiteratortest.zep.h" +#include "stub/arrayobject.zep.h" +#include "stub/arraysearch.zep.h" +#include "stub/assign.zep.h" +#include "stub/bench/foo.zep.h" +#include "stub/bitwise.zep.h" +#include "stub/branchprediction.zep.h" +#include "stub/builtin/arraymethods.zep.h" +#include "stub/builtin/charmethods.zep.h" +#include "stub/builtin/intmethods.zep.h" +#include "stub/builtin/stringmethods.zep.h" +#include "stub/cast.zep.h" +#include "stub/cblock.zep.h" +#include "stub/chars.zep.h" +#include "stub/closures.zep.h" +#include "stub/compare.zep.h" +#include "stub/concat.zep.h" +#include "stub/constants.zep.h" +#include "stub/constantsinterface.zep.h" +#include "stub/constantsinterfacea.zep.h" +#include "stub/constantsinterfaceb.zep.h" +#include "stub/declaretest.zep.h" +#include "stub/diinterface.zep.h" +#include "stub/echoes.zep.h" +#include "stub/emptytest.zep.h" +#include "stub/evaltest.zep.h" +#include "stub/exception.zep.h" +#include "stub/exceptions.zep.h" +#include "stub/exists.zep.h" +#include "stub/exitdie.zep.h" +#include "stub/extendedinterface.zep.h" +#include "stub/factorial.zep.h" +#include "stub/fannkuch.zep.h" +#include "stub/fasta.zep.h" +#include "stub/fcall.zep.h" +#include "stub/fetchtest.zep.h" +#include "stub/fibonnaci.zep.h" +#include "stub/flow.zep.h" +#include "stub/flow/switchflow.zep.h" +#include "stub/fortytwo.zep.h" +#include "stub/functional.zep.h" +#include "stub/functionexists.zep.h" +#include "stub/geometry.zep.h" +#include "stub/globals.zep.h" +#include "stub/globals/env.zep.h" +#include "stub/globals/post.zep.h" +#include "stub/globals/server.zep.h" +#include "stub/globals/serverrequestfactory.zep.h" +#include "stub/globals/session/child.zep.h" +#include "stub/instance.zep.h" +#include "stub/instanceoff.zep.h" +#include "stub/integration/psr/http/message/messageinterfaceex.zep.h" +#include "stub/internalclasses.zep.h" +#include "stub/internalinterfaces.zep.h" +#include "stub/invoke.zep.h" +#include "stub/issettest.zep.h" +#include "stub/issue1404.zep.h" +#include "stub/issue1521.zep.h" +#include "stub/issues.zep.h" +#include "stub/json.zep.h" +#include "stub/logical.zep.h" +#include "stub/mcall.zep.h" +#include "stub/mcall/caller.zep.h" +#include "stub/mcallchained.zep.h" +#include "stub/mcalldynamic.zep.h" +#include "stub/mcallinternal.zep.h" +#include "stub/methodabstract.zep.h" +#include "stub/methodargs.zep.h" +#include "stub/nativearray.zep.h" +#include "stub/oo.zep.h" +#include "stub/oo/abstractclass.zep.h" +#include "stub/oo/concretestatic.zep.h" +#include "stub/oo/constantsinterface.zep.h" +#include "stub/oo/deprecatedmethods.zep.h" +#include "stub/oo/dynamicprop.zep.h" +#include "stub/oo/extend/db/query/placeholder/exception.zep.h" +#include "stub/oo/extend/spl/arrayobject.zep.h" +#include "stub/oo/extend/spl/directoryiterator.zep.h" +#include "stub/oo/extend/spl/doublylinkedlist.zep.h" +#include "stub/oo/extend/spl/fileinfo.zep.h" +#include "stub/oo/extend/spl/fileobject.zep.h" +#include "stub/oo/extend/spl/filesystemiterator.zep.h" +#include "stub/oo/extend/spl/fixedarray.zep.h" +#include "stub/oo/extend/spl/globiterator.zep.h" +#include "stub/oo/extend/spl/heap.zep.h" +#include "stub/oo/extend/spl/maxheap.zep.h" +#include "stub/oo/extend/spl/minheap.zep.h" +#include "stub/oo/extend/spl/priorityqueue.zep.h" +#include "stub/oo/extend/spl/queue.zep.h" +#include "stub/oo/extend/spl/recursivedirectoryiterator.zep.h" +#include "stub/oo/extend/spl/stack.zep.h" +#include "stub/oo/extend/spl/tempfileobject.zep.h" +#include "stub/oo/extendpdoclass.zep.h" +#include "stub/oo/ooconstruct.zep.h" +#include "stub/oo/ooconstructparams.zep.h" +#include "stub/oo/oodestruct.zep.h" +#include "stub/oo/oodynamicb.zep.h" +#include "stub/oo/oonativeimplements.zep.h" +#include "stub/oo/oonoconstruct.zep.h" +#include "stub/oo/ooparams.zep.h" +#include "stub/oo/param.zep.h" +#include "stub/oo/propertyaccess.zep.h" +#include "stub/oo/scopes/abstractclass.zep.h" +#include "stub/oo/scopes/abstractclassmagic.zep.h" +#include "stub/oo/scopes/privatescopetester.zep.h" +#include "stub/ooimpl/abeginning.zep.h" +#include "stub/operator.zep.h" +#include "stub/optimizers/isscalar.zep.h" +#include "stub/optimizers/acos.zep.h" +#include "stub/optimizers/arraymerge.zep.h" +#include "stub/optimizers/asin.zep.h" +#include "stub/optimizers/cos.zep.h" +#include "stub/optimizers/createarray.zep.h" +#include "stub/optimizers/ldexp.zep.h" +#include "stub/optimizers/sin.zep.h" +#include "stub/optimizers/sqrt.zep.h" +#include "stub/optimizers/strreplace.zep.h" +#include "stub/optimizers/substr.zep.h" +#include "stub/optimizers/tan.zep.h" +#include "stub/pdostatement.zep.h" +#include "stub/pregmatch.zep.h" +#include "stub/properties/app.zep.h" +#include "stub/properties/extendspublicproperties.zep.h" +#include "stub/properties/privateproperties.zep.h" +#include "stub/properties/propertyarray.zep.h" +#include "stub/properties/propertyupdate.zep.h" +#include "stub/properties/protectedproperties.zep.h" +#include "stub/properties/staticprivateproperties.zep.h" +#include "stub/properties/staticpropertyarray.zep.h" +#include "stub/properties/staticprotectedproperties.zep.h" +#include "stub/properties/staticpublicproperties.zep.h" +#include "stub/quantum.zep.h" +#include "stub/range.zep.h" +#include "stub/references.zep.h" +#include "stub/regexdna.zep.h" +#include "stub/requires.zep.h" +#include "stub/requires/external3.zep.h" +#include "stub/resourcetest.zep.h" +#include "stub/returns.zep.h" +#include "stub/router.zep.h" +#include "stub/router/exception.zep.h" +#include "stub/router/route.zep.h" +#include "stub/scall.zep.h" +#include "stub/scalldynamic.zep.h" +#include "stub/scallexternal.zep.h" +#include "stub/scope.zep.h" +#include "stub/sort.zep.h" +#include "stub/spectralnorm.zep.h" +#include "stub/spropertyaccess.zep.h" +#include "stub/statements.zep.h" +#include "stub/strings.zep.h" +#include "stub/stubs.zep.h" +#include "stub/ternary.zep.h" +#include "stub/trytest.zep.h" +#include "stub/typehinting/testabstract.zep.h" +#include "stub/typeinstances.zep.h" +#include "stub/typeoff.zep.h" +#include "stub/unknownclass.zep.h" +#include "stub/unsettest.zep.h" +#include "stub/usetest.zep.h" +#include "stub/vars.zep.h" +#include "stub/0__closure.zep.h" +#include "stub/1__closure.zep.h" +#include "stub/2__closure.zep.h" +#include "stub/3__closure.zep.h" +#include "stub/4__closure.zep.h" +#include "stub/5__closure.zep.h" +#include "stub/6__closure.zep.h" +#include "stub/7__closure.zep.h" +#include "stub/8__closure.zep.h" +#include "stub/9__closure.zep.h" +#include "stub/10__closure.zep.h" +#include "stub/11__closure.zep.h" +#include "stub/12__closure.zep.h" + +#endif \ No newline at end of file diff --git a/ext/test/0__closure.zep.c b/ext/stub/0__closure.zep.c similarity index 80% rename from ext/test/0__closure.zep.c rename to ext/stub/0__closure.zep.c index 850a02219c..3bbf191598 100644 --- a/ext/test/0__closure.zep.c +++ b/ext/stub/0__closure.zep.c @@ -17,15 +17,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(test_0__closure) { +ZEPHIR_INIT_CLASS(stub_0__closure) { - ZEPHIR_REGISTER_CLASS(test, 0__closure, test, 0__closure, test_0__closure_method_entry, ZEND_ACC_FINAL_CLASS); + ZEPHIR_REGISTER_CLASS(stub, 0__closure, stub, 0__closure, stub_0__closure_method_entry, ZEND_ACC_FINAL_CLASS); return SUCCESS; } -PHP_METHOD(test_0__closure, __invoke) { +PHP_METHOD(stub_0__closure, __invoke) { zval *x, x_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/0__closure.zep.h b/ext/stub/0__closure.zep.h new file mode 100644 index 0000000000..caaea9798d --- /dev/null +++ b/ext/stub/0__closure.zep.h @@ -0,0 +1,15 @@ + +extern zend_class_entry *stub_0__closure_ce; + +ZEPHIR_INIT_CLASS(stub_0__closure); + +PHP_METHOD(stub_0__closure, __invoke); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_0__closure___invoke, 0, 0, 1) + ZEND_ARG_INFO(0, x) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_0__closure_method_entry) { + PHP_ME(stub_0__closure, __invoke, arginfo_stub_0__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/10__closure.zep.c b/ext/stub/10__closure.zep.c similarity index 73% rename from ext/test/10__closure.zep.c rename to ext/stub/10__closure.zep.c index b7a20f9ae2..40ce8236fc 100644 --- a/ext/test/10__closure.zep.c +++ b/ext/stub/10__closure.zep.c @@ -17,15 +17,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(test_10__closure) { +ZEPHIR_INIT_CLASS(stub_10__closure) { - ZEPHIR_REGISTER_CLASS(test, 10__closure, test, 10__closure, test_10__closure_method_entry, ZEND_ACC_FINAL_CLASS); + ZEPHIR_REGISTER_CLASS(stub, 10__closure, stub, 10__closure, stub_10__closure_method_entry, ZEND_ACC_FINAL_CLASS); return SUCCESS; } -PHP_METHOD(test_10__closure, __invoke) { +PHP_METHOD(stub_10__closure, __invoke) { zval *x, x_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/10__closure.zep.h b/ext/stub/10__closure.zep.h new file mode 100644 index 0000000000..fd724899b5 --- /dev/null +++ b/ext/stub/10__closure.zep.h @@ -0,0 +1,15 @@ + +extern zend_class_entry *stub_10__closure_ce; + +ZEPHIR_INIT_CLASS(stub_10__closure); + +PHP_METHOD(stub_10__closure, __invoke); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_10__closure___invoke, 0, 0, 1) + ZEND_ARG_INFO(0, x) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_10__closure_method_entry) { + PHP_ME(stub_10__closure, __invoke, arginfo_stub_10__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/11__closure.zep.c b/ext/stub/11__closure.zep.c similarity index 64% rename from ext/test/11__closure.zep.c rename to ext/stub/11__closure.zep.c index 3caec3f32a..e0db934a1e 100644 --- a/ext/test/11__closure.zep.c +++ b/ext/stub/11__closure.zep.c @@ -15,15 +15,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(test_11__closure) { +ZEPHIR_INIT_CLASS(stub_11__closure) { - ZEPHIR_REGISTER_CLASS(test, 11__closure, test, 11__closure, test_11__closure_method_entry, ZEND_ACC_FINAL_CLASS); + ZEPHIR_REGISTER_CLASS(stub, 11__closure, stub, 11__closure, stub_11__closure_method_entry, ZEND_ACC_FINAL_CLASS); return SUCCESS; } -PHP_METHOD(test_11__closure, __invoke) { +PHP_METHOD(stub_11__closure, __invoke) { zval *this_ptr = getThis(); diff --git a/ext/stub/11__closure.zep.h b/ext/stub/11__closure.zep.h new file mode 100644 index 0000000000..22940ab91c --- /dev/null +++ b/ext/stub/11__closure.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_11__closure_ce; + +ZEPHIR_INIT_CLASS(stub_11__closure); + +PHP_METHOD(stub_11__closure, __invoke); + +ZEPHIR_INIT_FUNCS(stub_11__closure_method_entry) { + PHP_ME(stub_11__closure, __invoke, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/12__closure.zep.c b/ext/stub/12__closure.zep.c similarity index 69% rename from ext/test/12__closure.zep.c rename to ext/stub/12__closure.zep.c index 025a06ce11..c2ad47f511 100644 --- a/ext/test/12__closure.zep.c +++ b/ext/stub/12__closure.zep.c @@ -17,15 +17,15 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(test_12__closure) { +ZEPHIR_INIT_CLASS(stub_12__closure) { - ZEPHIR_REGISTER_CLASS(test, 12__closure, test, 12__closure, test_12__closure_method_entry, ZEND_ACC_FINAL_CLASS); + ZEPHIR_REGISTER_CLASS(stub, 12__closure, stub, 12__closure, stub_12__closure_method_entry, ZEND_ACC_FINAL_CLASS); return SUCCESS; } -PHP_METHOD(test_12__closure, __invoke) { +PHP_METHOD(stub_12__closure, __invoke) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -35,7 +35,7 @@ PHP_METHOD(test_12__closure, __invoke) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_CE_STATIC(test_mcall_caller_ce, "perform", &_0, 0); + ZEPHIR_RETURN_CALL_CE_STATIC(stub_mcall_caller_ce, "perform", &_0, 0); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/stub/12__closure.zep.h b/ext/stub/12__closure.zep.h new file mode 100644 index 0000000000..f2fddab1ba --- /dev/null +++ b/ext/stub/12__closure.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_12__closure_ce; + +ZEPHIR_INIT_CLASS(stub_12__closure); + +PHP_METHOD(stub_12__closure, __invoke); + +ZEPHIR_INIT_FUNCS(stub_12__closure_method_entry) { + PHP_ME(stub_12__closure, __invoke, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/1__closure.zep.c b/ext/stub/1__closure.zep.c similarity index 73% rename from ext/test/1__closure.zep.c rename to ext/stub/1__closure.zep.c index 5d1ba4f90c..36592bcf42 100644 --- a/ext/test/1__closure.zep.c +++ b/ext/stub/1__closure.zep.c @@ -15,15 +15,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(test_1__closure) { +ZEPHIR_INIT_CLASS(stub_1__closure) { - ZEPHIR_REGISTER_CLASS(test, 1__closure, test, 1__closure, test_1__closure_method_entry, ZEND_ACC_FINAL_CLASS); + ZEPHIR_REGISTER_CLASS(stub, 1__closure, stub, 1__closure, stub_1__closure_method_entry, ZEND_ACC_FINAL_CLASS); return SUCCESS; } -PHP_METHOD(test_1__closure, __invoke) { +PHP_METHOD(stub_1__closure, __invoke) { zval *this_ptr = getThis(); diff --git a/ext/stub/1__closure.zep.h b/ext/stub/1__closure.zep.h new file mode 100644 index 0000000000..ba8a3aecf2 --- /dev/null +++ b/ext/stub/1__closure.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_1__closure_ce; + +ZEPHIR_INIT_CLASS(stub_1__closure); + +PHP_METHOD(stub_1__closure, __invoke); + +ZEPHIR_INIT_FUNCS(stub_1__closure_method_entry) { + PHP_ME(stub_1__closure, __invoke, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/2__closure.zep.c b/ext/stub/2__closure.zep.c similarity index 73% rename from ext/test/2__closure.zep.c rename to ext/stub/2__closure.zep.c index bd1a1b8ca1..8450da1fca 100644 --- a/ext/test/2__closure.zep.c +++ b/ext/stub/2__closure.zep.c @@ -15,15 +15,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(test_2__closure) { +ZEPHIR_INIT_CLASS(stub_2__closure) { - ZEPHIR_REGISTER_CLASS(test, 2__closure, test, 2__closure, test_2__closure_method_entry, ZEND_ACC_FINAL_CLASS); + ZEPHIR_REGISTER_CLASS(stub, 2__closure, stub, 2__closure, stub_2__closure_method_entry, ZEND_ACC_FINAL_CLASS); return SUCCESS; } -PHP_METHOD(test_2__closure, __invoke) { +PHP_METHOD(stub_2__closure, __invoke) { zval *this_ptr = getThis(); diff --git a/ext/stub/2__closure.zep.h b/ext/stub/2__closure.zep.h new file mode 100644 index 0000000000..c660e098bd --- /dev/null +++ b/ext/stub/2__closure.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_2__closure_ce; + +ZEPHIR_INIT_CLASS(stub_2__closure); + +PHP_METHOD(stub_2__closure, __invoke); + +ZEPHIR_INIT_FUNCS(stub_2__closure_method_entry) { + PHP_ME(stub_2__closure, __invoke, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/3__closure.zep.c b/ext/stub/3__closure.zep.c similarity index 78% rename from ext/test/3__closure.zep.c rename to ext/stub/3__closure.zep.c index 5c0b2b441c..f3246442ad 100644 --- a/ext/test/3__closure.zep.c +++ b/ext/stub/3__closure.zep.c @@ -16,15 +16,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(test_3__closure) { +ZEPHIR_INIT_CLASS(stub_3__closure) { - ZEPHIR_REGISTER_CLASS(test, 3__closure, test, 3__closure, test_3__closure_method_entry, ZEND_ACC_FINAL_CLASS); + ZEPHIR_REGISTER_CLASS(stub, 3__closure, stub, 3__closure, stub_3__closure_method_entry, ZEND_ACC_FINAL_CLASS); return SUCCESS; } -PHP_METHOD(test_3__closure, __invoke) { +PHP_METHOD(stub_3__closure, __invoke) { zval *param1, param1_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/3__closure.zep.h b/ext/stub/3__closure.zep.h new file mode 100644 index 0000000000..ffa006591c --- /dev/null +++ b/ext/stub/3__closure.zep.h @@ -0,0 +1,15 @@ + +extern zend_class_entry *stub_3__closure_ce; + +ZEPHIR_INIT_CLASS(stub_3__closure); + +PHP_METHOD(stub_3__closure, __invoke); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_3__closure___invoke, 0, 0, 1) + ZEND_ARG_INFO(0, param1) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_3__closure_method_entry) { + PHP_ME(stub_3__closure, __invoke, arginfo_stub_3__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/4__closure.zep.c b/ext/stub/4__closure.zep.c similarity index 78% rename from ext/test/4__closure.zep.c rename to ext/stub/4__closure.zep.c index 8f61a31a00..7e55452b1a 100644 --- a/ext/test/4__closure.zep.c +++ b/ext/stub/4__closure.zep.c @@ -16,15 +16,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(test_4__closure) { +ZEPHIR_INIT_CLASS(stub_4__closure) { - ZEPHIR_REGISTER_CLASS(test, 4__closure, test, 4__closure, test_4__closure_method_entry, ZEND_ACC_FINAL_CLASS); + ZEPHIR_REGISTER_CLASS(stub, 4__closure, stub, 4__closure, stub_4__closure_method_entry, ZEND_ACC_FINAL_CLASS); return SUCCESS; } -PHP_METHOD(test_4__closure, __invoke) { +PHP_METHOD(stub_4__closure, __invoke) { zval *param1, param1_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/4__closure.zep.h b/ext/stub/4__closure.zep.h new file mode 100644 index 0000000000..3fab1890ab --- /dev/null +++ b/ext/stub/4__closure.zep.h @@ -0,0 +1,15 @@ + +extern zend_class_entry *stub_4__closure_ce; + +ZEPHIR_INIT_CLASS(stub_4__closure); + +PHP_METHOD(stub_4__closure, __invoke); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_4__closure___invoke, 0, 0, 1) + ZEND_ARG_INFO(0, param1) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_4__closure_method_entry) { + PHP_ME(stub_4__closure, __invoke, arginfo_stub_4__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/5__closure.zep.c b/ext/stub/5__closure.zep.c similarity index 79% rename from ext/test/5__closure.zep.c rename to ext/stub/5__closure.zep.c index a1a8436c7d..a428f163f9 100644 --- a/ext/test/5__closure.zep.c +++ b/ext/stub/5__closure.zep.c @@ -16,15 +16,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(test_5__closure) { +ZEPHIR_INIT_CLASS(stub_5__closure) { - ZEPHIR_REGISTER_CLASS(test, 5__closure, test, 5__closure, test_5__closure_method_entry, ZEND_ACC_FINAL_CLASS); + ZEPHIR_REGISTER_CLASS(stub, 5__closure, stub, 5__closure, stub_5__closure_method_entry, ZEND_ACC_FINAL_CLASS); return SUCCESS; } -PHP_METHOD(test_5__closure, __invoke) { +PHP_METHOD(stub_5__closure, __invoke) { zval *param1, param1_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/5__closure.zep.h b/ext/stub/5__closure.zep.h new file mode 100644 index 0000000000..989ae5876e --- /dev/null +++ b/ext/stub/5__closure.zep.h @@ -0,0 +1,15 @@ + +extern zend_class_entry *stub_5__closure_ce; + +ZEPHIR_INIT_CLASS(stub_5__closure); + +PHP_METHOD(stub_5__closure, __invoke); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_5__closure___invoke, 0, 0, 1) + ZEND_ARG_INFO(0, param1) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_5__closure_method_entry) { + PHP_ME(stub_5__closure, __invoke, arginfo_stub_5__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/6__closure.zep.c b/ext/stub/6__closure.zep.c similarity index 80% rename from ext/test/6__closure.zep.c rename to ext/stub/6__closure.zep.c index eacf0bf961..5af01f4c20 100644 --- a/ext/test/6__closure.zep.c +++ b/ext/stub/6__closure.zep.c @@ -17,15 +17,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(test_6__closure) { +ZEPHIR_INIT_CLASS(stub_6__closure) { - ZEPHIR_REGISTER_CLASS(test, 6__closure, test, 6__closure, test_6__closure_method_entry, ZEND_ACC_FINAL_CLASS); + ZEPHIR_REGISTER_CLASS(stub, 6__closure, stub, 6__closure, stub_6__closure_method_entry, ZEND_ACC_FINAL_CLASS); return SUCCESS; } -PHP_METHOD(test_6__closure, __invoke) { +PHP_METHOD(stub_6__closure, __invoke) { zval *x, x_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/6__closure.zep.h b/ext/stub/6__closure.zep.h new file mode 100644 index 0000000000..775b719e68 --- /dev/null +++ b/ext/stub/6__closure.zep.h @@ -0,0 +1,15 @@ + +extern zend_class_entry *stub_6__closure_ce; + +ZEPHIR_INIT_CLASS(stub_6__closure); + +PHP_METHOD(stub_6__closure, __invoke); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_6__closure___invoke, 0, 0, 1) + ZEND_ARG_INFO(0, x) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_6__closure_method_entry) { + PHP_ME(stub_6__closure, __invoke, arginfo_stub_6__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/7__closure.zep.c b/ext/stub/7__closure.zep.c similarity index 81% rename from ext/test/7__closure.zep.c rename to ext/stub/7__closure.zep.c index bd952c9641..ef5233bcda 100644 --- a/ext/test/7__closure.zep.c +++ b/ext/stub/7__closure.zep.c @@ -17,15 +17,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(test_7__closure) { +ZEPHIR_INIT_CLASS(stub_7__closure) { - ZEPHIR_REGISTER_CLASS(test, 7__closure, test, 7__closure, test_7__closure_method_entry, ZEND_ACC_FINAL_CLASS); + ZEPHIR_REGISTER_CLASS(stub, 7__closure, stub, 7__closure, stub_7__closure_method_entry, ZEND_ACC_FINAL_CLASS); return SUCCESS; } -PHP_METHOD(test_7__closure, __invoke) { +PHP_METHOD(stub_7__closure, __invoke) { zval *x, x_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/7__closure.zep.h b/ext/stub/7__closure.zep.h new file mode 100644 index 0000000000..fd6ea51931 --- /dev/null +++ b/ext/stub/7__closure.zep.h @@ -0,0 +1,15 @@ + +extern zend_class_entry *stub_7__closure_ce; + +ZEPHIR_INIT_CLASS(stub_7__closure); + +PHP_METHOD(stub_7__closure, __invoke); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_7__closure___invoke, 0, 0, 1) + ZEND_ARG_INFO(0, x) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_7__closure_method_entry) { + PHP_ME(stub_7__closure, __invoke, arginfo_stub_7__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/8__closure.zep.c b/ext/stub/8__closure.zep.c similarity index 66% rename from ext/test/8__closure.zep.c rename to ext/stub/8__closure.zep.c index c8a9445ade..7f9916c0d0 100644 --- a/ext/test/8__closure.zep.c +++ b/ext/stub/8__closure.zep.c @@ -16,24 +16,24 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(test_8__closure) { +ZEPHIR_INIT_CLASS(stub_8__closure) { - ZEPHIR_REGISTER_CLASS(test, 8__closure, test, 8__closure, test_8__closure_method_entry, ZEND_ACC_FINAL_CLASS); + ZEPHIR_REGISTER_CLASS(stub, 8__closure, stub, 8__closure, stub_8__closure_method_entry, ZEND_ACC_FINAL_CLASS); - zend_declare_property_null(test_8__closure_ce, SL("abc"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_null(stub_8__closure_ce, SL("abc"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); return SUCCESS; } -PHP_METHOD(test_8__closure, __invoke) { +PHP_METHOD(stub_8__closure, __invoke) { zval abc; zval *this_ptr = getThis(); ZVAL_UNDEF(&abc); - zephir_read_static_property_ce(&abc, test_8__closure_ce, SL("abc"), PH_NOISY_CC); + zephir_read_static_property_ce(&abc, stub_8__closure_ce, SL("abc"), PH_NOISY_CC); RETURN_LONG((zephir_get_numberval(&abc) + 1)); diff --git a/ext/stub/8__closure.zep.h b/ext/stub/8__closure.zep.h new file mode 100644 index 0000000000..774e7d8334 --- /dev/null +++ b/ext/stub/8__closure.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_8__closure_ce; + +ZEPHIR_INIT_CLASS(stub_8__closure); + +PHP_METHOD(stub_8__closure, __invoke); + +ZEPHIR_INIT_FUNCS(stub_8__closure_method_entry) { + PHP_ME(stub_8__closure, __invoke, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/9__closure.zep.c b/ext/stub/9__closure.zep.c similarity index 66% rename from ext/test/9__closure.zep.c rename to ext/stub/9__closure.zep.c index a2a5b80c61..a9e3784331 100644 --- a/ext/test/9__closure.zep.c +++ b/ext/stub/9__closure.zep.c @@ -16,17 +16,17 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(test_9__closure) { +ZEPHIR_INIT_CLASS(stub_9__closure) { - ZEPHIR_REGISTER_CLASS(test, 9__closure, test, 9__closure, test_9__closure_method_entry, ZEND_ACC_FINAL_CLASS); + ZEPHIR_REGISTER_CLASS(stub, 9__closure, stub, 9__closure, stub_9__closure_method_entry, ZEND_ACC_FINAL_CLASS); - zend_declare_property_null(test_9__closure_ce, SL("abc"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_null(stub_9__closure_ce, SL("abc"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); return SUCCESS; } -PHP_METHOD(test_9__closure, __invoke) { +PHP_METHOD(stub_9__closure, __invoke) { zval abc, _0; zval *this_ptr = getThis(); @@ -34,9 +34,9 @@ PHP_METHOD(test_9__closure, __invoke) { ZVAL_UNDEF(&abc); ZVAL_UNDEF(&_0); - zephir_read_static_property_ce(&abc, test_9__closure_ce, SL("abc"), PH_NOISY_CC); + zephir_read_static_property_ce(&abc, stub_9__closure_ce, SL("abc"), PH_NOISY_CC); - zephir_array_fetch_string(&_0, &abc, SL("a"), PH_NOISY | PH_READONLY, "test/closures.zep", 63); + zephir_array_fetch_string(&_0, &abc, SL("a"), PH_NOISY | PH_READONLY, "stub/closures.zep", 63); RETURN_CTORW(&_0); } diff --git a/ext/stub/9__closure.zep.h b/ext/stub/9__closure.zep.h new file mode 100644 index 0000000000..2ef8381aaf --- /dev/null +++ b/ext/stub/9__closure.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_9__closure_ce; + +ZEPHIR_INIT_CLASS(stub_9__closure); + +PHP_METHOD(stub_9__closure, __invoke); + +ZEPHIR_INIT_FUNCS(stub_9__closure_method_entry) { + PHP_ME(stub_9__closure, __invoke, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/arithmetic.zep.c b/ext/stub/arithmetic.zep.c similarity index 76% rename from ext/test/arithmetic.zep.c rename to ext/stub/arithmetic.zep.c index 3521cfe56d..98e7a4156f 100644 --- a/ext/test/arithmetic.zep.c +++ b/ext/stub/arithmetic.zep.c @@ -21,17 +21,17 @@ /** * Arithmetic operations */ -ZEPHIR_INIT_CLASS(Test_Arithmetic) { +ZEPHIR_INIT_CLASS(Stub_Arithmetic) { - ZEPHIR_REGISTER_CLASS(Test, Arithmetic, test, arithmetic, test_arithmetic_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Arithmetic, stub, arithmetic, stub_arithmetic_method_entry, 0); - zend_declare_property_long(test_arithmetic_ce, SL("tmp1"), 100, ZEND_ACC_PROTECTED); + zend_declare_property_long(stub_arithmetic_ce, SL("tmp1"), 100, ZEND_ACC_PROTECTED); return SUCCESS; } -PHP_METHOD(Test_Arithmetic, intSum) { +PHP_METHOD(Stub_Arithmetic, intSum) { zend_long a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -45,7 +45,7 @@ PHP_METHOD(Test_Arithmetic, intSum) { } -PHP_METHOD(Test_Arithmetic, int2Sum) { +PHP_METHOD(Stub_Arithmetic, int2Sum) { zend_long a = 0, c = 0; zval *this_ptr = getThis(); @@ -58,7 +58,7 @@ PHP_METHOD(Test_Arithmetic, int2Sum) { } -PHP_METHOD(Test_Arithmetic, intSumSimple) { +PHP_METHOD(Stub_Arithmetic, intSumSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -70,7 +70,7 @@ PHP_METHOD(Test_Arithmetic, intSumSimple) { } -PHP_METHOD(Test_Arithmetic, boolSum) { +PHP_METHOD(Stub_Arithmetic, boolSum) { zend_bool a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -84,7 +84,7 @@ PHP_METHOD(Test_Arithmetic, boolSum) { } -PHP_METHOD(Test_Arithmetic, bool2Sum) { +PHP_METHOD(Stub_Arithmetic, bool2Sum) { zend_bool a = 0, c = 0; zval *this_ptr = getThis(); @@ -97,7 +97,7 @@ PHP_METHOD(Test_Arithmetic, bool2Sum) { } -PHP_METHOD(Test_Arithmetic, bool3Sum) { +PHP_METHOD(Stub_Arithmetic, bool3Sum) { zend_bool a = 0, c = 0; zval *this_ptr = getThis(); @@ -110,7 +110,7 @@ PHP_METHOD(Test_Arithmetic, bool3Sum) { } -PHP_METHOD(Test_Arithmetic, boolSumSimple) { +PHP_METHOD(Stub_Arithmetic, boolSumSimple) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -122,7 +122,7 @@ PHP_METHOD(Test_Arithmetic, boolSumSimple) { } -PHP_METHOD(Test_Arithmetic, boolSumExpression) { +PHP_METHOD(Stub_Arithmetic, boolSumExpression) { zval _0, _1; zend_bool a = 0; @@ -143,7 +143,7 @@ PHP_METHOD(Test_Arithmetic, boolSumExpression) { } -PHP_METHOD(Test_Arithmetic, doubleSum) { +PHP_METHOD(Stub_Arithmetic, doubleSum) { double a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -157,7 +157,7 @@ PHP_METHOD(Test_Arithmetic, doubleSum) { } -PHP_METHOD(Test_Arithmetic, double2Sum) { +PHP_METHOD(Stub_Arithmetic, double2Sum) { double a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -171,7 +171,7 @@ PHP_METHOD(Test_Arithmetic, double2Sum) { } -PHP_METHOD(Test_Arithmetic, doubleSumSimple) { +PHP_METHOD(Stub_Arithmetic, doubleSumSimple) { double c = 0; zval *this_ptr = getThis(); @@ -183,7 +183,7 @@ PHP_METHOD(Test_Arithmetic, doubleSumSimple) { } -PHP_METHOD(Test_Arithmetic, doubleSum2Simple) { +PHP_METHOD(Stub_Arithmetic, doubleSum2Simple) { double c = 0; zval *this_ptr = getThis(); @@ -195,7 +195,7 @@ PHP_METHOD(Test_Arithmetic, doubleSum2Simple) { } -PHP_METHOD(Test_Arithmetic, doubleSumExpression) { +PHP_METHOD(Stub_Arithmetic, doubleSumExpression) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -214,7 +214,7 @@ PHP_METHOD(Test_Arithmetic, doubleSumExpression) { } -PHP_METHOD(Test_Arithmetic, doubleSumVarExpression) { +PHP_METHOD(Stub_Arithmetic, doubleSumVarExpression) { zval _0, _1; double a = 0; @@ -235,7 +235,7 @@ PHP_METHOD(Test_Arithmetic, doubleSumVarExpression) { } -PHP_METHOD(Test_Arithmetic, varSum) { +PHP_METHOD(Stub_Arithmetic, varSum) { zend_long a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -249,7 +249,7 @@ PHP_METHOD(Test_Arithmetic, varSum) { } -PHP_METHOD(Test_Arithmetic, varSumSimple) { +PHP_METHOD(Stub_Arithmetic, varSumSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -261,7 +261,7 @@ PHP_METHOD(Test_Arithmetic, varSumSimple) { } -PHP_METHOD(Test_Arithmetic, intDoubleSum) { +PHP_METHOD(Stub_Arithmetic, intDoubleSum) { double a = 0; zend_long b = 0, c = 0; @@ -276,7 +276,7 @@ PHP_METHOD(Test_Arithmetic, intDoubleSum) { } -PHP_METHOD(Test_Arithmetic, intDoubleSumSimple) { +PHP_METHOD(Stub_Arithmetic, intDoubleSumSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -288,7 +288,7 @@ PHP_METHOD(Test_Arithmetic, intDoubleSumSimple) { } -PHP_METHOD(Test_Arithmetic, doubleIntSum) { +PHP_METHOD(Stub_Arithmetic, doubleIntSum) { double a = 0, c = 0; zend_long b = 0; @@ -303,7 +303,7 @@ PHP_METHOD(Test_Arithmetic, doubleIntSum) { } -PHP_METHOD(Test_Arithmetic, doubleIntSumSimple) { +PHP_METHOD(Stub_Arithmetic, doubleIntSumSimple) { double c = 0; zval *this_ptr = getThis(); @@ -315,7 +315,7 @@ PHP_METHOD(Test_Arithmetic, doubleIntSumSimple) { } -PHP_METHOD(Test_Arithmetic, varIntSum) { +PHP_METHOD(Stub_Arithmetic, varIntSum) { zend_long b = 0, c = 0, a = 0; zval *this_ptr = getThis(); @@ -329,7 +329,7 @@ PHP_METHOD(Test_Arithmetic, varIntSum) { } -PHP_METHOD(Test_Arithmetic, intVarSum) { +PHP_METHOD(Stub_Arithmetic, intVarSum) { zend_long b = 0, c = 0, a = 0; zval *this_ptr = getThis(); @@ -343,7 +343,7 @@ PHP_METHOD(Test_Arithmetic, intVarSum) { } -PHP_METHOD(Test_Arithmetic, intVarImplicitCastSum) { +PHP_METHOD(Stub_Arithmetic, intVarImplicitCastSum) { zend_long c = 0; zval a, b, _0; @@ -367,7 +367,7 @@ PHP_METHOD(Test_Arithmetic, intVarImplicitCastSum) { } -PHP_METHOD(Test_Arithmetic, intVarImplicitCast2Sum) { +PHP_METHOD(Stub_Arithmetic, intVarImplicitCast2Sum) { zend_long b = 0, c = 0; zval a; @@ -386,7 +386,7 @@ PHP_METHOD(Test_Arithmetic, intVarImplicitCast2Sum) { } -PHP_METHOD(Test_Arithmetic, complexSum) { +PHP_METHOD(Stub_Arithmetic, complexSum) { double c = 0; zval *this_ptr = getThis(); @@ -398,7 +398,7 @@ PHP_METHOD(Test_Arithmetic, complexSum) { } -PHP_METHOD(Test_Arithmetic, complex2Sum) { +PHP_METHOD(Stub_Arithmetic, complex2Sum) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -410,7 +410,7 @@ PHP_METHOD(Test_Arithmetic, complex2Sum) { } -PHP_METHOD(Test_Arithmetic, complex3Sum) { +PHP_METHOD(Stub_Arithmetic, complex3Sum) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -422,7 +422,7 @@ PHP_METHOD(Test_Arithmetic, complex3Sum) { } -PHP_METHOD(Test_Arithmetic, complex4Sum) { +PHP_METHOD(Stub_Arithmetic, complex4Sum) { zval c; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -438,7 +438,7 @@ PHP_METHOD(Test_Arithmetic, complex4Sum) { } -PHP_METHOD(Test_Arithmetic, complex5Sum) { +PHP_METHOD(Stub_Arithmetic, complex5Sum) { zend_long c = 0; zval *this_ptr = getThis(); @@ -450,7 +450,7 @@ PHP_METHOD(Test_Arithmetic, complex5Sum) { } -PHP_METHOD(Test_Arithmetic, complex6Sum) { +PHP_METHOD(Stub_Arithmetic, complex6Sum) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -462,7 +462,7 @@ PHP_METHOD(Test_Arithmetic, complex6Sum) { } -PHP_METHOD(Test_Arithmetic, complex7Sum) { +PHP_METHOD(Stub_Arithmetic, complex7Sum) { zend_long b = 0, c = 0; zend_bool a = 0; @@ -477,7 +477,7 @@ PHP_METHOD(Test_Arithmetic, complex7Sum) { } -PHP_METHOD(Test_Arithmetic, complex9Sum) { +PHP_METHOD(Stub_Arithmetic, complex9Sum) { zend_long b = 0, c = 0; zend_bool a = 0; @@ -492,7 +492,7 @@ PHP_METHOD(Test_Arithmetic, complex9Sum) { } -PHP_METHOD(Test_Arithmetic, complex10Sum) { +PHP_METHOD(Stub_Arithmetic, complex10Sum) { double c = 0; zend_long b = 0; @@ -508,7 +508,7 @@ PHP_METHOD(Test_Arithmetic, complex10Sum) { } -PHP_METHOD(Test_Arithmetic, complex11Sum) { +PHP_METHOD(Stub_Arithmetic, complex11Sum) { double c = 0; zend_long b = 0; @@ -524,7 +524,7 @@ PHP_METHOD(Test_Arithmetic, complex11Sum) { } -PHP_METHOD(Test_Arithmetic, complex12Sum) { +PHP_METHOD(Stub_Arithmetic, complex12Sum) { zend_long b = 0, c = 0; zend_bool a = 0; @@ -539,7 +539,7 @@ PHP_METHOD(Test_Arithmetic, complex12Sum) { } -PHP_METHOD(Test_Arithmetic, complex13Sum) { +PHP_METHOD(Stub_Arithmetic, complex13Sum) { zend_long c = 0; zend_bool a = 0, b = 0; @@ -554,7 +554,7 @@ PHP_METHOD(Test_Arithmetic, complex13Sum) { } -PHP_METHOD(Test_Arithmetic, complex14Sum) { +PHP_METHOD(Stub_Arithmetic, complex14Sum) { zend_bool b = 0; zend_long a = 0, c = 0; @@ -569,7 +569,7 @@ PHP_METHOD(Test_Arithmetic, complex14Sum) { } -PHP_METHOD(Test_Arithmetic, complex15Sum) { +PHP_METHOD(Stub_Arithmetic, complex15Sum) { zend_bool c = 0; double b = 0; @@ -585,7 +585,7 @@ PHP_METHOD(Test_Arithmetic, complex15Sum) { } -PHP_METHOD(Test_Arithmetic, complex16Sum) { +PHP_METHOD(Stub_Arithmetic, complex16Sum) { double b = 0, c = 0; zend_long a = 0; @@ -600,7 +600,7 @@ PHP_METHOD(Test_Arithmetic, complex16Sum) { } -PHP_METHOD(Test_Arithmetic, complex17Sum) { +PHP_METHOD(Stub_Arithmetic, complex17Sum) { double c = 0; zend_bool b = 0; @@ -616,7 +616,7 @@ PHP_METHOD(Test_Arithmetic, complex17Sum) { } -PHP_METHOD(Test_Arithmetic, complex18Sum) { +PHP_METHOD(Stub_Arithmetic, complex18Sum) { zend_bool b = 0; double d = 0, c = 0; @@ -633,7 +633,7 @@ PHP_METHOD(Test_Arithmetic, complex18Sum) { } -PHP_METHOD(Test_Arithmetic, complex19Sum) { +PHP_METHOD(Stub_Arithmetic, complex19Sum) { zend_bool b = 0; double d = 0, c = 0; @@ -650,7 +650,7 @@ PHP_METHOD(Test_Arithmetic, complex19Sum) { } -PHP_METHOD(Test_Arithmetic, complex20Sum) { +PHP_METHOD(Stub_Arithmetic, complex20Sum) { zend_bool b = 0; double d = 0, c = 0; @@ -667,7 +667,7 @@ PHP_METHOD(Test_Arithmetic, complex20Sum) { } -PHP_METHOD(Test_Arithmetic, complex21Sum) { +PHP_METHOD(Stub_Arithmetic, complex21Sum) { zend_bool b = 0; double d = 0, c = 0; @@ -684,7 +684,7 @@ PHP_METHOD(Test_Arithmetic, complex21Sum) { } -PHP_METHOD(Test_Arithmetic, complex22Sum) { +PHP_METHOD(Stub_Arithmetic, complex22Sum) { double d = 0, c = 0; zend_long a = 0, b = 0; @@ -700,7 +700,7 @@ PHP_METHOD(Test_Arithmetic, complex22Sum) { } -PHP_METHOD(Test_Arithmetic, complex23Sum) { +PHP_METHOD(Stub_Arithmetic, complex23Sum) { double d = 0; zend_bool b = 0; @@ -716,7 +716,7 @@ PHP_METHOD(Test_Arithmetic, complex23Sum) { } -PHP_METHOD(Test_Arithmetic, complex24Sum) { +PHP_METHOD(Stub_Arithmetic, complex24Sum) { zend_bool b = 0; double d = 0; @@ -732,7 +732,7 @@ PHP_METHOD(Test_Arithmetic, complex24Sum) { } -PHP_METHOD(Test_Arithmetic, addSum1) { +PHP_METHOD(Stub_Arithmetic, addSum1) { zend_long a = 0; zval *this_ptr = getThis(); @@ -745,7 +745,7 @@ PHP_METHOD(Test_Arithmetic, addSum1) { } -PHP_METHOD(Test_Arithmetic, addSum2) { +PHP_METHOD(Stub_Arithmetic, addSum2) { zend_long a = 0; zval *this_ptr = getThis(); @@ -758,7 +758,7 @@ PHP_METHOD(Test_Arithmetic, addSum2) { } -PHP_METHOD(Test_Arithmetic, addSum2b) { +PHP_METHOD(Stub_Arithmetic, addSum2b) { zend_long a = 0; zval *this_ptr = getThis(); @@ -771,7 +771,7 @@ PHP_METHOD(Test_Arithmetic, addSum2b) { } -PHP_METHOD(Test_Arithmetic, addSum3) { +PHP_METHOD(Stub_Arithmetic, addSum3) { zend_long a = 0; zval *this_ptr = getThis(); @@ -784,7 +784,7 @@ PHP_METHOD(Test_Arithmetic, addSum3) { } -PHP_METHOD(Test_Arithmetic, addSum4) { +PHP_METHOD(Stub_Arithmetic, addSum4) { zend_long a = 0; zval *this_ptr = getThis(); @@ -797,7 +797,7 @@ PHP_METHOD(Test_Arithmetic, addSum4) { } -PHP_METHOD(Test_Arithmetic, addSum5) { +PHP_METHOD(Stub_Arithmetic, addSum5) { zend_long a = 0; zval *this_ptr = getThis(); @@ -810,7 +810,7 @@ PHP_METHOD(Test_Arithmetic, addSum5) { } -PHP_METHOD(Test_Arithmetic, addSum6) { +PHP_METHOD(Stub_Arithmetic, addSum6) { zend_long a = 0; zval *this_ptr = getThis(); @@ -823,7 +823,7 @@ PHP_METHOD(Test_Arithmetic, addSum6) { } -PHP_METHOD(Test_Arithmetic, addSum7) { +PHP_METHOD(Stub_Arithmetic, addSum7) { double a = 0; zval *this_ptr = getThis(); @@ -836,7 +836,7 @@ PHP_METHOD(Test_Arithmetic, addSum7) { } -PHP_METHOD(Test_Arithmetic, addSum8) { +PHP_METHOD(Stub_Arithmetic, addSum8) { double a = 0; zval *this_ptr = getThis(); @@ -849,7 +849,7 @@ PHP_METHOD(Test_Arithmetic, addSum8) { } -PHP_METHOD(Test_Arithmetic, addSum8b) { +PHP_METHOD(Stub_Arithmetic, addSum8b) { double a = 0; zval *this_ptr = getThis(); @@ -862,7 +862,7 @@ PHP_METHOD(Test_Arithmetic, addSum8b) { } -PHP_METHOD(Test_Arithmetic, addSum9) { +PHP_METHOD(Stub_Arithmetic, addSum9) { double a = 0; zval *this_ptr = getThis(); @@ -875,7 +875,7 @@ PHP_METHOD(Test_Arithmetic, addSum9) { } -PHP_METHOD(Test_Arithmetic, addSum10) { +PHP_METHOD(Stub_Arithmetic, addSum10) { double a = 0; zval *this_ptr = getThis(); @@ -888,7 +888,7 @@ PHP_METHOD(Test_Arithmetic, addSum10) { } -PHP_METHOD(Test_Arithmetic, addSum11) { +PHP_METHOD(Stub_Arithmetic, addSum11) { double a = 0; zval *this_ptr = getThis(); @@ -901,7 +901,7 @@ PHP_METHOD(Test_Arithmetic, addSum11) { } -PHP_METHOD(Test_Arithmetic, addSum12) { +PHP_METHOD(Stub_Arithmetic, addSum12) { zend_long a = 0, b = 0; zval *this_ptr = getThis(); @@ -915,7 +915,7 @@ PHP_METHOD(Test_Arithmetic, addSum12) { } -PHP_METHOD(Test_Arithmetic, addSum13) { +PHP_METHOD(Stub_Arithmetic, addSum13) { zend_bool b = 0; zend_long a = 0; @@ -930,7 +930,7 @@ PHP_METHOD(Test_Arithmetic, addSum13) { } -PHP_METHOD(Test_Arithmetic, addSum14) { +PHP_METHOD(Stub_Arithmetic, addSum14) { zend_bool b = 0; zend_long a = 0; @@ -945,7 +945,7 @@ PHP_METHOD(Test_Arithmetic, addSum14) { } -PHP_METHOD(Test_Arithmetic, addSum15) { +PHP_METHOD(Stub_Arithmetic, addSum15) { double b = 0; zend_long a = 0; @@ -960,7 +960,7 @@ PHP_METHOD(Test_Arithmetic, addSum15) { } -PHP_METHOD(Test_Arithmetic, addSum16) { +PHP_METHOD(Stub_Arithmetic, addSum16) { double a = 0, b = 0; zval *this_ptr = getThis(); @@ -974,7 +974,7 @@ PHP_METHOD(Test_Arithmetic, addSum16) { } -PHP_METHOD(Test_Arithmetic, addSum17) { +PHP_METHOD(Stub_Arithmetic, addSum17) { zend_bool b = 0; double a = 0; @@ -989,7 +989,7 @@ PHP_METHOD(Test_Arithmetic, addSum17) { } -PHP_METHOD(Test_Arithmetic, addSum18) { +PHP_METHOD(Stub_Arithmetic, addSum18) { zend_bool b = 0; double a = 0; @@ -1004,7 +1004,7 @@ PHP_METHOD(Test_Arithmetic, addSum18) { } -PHP_METHOD(Test_Arithmetic, addSum19) { +PHP_METHOD(Stub_Arithmetic, addSum19) { zend_long b = 0; double a = 0; @@ -1019,7 +1019,7 @@ PHP_METHOD(Test_Arithmetic, addSum19) { } -PHP_METHOD(Test_Arithmetic, addSum20) { +PHP_METHOD(Stub_Arithmetic, addSum20) { zend_long a = 0, b = 0; zval *this_ptr = getThis(); @@ -1033,7 +1033,7 @@ PHP_METHOD(Test_Arithmetic, addSum20) { } -PHP_METHOD(Test_Arithmetic, addSum21) { +PHP_METHOD(Stub_Arithmetic, addSum21) { zend_long b = 0; double a = 0; @@ -1048,7 +1048,7 @@ PHP_METHOD(Test_Arithmetic, addSum21) { } -PHP_METHOD(Test_Arithmetic, addSum22) { +PHP_METHOD(Stub_Arithmetic, addSum22) { zend_long b = 0, _0; zval a; @@ -1069,7 +1069,7 @@ PHP_METHOD(Test_Arithmetic, addSum22) { } -PHP_METHOD(Test_Arithmetic, addSum23) { +PHP_METHOD(Stub_Arithmetic, addSum23) { zend_long a = 0; zval *this_ptr = getThis(); @@ -1082,7 +1082,7 @@ PHP_METHOD(Test_Arithmetic, addSum23) { } -PHP_METHOD(Test_Arithmetic, addSum24) { +PHP_METHOD(Stub_Arithmetic, addSum24) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a, a_sub, _0; @@ -1105,7 +1105,7 @@ PHP_METHOD(Test_Arithmetic, addSum24) { } -PHP_METHOD(Test_Arithmetic, intSub) { +PHP_METHOD(Stub_Arithmetic, intSub) { zend_long a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -1119,7 +1119,7 @@ PHP_METHOD(Test_Arithmetic, intSub) { } -PHP_METHOD(Test_Arithmetic, intLetSub) { +PHP_METHOD(Stub_Arithmetic, intLetSub) { zend_long b = 0, c = 0; zval *this_ptr = getThis(); @@ -1133,7 +1133,7 @@ PHP_METHOD(Test_Arithmetic, intLetSub) { } -PHP_METHOD(Test_Arithmetic, intSub2) { +PHP_METHOD(Stub_Arithmetic, intSub2) { zend_long a = 0, c = 0; zval *this_ptr = getThis(); @@ -1146,7 +1146,7 @@ PHP_METHOD(Test_Arithmetic, intSub2) { } -PHP_METHOD(Test_Arithmetic, intSubSimple) { +PHP_METHOD(Stub_Arithmetic, intSubSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -1158,7 +1158,7 @@ PHP_METHOD(Test_Arithmetic, intSubSimple) { } -PHP_METHOD(Test_Arithmetic, boolSub) { +PHP_METHOD(Stub_Arithmetic, boolSub) { zend_bool a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -1172,7 +1172,7 @@ PHP_METHOD(Test_Arithmetic, boolSub) { } -PHP_METHOD(Test_Arithmetic, bool2Sub) { +PHP_METHOD(Stub_Arithmetic, bool2Sub) { zend_bool a = 0, c = 0; zval *this_ptr = getThis(); @@ -1185,7 +1185,7 @@ PHP_METHOD(Test_Arithmetic, bool2Sub) { } -PHP_METHOD(Test_Arithmetic, bool3Sub) { +PHP_METHOD(Stub_Arithmetic, bool3Sub) { zend_bool a = 0, c = 0; zval *this_ptr = getThis(); @@ -1198,7 +1198,7 @@ PHP_METHOD(Test_Arithmetic, bool3Sub) { } -PHP_METHOD(Test_Arithmetic, bool4Sub) { +PHP_METHOD(Stub_Arithmetic, bool4Sub) { zend_bool a = 0, c = 0; zval *this_ptr = getThis(); @@ -1211,7 +1211,7 @@ PHP_METHOD(Test_Arithmetic, bool4Sub) { } -PHP_METHOD(Test_Arithmetic, boolSubSimple) { +PHP_METHOD(Stub_Arithmetic, boolSubSimple) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -1223,7 +1223,7 @@ PHP_METHOD(Test_Arithmetic, boolSubSimple) { } -PHP_METHOD(Test_Arithmetic, doubleSub) { +PHP_METHOD(Stub_Arithmetic, doubleSub) { double a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -1237,7 +1237,7 @@ PHP_METHOD(Test_Arithmetic, doubleSub) { } -PHP_METHOD(Test_Arithmetic, double2Sub) { +PHP_METHOD(Stub_Arithmetic, double2Sub) { double a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -1251,7 +1251,7 @@ PHP_METHOD(Test_Arithmetic, double2Sub) { } -PHP_METHOD(Test_Arithmetic, doubleSubSimple) { +PHP_METHOD(Stub_Arithmetic, doubleSubSimple) { double c = 0; zval *this_ptr = getThis(); @@ -1263,7 +1263,7 @@ PHP_METHOD(Test_Arithmetic, doubleSubSimple) { } -PHP_METHOD(Test_Arithmetic, doubleSub2Simple) { +PHP_METHOD(Stub_Arithmetic, doubleSub2Simple) { double c = 0; zval *this_ptr = getThis(); @@ -1275,7 +1275,7 @@ PHP_METHOD(Test_Arithmetic, doubleSub2Simple) { } -PHP_METHOD(Test_Arithmetic, varSub) { +PHP_METHOD(Stub_Arithmetic, varSub) { zend_long a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -1289,7 +1289,7 @@ PHP_METHOD(Test_Arithmetic, varSub) { } -PHP_METHOD(Test_Arithmetic, varSubSimple) { +PHP_METHOD(Stub_Arithmetic, varSubSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -1301,7 +1301,7 @@ PHP_METHOD(Test_Arithmetic, varSubSimple) { } -PHP_METHOD(Test_Arithmetic, intDoubleSub) { +PHP_METHOD(Stub_Arithmetic, intDoubleSub) { double a = 0; zend_long b = 0, c = 0; @@ -1316,7 +1316,7 @@ PHP_METHOD(Test_Arithmetic, intDoubleSub) { } -PHP_METHOD(Test_Arithmetic, intDoubleSubSimple) { +PHP_METHOD(Stub_Arithmetic, intDoubleSubSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -1328,7 +1328,7 @@ PHP_METHOD(Test_Arithmetic, intDoubleSubSimple) { } -PHP_METHOD(Test_Arithmetic, doubleIntSub) { +PHP_METHOD(Stub_Arithmetic, doubleIntSub) { double a = 0, c = 0; zend_long b = 0; @@ -1343,7 +1343,7 @@ PHP_METHOD(Test_Arithmetic, doubleIntSub) { } -PHP_METHOD(Test_Arithmetic, doubleIntSubSimple) { +PHP_METHOD(Stub_Arithmetic, doubleIntSubSimple) { double c = 0; zval *this_ptr = getThis(); @@ -1355,7 +1355,7 @@ PHP_METHOD(Test_Arithmetic, doubleIntSubSimple) { } -PHP_METHOD(Test_Arithmetic, varIntSub) { +PHP_METHOD(Stub_Arithmetic, varIntSub) { zend_long b = 0, c = 0, a = 0; zval *this_ptr = getThis(); @@ -1369,7 +1369,7 @@ PHP_METHOD(Test_Arithmetic, varIntSub) { } -PHP_METHOD(Test_Arithmetic, intVarSub) { +PHP_METHOD(Stub_Arithmetic, intVarSub) { zend_long b = 0, c = 0, a = 0; zval *this_ptr = getThis(); @@ -1383,7 +1383,7 @@ PHP_METHOD(Test_Arithmetic, intVarSub) { } -PHP_METHOD(Test_Arithmetic, intVarImplicitCastSub) { +PHP_METHOD(Stub_Arithmetic, intVarImplicitCastSub) { zend_long c = 0; zval a, b, _0; @@ -1407,7 +1407,7 @@ PHP_METHOD(Test_Arithmetic, intVarImplicitCastSub) { } -PHP_METHOD(Test_Arithmetic, intVarImplicitCast2Sub) { +PHP_METHOD(Stub_Arithmetic, intVarImplicitCast2Sub) { zend_long b = 0, c = 0; zval a; @@ -1426,7 +1426,7 @@ PHP_METHOD(Test_Arithmetic, intVarImplicitCast2Sub) { } -PHP_METHOD(Test_Arithmetic, complexSub) { +PHP_METHOD(Stub_Arithmetic, complexSub) { double c = 0; zval *this_ptr = getThis(); @@ -1438,7 +1438,7 @@ PHP_METHOD(Test_Arithmetic, complexSub) { } -PHP_METHOD(Test_Arithmetic, complex2Sub) { +PHP_METHOD(Stub_Arithmetic, complex2Sub) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -1450,7 +1450,7 @@ PHP_METHOD(Test_Arithmetic, complex2Sub) { } -PHP_METHOD(Test_Arithmetic, complex3Sub) { +PHP_METHOD(Stub_Arithmetic, complex3Sub) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -1462,7 +1462,7 @@ PHP_METHOD(Test_Arithmetic, complex3Sub) { } -PHP_METHOD(Test_Arithmetic, complex4Sub) { +PHP_METHOD(Stub_Arithmetic, complex4Sub) { zval c; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1478,7 +1478,7 @@ PHP_METHOD(Test_Arithmetic, complex4Sub) { } -PHP_METHOD(Test_Arithmetic, complex5Sub) { +PHP_METHOD(Stub_Arithmetic, complex5Sub) { zend_long c = 0; zval *this_ptr = getThis(); @@ -1490,7 +1490,7 @@ PHP_METHOD(Test_Arithmetic, complex5Sub) { } -PHP_METHOD(Test_Arithmetic, complex6Sub) { +PHP_METHOD(Stub_Arithmetic, complex6Sub) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -1502,7 +1502,7 @@ PHP_METHOD(Test_Arithmetic, complex6Sub) { } -PHP_METHOD(Test_Arithmetic, complex7Sub) { +PHP_METHOD(Stub_Arithmetic, complex7Sub) { zend_long b = 0, c = 0; zend_bool a = 0; @@ -1517,7 +1517,7 @@ PHP_METHOD(Test_Arithmetic, complex7Sub) { } -PHP_METHOD(Test_Arithmetic, complex9Sub) { +PHP_METHOD(Stub_Arithmetic, complex9Sub) { zend_long b = 0, c = 0; zend_bool a = 0; @@ -1532,7 +1532,7 @@ PHP_METHOD(Test_Arithmetic, complex9Sub) { } -PHP_METHOD(Test_Arithmetic, complex10Sub) { +PHP_METHOD(Stub_Arithmetic, complex10Sub) { double c = 0; zend_long b = 0; @@ -1548,7 +1548,7 @@ PHP_METHOD(Test_Arithmetic, complex10Sub) { } -PHP_METHOD(Test_Arithmetic, complex11Sub) { +PHP_METHOD(Stub_Arithmetic, complex11Sub) { double c = 0; zend_long b = 0; @@ -1564,7 +1564,7 @@ PHP_METHOD(Test_Arithmetic, complex11Sub) { } -PHP_METHOD(Test_Arithmetic, complex12Sub) { +PHP_METHOD(Stub_Arithmetic, complex12Sub) { zend_long b = 0, c = 0; zend_bool a = 0; @@ -1579,7 +1579,7 @@ PHP_METHOD(Test_Arithmetic, complex12Sub) { } -PHP_METHOD(Test_Arithmetic, complex13Sub) { +PHP_METHOD(Stub_Arithmetic, complex13Sub) { zend_long c = 0; zend_bool a = 0, b = 0; @@ -1594,7 +1594,7 @@ PHP_METHOD(Test_Arithmetic, complex13Sub) { } -PHP_METHOD(Test_Arithmetic, complex14Sub) { +PHP_METHOD(Stub_Arithmetic, complex14Sub) { zend_bool b = 0; zend_long a = 0, c = 0; @@ -1609,7 +1609,7 @@ PHP_METHOD(Test_Arithmetic, complex14Sub) { } -PHP_METHOD(Test_Arithmetic, complex15Sub) { +PHP_METHOD(Stub_Arithmetic, complex15Sub) { zend_bool c = 0; double b = 0; @@ -1625,7 +1625,7 @@ PHP_METHOD(Test_Arithmetic, complex15Sub) { } -PHP_METHOD(Test_Arithmetic, complex16Sub) { +PHP_METHOD(Stub_Arithmetic, complex16Sub) { double b = 0, c = 0; zend_long a = 0; @@ -1640,7 +1640,7 @@ PHP_METHOD(Test_Arithmetic, complex16Sub) { } -PHP_METHOD(Test_Arithmetic, complex17Sub) { +PHP_METHOD(Stub_Arithmetic, complex17Sub) { double c = 0; zend_bool b = 0; @@ -1656,7 +1656,7 @@ PHP_METHOD(Test_Arithmetic, complex17Sub) { } -PHP_METHOD(Test_Arithmetic, complex18Sub) { +PHP_METHOD(Stub_Arithmetic, complex18Sub) { zend_bool b = 0; double d = 0, c = 0; @@ -1673,7 +1673,7 @@ PHP_METHOD(Test_Arithmetic, complex18Sub) { } -PHP_METHOD(Test_Arithmetic, complex19Sub) { +PHP_METHOD(Stub_Arithmetic, complex19Sub) { zend_bool b = 0; double d = 0, c = 0; @@ -1690,7 +1690,7 @@ PHP_METHOD(Test_Arithmetic, complex19Sub) { } -PHP_METHOD(Test_Arithmetic, complex20Sub) { +PHP_METHOD(Stub_Arithmetic, complex20Sub) { zend_bool b = 0; double d = 0, c = 0; @@ -1707,7 +1707,7 @@ PHP_METHOD(Test_Arithmetic, complex20Sub) { } -PHP_METHOD(Test_Arithmetic, complex21Sub) { +PHP_METHOD(Stub_Arithmetic, complex21Sub) { zend_bool b = 0; double d = 0, c = 0; @@ -1724,7 +1724,7 @@ PHP_METHOD(Test_Arithmetic, complex21Sub) { } -PHP_METHOD(Test_Arithmetic, complex22Sub) { +PHP_METHOD(Stub_Arithmetic, complex22Sub) { double d = 0, c = 0; zend_long a = 0, b = 0; @@ -1740,7 +1740,7 @@ PHP_METHOD(Test_Arithmetic, complex22Sub) { } -PHP_METHOD(Test_Arithmetic, complex23Sub) { +PHP_METHOD(Stub_Arithmetic, complex23Sub) { double d = 0; zend_bool b = 0; @@ -1756,7 +1756,7 @@ PHP_METHOD(Test_Arithmetic, complex23Sub) { } -PHP_METHOD(Test_Arithmetic, complex24Sub) { +PHP_METHOD(Stub_Arithmetic, complex24Sub) { zend_bool b = 0; double d = 0; @@ -1772,7 +1772,7 @@ PHP_METHOD(Test_Arithmetic, complex24Sub) { } -PHP_METHOD(Test_Arithmetic, sub1) { +PHP_METHOD(Stub_Arithmetic, sub1) { zend_long a = 0; zval *this_ptr = getThis(); @@ -1785,7 +1785,7 @@ PHP_METHOD(Test_Arithmetic, sub1) { } -PHP_METHOD(Test_Arithmetic, sub2) { +PHP_METHOD(Stub_Arithmetic, sub2) { zend_long a = 0; zval *this_ptr = getThis(); @@ -1798,7 +1798,7 @@ PHP_METHOD(Test_Arithmetic, sub2) { } -PHP_METHOD(Test_Arithmetic, sub2b) { +PHP_METHOD(Stub_Arithmetic, sub2b) { zend_long a = 0; zval *this_ptr = getThis(); @@ -1811,7 +1811,7 @@ PHP_METHOD(Test_Arithmetic, sub2b) { } -PHP_METHOD(Test_Arithmetic, sub3) { +PHP_METHOD(Stub_Arithmetic, sub3) { zend_long a = 0; zval *this_ptr = getThis(); @@ -1824,7 +1824,7 @@ PHP_METHOD(Test_Arithmetic, sub3) { } -PHP_METHOD(Test_Arithmetic, sub4) { +PHP_METHOD(Stub_Arithmetic, sub4) { zend_long a = 0; zval *this_ptr = getThis(); @@ -1837,7 +1837,7 @@ PHP_METHOD(Test_Arithmetic, sub4) { } -PHP_METHOD(Test_Arithmetic, sub5) { +PHP_METHOD(Stub_Arithmetic, sub5) { zend_long a = 0; zval *this_ptr = getThis(); @@ -1850,7 +1850,7 @@ PHP_METHOD(Test_Arithmetic, sub5) { } -PHP_METHOD(Test_Arithmetic, sub6) { +PHP_METHOD(Stub_Arithmetic, sub6) { zend_long a = 0; zval *this_ptr = getThis(); @@ -1863,7 +1863,7 @@ PHP_METHOD(Test_Arithmetic, sub6) { } -PHP_METHOD(Test_Arithmetic, sub7) { +PHP_METHOD(Stub_Arithmetic, sub7) { double a = 0; zval *this_ptr = getThis(); @@ -1876,7 +1876,7 @@ PHP_METHOD(Test_Arithmetic, sub7) { } -PHP_METHOD(Test_Arithmetic, sub8) { +PHP_METHOD(Stub_Arithmetic, sub8) { double a = 0; zval *this_ptr = getThis(); @@ -1889,7 +1889,7 @@ PHP_METHOD(Test_Arithmetic, sub8) { } -PHP_METHOD(Test_Arithmetic, sub8b) { +PHP_METHOD(Stub_Arithmetic, sub8b) { double a = 0; zval *this_ptr = getThis(); @@ -1902,7 +1902,7 @@ PHP_METHOD(Test_Arithmetic, sub8b) { } -PHP_METHOD(Test_Arithmetic, sub9) { +PHP_METHOD(Stub_Arithmetic, sub9) { double a = 0; zval *this_ptr = getThis(); @@ -1915,7 +1915,7 @@ PHP_METHOD(Test_Arithmetic, sub9) { } -PHP_METHOD(Test_Arithmetic, sub10) { +PHP_METHOD(Stub_Arithmetic, sub10) { double a = 0; zval *this_ptr = getThis(); @@ -1928,7 +1928,7 @@ PHP_METHOD(Test_Arithmetic, sub10) { } -PHP_METHOD(Test_Arithmetic, sub11) { +PHP_METHOD(Stub_Arithmetic, sub11) { double a = 0; zval *this_ptr = getThis(); @@ -1941,7 +1941,7 @@ PHP_METHOD(Test_Arithmetic, sub11) { } -PHP_METHOD(Test_Arithmetic, sub12) { +PHP_METHOD(Stub_Arithmetic, sub12) { zend_long a = 0, b = 0; zval *this_ptr = getThis(); @@ -1955,7 +1955,7 @@ PHP_METHOD(Test_Arithmetic, sub12) { } -PHP_METHOD(Test_Arithmetic, sub13) { +PHP_METHOD(Stub_Arithmetic, sub13) { zend_bool b = 0; zend_long a = 0; @@ -1970,7 +1970,7 @@ PHP_METHOD(Test_Arithmetic, sub13) { } -PHP_METHOD(Test_Arithmetic, sub14) { +PHP_METHOD(Stub_Arithmetic, sub14) { zend_bool b = 0; zend_long a = 0; @@ -1985,7 +1985,7 @@ PHP_METHOD(Test_Arithmetic, sub14) { } -PHP_METHOD(Test_Arithmetic, sub15) { +PHP_METHOD(Stub_Arithmetic, sub15) { double b = 0; zend_long a = 0; @@ -2000,7 +2000,7 @@ PHP_METHOD(Test_Arithmetic, sub15) { } -PHP_METHOD(Test_Arithmetic, sub16) { +PHP_METHOD(Stub_Arithmetic, sub16) { double a = 0, b = 0; zval *this_ptr = getThis(); @@ -2014,7 +2014,7 @@ PHP_METHOD(Test_Arithmetic, sub16) { } -PHP_METHOD(Test_Arithmetic, sub17) { +PHP_METHOD(Stub_Arithmetic, sub17) { zend_bool b = 0; double a = 0; @@ -2029,7 +2029,7 @@ PHP_METHOD(Test_Arithmetic, sub17) { } -PHP_METHOD(Test_Arithmetic, sub18) { +PHP_METHOD(Stub_Arithmetic, sub18) { zend_bool b = 0; double a = 0; @@ -2044,7 +2044,7 @@ PHP_METHOD(Test_Arithmetic, sub18) { } -PHP_METHOD(Test_Arithmetic, sub19) { +PHP_METHOD(Stub_Arithmetic, sub19) { zend_long b = 0; double a = 0; @@ -2059,7 +2059,7 @@ PHP_METHOD(Test_Arithmetic, sub19) { } -PHP_METHOD(Test_Arithmetic, sub20) { +PHP_METHOD(Stub_Arithmetic, sub20) { zend_long a = 0, b = 0; zval *this_ptr = getThis(); @@ -2073,7 +2073,7 @@ PHP_METHOD(Test_Arithmetic, sub20) { } -PHP_METHOD(Test_Arithmetic, sub21) { +PHP_METHOD(Stub_Arithmetic, sub21) { zend_long b = 0; double a = 0; @@ -2088,7 +2088,7 @@ PHP_METHOD(Test_Arithmetic, sub21) { } -PHP_METHOD(Test_Arithmetic, sub22) { +PHP_METHOD(Stub_Arithmetic, sub22) { zend_long b = 0, _0; zval a; @@ -2109,7 +2109,7 @@ PHP_METHOD(Test_Arithmetic, sub22) { } -PHP_METHOD(Test_Arithmetic, sub23) { +PHP_METHOD(Stub_Arithmetic, sub23) { zend_long a = 0; zval *this_ptr = getThis(); @@ -2122,7 +2122,7 @@ PHP_METHOD(Test_Arithmetic, sub23) { } -PHP_METHOD(Test_Arithmetic, sub24) { +PHP_METHOD(Stub_Arithmetic, sub24) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a, a_sub, _0; @@ -2145,7 +2145,7 @@ PHP_METHOD(Test_Arithmetic, sub24) { } -PHP_METHOD(Test_Arithmetic, mul1) { +PHP_METHOD(Stub_Arithmetic, mul1) { zend_long a; zval *this_ptr = getThis(); @@ -2158,7 +2158,7 @@ PHP_METHOD(Test_Arithmetic, mul1) { } -PHP_METHOD(Test_Arithmetic, mul2) { +PHP_METHOD(Stub_Arithmetic, mul2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a, a_sub, _0; @@ -2181,7 +2181,7 @@ PHP_METHOD(Test_Arithmetic, mul2) { } -PHP_METHOD(Test_Arithmetic, mul3) { +PHP_METHOD(Stub_Arithmetic, mul3) { zend_long a; zval *this_ptr = getThis(); @@ -2194,7 +2194,7 @@ PHP_METHOD(Test_Arithmetic, mul3) { } -PHP_METHOD(Test_Arithmetic, less1) { +PHP_METHOD(Stub_Arithmetic, less1) { zend_long a, b; zval *this_ptr = getThis(); @@ -2207,7 +2207,7 @@ PHP_METHOD(Test_Arithmetic, less1) { } -PHP_METHOD(Test_Arithmetic, less2) { +PHP_METHOD(Stub_Arithmetic, less2) { zend_long a, b; zval *this_ptr = getThis(); @@ -2220,7 +2220,7 @@ PHP_METHOD(Test_Arithmetic, less2) { } -PHP_METHOD(Test_Arithmetic, less3) { +PHP_METHOD(Stub_Arithmetic, less3) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -2235,7 +2235,7 @@ PHP_METHOD(Test_Arithmetic, less3) { } -PHP_METHOD(Test_Arithmetic, less4) { +PHP_METHOD(Stub_Arithmetic, less4) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -2250,7 +2250,7 @@ PHP_METHOD(Test_Arithmetic, less4) { } -PHP_METHOD(Test_Arithmetic, greater1) { +PHP_METHOD(Stub_Arithmetic, greater1) { zend_long a, b; zval *this_ptr = getThis(); @@ -2263,7 +2263,7 @@ PHP_METHOD(Test_Arithmetic, greater1) { } -PHP_METHOD(Test_Arithmetic, greater2) { +PHP_METHOD(Stub_Arithmetic, greater2) { zend_long a, b; zval *this_ptr = getThis(); @@ -2276,7 +2276,7 @@ PHP_METHOD(Test_Arithmetic, greater2) { } -PHP_METHOD(Test_Arithmetic, greater3) { +PHP_METHOD(Stub_Arithmetic, greater3) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -2291,7 +2291,7 @@ PHP_METHOD(Test_Arithmetic, greater3) { } -PHP_METHOD(Test_Arithmetic, greater4) { +PHP_METHOD(Stub_Arithmetic, greater4) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -2306,7 +2306,7 @@ PHP_METHOD(Test_Arithmetic, greater4) { } -PHP_METHOD(Test_Arithmetic, letStatementIntMinus) { +PHP_METHOD(Stub_Arithmetic, letStatementIntMinus) { zend_long a = 0; zval *this_ptr = getThis(); @@ -2318,7 +2318,7 @@ PHP_METHOD(Test_Arithmetic, letStatementIntMinus) { } -PHP_METHOD(Test_Arithmetic, declaredIntMinus) { +PHP_METHOD(Stub_Arithmetic, declaredIntMinus) { zend_long a; zval *this_ptr = getThis(); @@ -2333,7 +2333,7 @@ PHP_METHOD(Test_Arithmetic, declaredIntMinus) { /** * Boolean var can`t be -1 when we set -1 */ -PHP_METHOD(Test_Arithmetic, letStatementBoolMinus) { +PHP_METHOD(Stub_Arithmetic, letStatementBoolMinus) { zend_bool a = 0; zval *b, b_sub; @@ -2351,7 +2351,7 @@ PHP_METHOD(Test_Arithmetic, letStatementBoolMinus) { } -PHP_METHOD(Test_Arithmetic, letStatementVarMinus) { +PHP_METHOD(Stub_Arithmetic, letStatementVarMinus) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *b, b_sub, a; @@ -2371,7 +2371,7 @@ PHP_METHOD(Test_Arithmetic, letStatementVarMinus) { } -PHP_METHOD(Test_Arithmetic, div1) { +PHP_METHOD(Stub_Arithmetic, div1) { zend_long a; zval *this_ptr = getThis(); @@ -2383,7 +2383,7 @@ PHP_METHOD(Test_Arithmetic, div1) { } -PHP_METHOD(Test_Arithmetic, div2) { +PHP_METHOD(Stub_Arithmetic, div2) { zval _0; zval *this_ptr = getThis(); @@ -2391,7 +2391,7 @@ PHP_METHOD(Test_Arithmetic, div2) { ZVAL_UNDEF(&_0); - zephir_read_property(&_0, this_ptr, SL("tmp1"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("tmp1"), PH_NOISY_CC | PH_READONLY); RETURN_DOUBLE(zephir_safe_div_long_long(((zephir_get_numberval(&_0) - 1)), 4)); } diff --git a/ext/stub/arithmetic.zep.h b/ext/stub/arithmetic.zep.h new file mode 100644 index 0000000000..9d411c12de --- /dev/null +++ b/ext/stub/arithmetic.zep.h @@ -0,0 +1,369 @@ + +extern zend_class_entry *stub_arithmetic_ce; + +ZEPHIR_INIT_CLASS(Stub_Arithmetic); + +PHP_METHOD(Stub_Arithmetic, intSum); +PHP_METHOD(Stub_Arithmetic, int2Sum); +PHP_METHOD(Stub_Arithmetic, intSumSimple); +PHP_METHOD(Stub_Arithmetic, boolSum); +PHP_METHOD(Stub_Arithmetic, bool2Sum); +PHP_METHOD(Stub_Arithmetic, bool3Sum); +PHP_METHOD(Stub_Arithmetic, boolSumSimple); +PHP_METHOD(Stub_Arithmetic, boolSumExpression); +PHP_METHOD(Stub_Arithmetic, doubleSum); +PHP_METHOD(Stub_Arithmetic, double2Sum); +PHP_METHOD(Stub_Arithmetic, doubleSumSimple); +PHP_METHOD(Stub_Arithmetic, doubleSum2Simple); +PHP_METHOD(Stub_Arithmetic, doubleSumExpression); +PHP_METHOD(Stub_Arithmetic, doubleSumVarExpression); +PHP_METHOD(Stub_Arithmetic, varSum); +PHP_METHOD(Stub_Arithmetic, varSumSimple); +PHP_METHOD(Stub_Arithmetic, intDoubleSum); +PHP_METHOD(Stub_Arithmetic, intDoubleSumSimple); +PHP_METHOD(Stub_Arithmetic, doubleIntSum); +PHP_METHOD(Stub_Arithmetic, doubleIntSumSimple); +PHP_METHOD(Stub_Arithmetic, varIntSum); +PHP_METHOD(Stub_Arithmetic, intVarSum); +PHP_METHOD(Stub_Arithmetic, intVarImplicitCastSum); +PHP_METHOD(Stub_Arithmetic, intVarImplicitCast2Sum); +PHP_METHOD(Stub_Arithmetic, complexSum); +PHP_METHOD(Stub_Arithmetic, complex2Sum); +PHP_METHOD(Stub_Arithmetic, complex3Sum); +PHP_METHOD(Stub_Arithmetic, complex4Sum); +PHP_METHOD(Stub_Arithmetic, complex5Sum); +PHP_METHOD(Stub_Arithmetic, complex6Sum); +PHP_METHOD(Stub_Arithmetic, complex7Sum); +PHP_METHOD(Stub_Arithmetic, complex9Sum); +PHP_METHOD(Stub_Arithmetic, complex10Sum); +PHP_METHOD(Stub_Arithmetic, complex11Sum); +PHP_METHOD(Stub_Arithmetic, complex12Sum); +PHP_METHOD(Stub_Arithmetic, complex13Sum); +PHP_METHOD(Stub_Arithmetic, complex14Sum); +PHP_METHOD(Stub_Arithmetic, complex15Sum); +PHP_METHOD(Stub_Arithmetic, complex16Sum); +PHP_METHOD(Stub_Arithmetic, complex17Sum); +PHP_METHOD(Stub_Arithmetic, complex18Sum); +PHP_METHOD(Stub_Arithmetic, complex19Sum); +PHP_METHOD(Stub_Arithmetic, complex20Sum); +PHP_METHOD(Stub_Arithmetic, complex21Sum); +PHP_METHOD(Stub_Arithmetic, complex22Sum); +PHP_METHOD(Stub_Arithmetic, complex23Sum); +PHP_METHOD(Stub_Arithmetic, complex24Sum); +PHP_METHOD(Stub_Arithmetic, addSum1); +PHP_METHOD(Stub_Arithmetic, addSum2); +PHP_METHOD(Stub_Arithmetic, addSum2b); +PHP_METHOD(Stub_Arithmetic, addSum3); +PHP_METHOD(Stub_Arithmetic, addSum4); +PHP_METHOD(Stub_Arithmetic, addSum5); +PHP_METHOD(Stub_Arithmetic, addSum6); +PHP_METHOD(Stub_Arithmetic, addSum7); +PHP_METHOD(Stub_Arithmetic, addSum8); +PHP_METHOD(Stub_Arithmetic, addSum8b); +PHP_METHOD(Stub_Arithmetic, addSum9); +PHP_METHOD(Stub_Arithmetic, addSum10); +PHP_METHOD(Stub_Arithmetic, addSum11); +PHP_METHOD(Stub_Arithmetic, addSum12); +PHP_METHOD(Stub_Arithmetic, addSum13); +PHP_METHOD(Stub_Arithmetic, addSum14); +PHP_METHOD(Stub_Arithmetic, addSum15); +PHP_METHOD(Stub_Arithmetic, addSum16); +PHP_METHOD(Stub_Arithmetic, addSum17); +PHP_METHOD(Stub_Arithmetic, addSum18); +PHP_METHOD(Stub_Arithmetic, addSum19); +PHP_METHOD(Stub_Arithmetic, addSum20); +PHP_METHOD(Stub_Arithmetic, addSum21); +PHP_METHOD(Stub_Arithmetic, addSum22); +PHP_METHOD(Stub_Arithmetic, addSum23); +PHP_METHOD(Stub_Arithmetic, addSum24); +PHP_METHOD(Stub_Arithmetic, intSub); +PHP_METHOD(Stub_Arithmetic, intLetSub); +PHP_METHOD(Stub_Arithmetic, intSub2); +PHP_METHOD(Stub_Arithmetic, intSubSimple); +PHP_METHOD(Stub_Arithmetic, boolSub); +PHP_METHOD(Stub_Arithmetic, bool2Sub); +PHP_METHOD(Stub_Arithmetic, bool3Sub); +PHP_METHOD(Stub_Arithmetic, bool4Sub); +PHP_METHOD(Stub_Arithmetic, boolSubSimple); +PHP_METHOD(Stub_Arithmetic, doubleSub); +PHP_METHOD(Stub_Arithmetic, double2Sub); +PHP_METHOD(Stub_Arithmetic, doubleSubSimple); +PHP_METHOD(Stub_Arithmetic, doubleSub2Simple); +PHP_METHOD(Stub_Arithmetic, varSub); +PHP_METHOD(Stub_Arithmetic, varSubSimple); +PHP_METHOD(Stub_Arithmetic, intDoubleSub); +PHP_METHOD(Stub_Arithmetic, intDoubleSubSimple); +PHP_METHOD(Stub_Arithmetic, doubleIntSub); +PHP_METHOD(Stub_Arithmetic, doubleIntSubSimple); +PHP_METHOD(Stub_Arithmetic, varIntSub); +PHP_METHOD(Stub_Arithmetic, intVarSub); +PHP_METHOD(Stub_Arithmetic, intVarImplicitCastSub); +PHP_METHOD(Stub_Arithmetic, intVarImplicitCast2Sub); +PHP_METHOD(Stub_Arithmetic, complexSub); +PHP_METHOD(Stub_Arithmetic, complex2Sub); +PHP_METHOD(Stub_Arithmetic, complex3Sub); +PHP_METHOD(Stub_Arithmetic, complex4Sub); +PHP_METHOD(Stub_Arithmetic, complex5Sub); +PHP_METHOD(Stub_Arithmetic, complex6Sub); +PHP_METHOD(Stub_Arithmetic, complex7Sub); +PHP_METHOD(Stub_Arithmetic, complex9Sub); +PHP_METHOD(Stub_Arithmetic, complex10Sub); +PHP_METHOD(Stub_Arithmetic, complex11Sub); +PHP_METHOD(Stub_Arithmetic, complex12Sub); +PHP_METHOD(Stub_Arithmetic, complex13Sub); +PHP_METHOD(Stub_Arithmetic, complex14Sub); +PHP_METHOD(Stub_Arithmetic, complex15Sub); +PHP_METHOD(Stub_Arithmetic, complex16Sub); +PHP_METHOD(Stub_Arithmetic, complex17Sub); +PHP_METHOD(Stub_Arithmetic, complex18Sub); +PHP_METHOD(Stub_Arithmetic, complex19Sub); +PHP_METHOD(Stub_Arithmetic, complex20Sub); +PHP_METHOD(Stub_Arithmetic, complex21Sub); +PHP_METHOD(Stub_Arithmetic, complex22Sub); +PHP_METHOD(Stub_Arithmetic, complex23Sub); +PHP_METHOD(Stub_Arithmetic, complex24Sub); +PHP_METHOD(Stub_Arithmetic, sub1); +PHP_METHOD(Stub_Arithmetic, sub2); +PHP_METHOD(Stub_Arithmetic, sub2b); +PHP_METHOD(Stub_Arithmetic, sub3); +PHP_METHOD(Stub_Arithmetic, sub4); +PHP_METHOD(Stub_Arithmetic, sub5); +PHP_METHOD(Stub_Arithmetic, sub6); +PHP_METHOD(Stub_Arithmetic, sub7); +PHP_METHOD(Stub_Arithmetic, sub8); +PHP_METHOD(Stub_Arithmetic, sub8b); +PHP_METHOD(Stub_Arithmetic, sub9); +PHP_METHOD(Stub_Arithmetic, sub10); +PHP_METHOD(Stub_Arithmetic, sub11); +PHP_METHOD(Stub_Arithmetic, sub12); +PHP_METHOD(Stub_Arithmetic, sub13); +PHP_METHOD(Stub_Arithmetic, sub14); +PHP_METHOD(Stub_Arithmetic, sub15); +PHP_METHOD(Stub_Arithmetic, sub16); +PHP_METHOD(Stub_Arithmetic, sub17); +PHP_METHOD(Stub_Arithmetic, sub18); +PHP_METHOD(Stub_Arithmetic, sub19); +PHP_METHOD(Stub_Arithmetic, sub20); +PHP_METHOD(Stub_Arithmetic, sub21); +PHP_METHOD(Stub_Arithmetic, sub22); +PHP_METHOD(Stub_Arithmetic, sub23); +PHP_METHOD(Stub_Arithmetic, sub24); +PHP_METHOD(Stub_Arithmetic, mul1); +PHP_METHOD(Stub_Arithmetic, mul2); +PHP_METHOD(Stub_Arithmetic, mul3); +PHP_METHOD(Stub_Arithmetic, less1); +PHP_METHOD(Stub_Arithmetic, less2); +PHP_METHOD(Stub_Arithmetic, less3); +PHP_METHOD(Stub_Arithmetic, less4); +PHP_METHOD(Stub_Arithmetic, greater1); +PHP_METHOD(Stub_Arithmetic, greater2); +PHP_METHOD(Stub_Arithmetic, greater3); +PHP_METHOD(Stub_Arithmetic, greater4); +PHP_METHOD(Stub_Arithmetic, letStatementIntMinus); +PHP_METHOD(Stub_Arithmetic, declaredIntMinus); +PHP_METHOD(Stub_Arithmetic, letStatementBoolMinus); +PHP_METHOD(Stub_Arithmetic, letStatementVarMinus); +PHP_METHOD(Stub_Arithmetic, div1); +PHP_METHOD(Stub_Arithmetic, div2); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arithmetic_addsum24, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arithmetic_sub24, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arithmetic_mul2, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arithmetic_less3, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arithmetic_less4, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arithmetic_greater3, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arithmetic_greater4, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arithmetic_letstatementboolminus, 0, 0, 1) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arithmetic_letstatementvarminus, 0, 0, 1) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_arithmetic_method_entry) { + PHP_ME(Stub_Arithmetic, intSum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, int2Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intSumSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, boolSum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, bool2Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, bool3Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, boolSumSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, boolSumExpression, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, doubleSum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, double2Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, doubleSumSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, doubleSum2Simple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, doubleSumExpression, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, doubleSumVarExpression, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, varSum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, varSumSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intDoubleSum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intDoubleSumSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, doubleIntSum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, doubleIntSumSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, varIntSum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intVarSum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intVarImplicitCastSum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intVarImplicitCast2Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complexSum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex2Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex3Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex4Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex5Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex6Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex7Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex9Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex10Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex11Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex12Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex13Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex14Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex15Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex16Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex17Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex18Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex19Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex20Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex21Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex22Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex23Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex24Sum, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum2b, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum6, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum7, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum8, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum8b, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum9, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum10, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum11, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum12, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum13, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum14, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum15, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum16, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum17, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum18, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum19, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum20, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum21, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum22, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum23, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, addSum24, arginfo_stub_arithmetic_addsum24, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intSub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intLetSub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intSub2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intSubSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, boolSub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, bool2Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, bool3Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, bool4Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, boolSubSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, doubleSub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, double2Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, doubleSubSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, doubleSub2Simple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, varSub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, varSubSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intDoubleSub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intDoubleSubSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, doubleIntSub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, doubleIntSubSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, varIntSub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intVarSub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intVarImplicitCastSub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, intVarImplicitCast2Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complexSub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex2Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex3Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex4Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex5Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex6Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex7Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex9Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex10Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex11Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex12Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex13Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex14Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex15Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex16Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex17Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex18Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex19Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex20Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex21Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex22Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex23Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, complex24Sub, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub2b, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub6, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub7, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub8, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub8b, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub9, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub10, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub11, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub12, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub13, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub14, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub15, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub16, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub17, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub18, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub19, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub20, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub21, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub22, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub23, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, sub24, arginfo_stub_arithmetic_sub24, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, mul1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, mul2, arginfo_stub_arithmetic_mul2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, mul3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, less1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, less2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, less3, arginfo_stub_arithmetic_less3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, less4, arginfo_stub_arithmetic_less4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, greater1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, greater2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, greater3, arginfo_stub_arithmetic_greater3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, greater4, arginfo_stub_arithmetic_greater4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, letStatementIntMinus, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, declaredIntMinus, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, letStatementBoolMinus, arginfo_stub_arithmetic_letstatementboolminus, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, letStatementVarMinus, arginfo_stub_arithmetic_letstatementvarminus, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, div1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Arithmetic, div2, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/arrayaccessobj.zep.c b/ext/stub/arrayaccessobj.zep.c similarity index 68% rename from ext/test/arrayaccessobj.zep.c rename to ext/stub/arrayaccessobj.zep.c index a6ae9c43a3..35affe7c55 100644 --- a/ext/test/arrayaccessobj.zep.c +++ b/ext/stub/arrayaccessobj.zep.c @@ -17,18 +17,18 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_ArrayAccessObj) { +ZEPHIR_INIT_CLASS(Stub_ArrayAccessObj) { - ZEPHIR_REGISTER_CLASS(Test, ArrayAccessObj, test, arrayaccessobj, test_arrayaccessobj_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, ArrayAccessObj, stub, arrayaccessobj, stub_arrayaccessobj_method_entry, 0); - zend_declare_property_null(test_arrayaccessobj_ce, SL("test"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_arrayaccessobj_ce, SL("test"), ZEND_ACC_PROTECTED); - zend_class_implements(test_arrayaccessobj_ce, 1, zend_ce_arrayaccess); + zend_class_implements(stub_arrayaccessobj_ce, 1, zend_ce_arrayaccess); return SUCCESS; } -PHP_METHOD(Test_ArrayAccessObj, __construct) { +PHP_METHOD(Stub_ArrayAccessObj, __construct) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -48,7 +48,7 @@ PHP_METHOD(Test_ArrayAccessObj, __construct) { } -PHP_METHOD(Test_ArrayAccessObj, offsetSet) { +PHP_METHOD(Stub_ArrayAccessObj, offsetSet) { zval *offset, offset_sub, *value, value_sub; zval *this_ptr = getThis(); @@ -68,7 +68,7 @@ PHP_METHOD(Test_ArrayAccessObj, offsetSet) { } -PHP_METHOD(Test_ArrayAccessObj, offsetExists) { +PHP_METHOD(Stub_ArrayAccessObj, offsetExists) { zval *offset, offset_sub, _0; zval *this_ptr = getThis(); @@ -80,12 +80,12 @@ PHP_METHOD(Test_ArrayAccessObj, offsetExists) { - zephir_read_property(&_0, this_ptr, SL("test"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("test"), PH_NOISY_CC | PH_READONLY); RETURN_BOOL(zephir_array_isset(&_0, offset)); } -PHP_METHOD(Test_ArrayAccessObj, offsetUnset) { +PHP_METHOD(Stub_ArrayAccessObj, offsetUnset) { zval *offset, offset_sub, _0; zval *this_ptr = getThis(); @@ -97,12 +97,12 @@ PHP_METHOD(Test_ArrayAccessObj, offsetUnset) { - zephir_read_property(&_0, this_ptr, SL("test"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("test"), PH_NOISY_CC | PH_READONLY); zephir_array_unset(&_0, offset, PH_SEPARATE); } -PHP_METHOD(Test_ArrayAccessObj, offsetGet) { +PHP_METHOD(Stub_ArrayAccessObj, offsetGet) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *offset, offset_sub, _0, _1, _2; @@ -119,10 +119,10 @@ PHP_METHOD(Test_ArrayAccessObj, offsetGet) { ZEPHIR_INIT_VAR(&_0); - zephir_read_property(&_1, this_ptr, SL("test"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_1, this_ptr, ZEND_STRL("test"), PH_NOISY_CC | PH_READONLY); if (zephir_array_isset(&_1, offset)) { - zephir_read_property(&_2, this_ptr, SL("test"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch(&_0, &_2, offset, PH_NOISY, "test/arrayaccessobj.zep", 33); + zephir_read_property(&_2, this_ptr, ZEND_STRL("test"), PH_NOISY_CC | PH_READONLY); + zephir_array_fetch(&_0, &_2, offset, PH_NOISY, "stub/arrayaccessobj.zep", 33); } else { ZVAL_NULL(&_0); } diff --git a/ext/stub/arrayaccessobj.zep.h b/ext/stub/arrayaccessobj.zep.h new file mode 100644 index 0000000000..71a640d377 --- /dev/null +++ b/ext/stub/arrayaccessobj.zep.h @@ -0,0 +1,36 @@ + +extern zend_class_entry *stub_arrayaccessobj_ce; + +ZEPHIR_INIT_CLASS(Stub_ArrayAccessObj); + +PHP_METHOD(Stub_ArrayAccessObj, __construct); +PHP_METHOD(Stub_ArrayAccessObj, offsetSet); +PHP_METHOD(Stub_ArrayAccessObj, offsetExists); +PHP_METHOD(Stub_ArrayAccessObj, offsetUnset); +PHP_METHOD(Stub_ArrayAccessObj, offsetGet); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arrayaccessobj_offsetset, 0, 0, 2) + ZEND_ARG_INFO(0, offset) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arrayaccessobj_offsetexists, 0, 0, 1) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arrayaccessobj_offsetunset, 0, 0, 1) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arrayaccessobj_offsetget, 0, 0, 1) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_arrayaccessobj_method_entry) { + PHP_ME(Stub_ArrayAccessObj, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Stub_ArrayAccessObj, offsetSet, arginfo_stub_arrayaccessobj_offsetset, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ArrayAccessObj, offsetExists, arginfo_stub_arrayaccessobj_offsetexists, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ArrayAccessObj, offsetUnset, arginfo_stub_arrayaccessobj_offsetunset, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ArrayAccessObj, offsetGet, arginfo_stub_arrayaccessobj_offsetget, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/arrayaccesstest.zep.c b/ext/stub/arrayaccesstest.zep.c similarity index 75% rename from ext/test/arrayaccesstest.zep.c rename to ext/stub/arrayaccesstest.zep.c index 0081f96618..a07269ab1f 100644 --- a/ext/test/arrayaccesstest.zep.c +++ b/ext/stub/arrayaccesstest.zep.c @@ -18,15 +18,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_ArrayAccessTest) { +ZEPHIR_INIT_CLASS(Stub_ArrayAccessTest) { - ZEPHIR_REGISTER_CLASS(Test, ArrayAccessTest, test, arrayaccesstest, test_arrayaccesstest_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, ArrayAccessTest, stub, arrayaccesstest, stub_arrayaccesstest_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_ArrayAccessTest, exits) { +PHP_METHOD(Stub_ArrayAccessTest, exits) { zval arr; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -38,14 +38,14 @@ PHP_METHOD(Test_ArrayAccessTest, exits) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&arr); - object_init_ex(&arr, test_arrayaccessobj_ce); + object_init_ex(&arr, stub_arrayaccessobj_ce); ZEPHIR_CALL_METHOD(NULL, &arr, "__construct", NULL, 3); zephir_check_call_status(); RETURN_MM_BOOL(zephir_array_isset_string(&arr, SL("one"))); } -PHP_METHOD(Test_ArrayAccessTest, get) { +PHP_METHOD(Stub_ArrayAccessTest, get) { zval arr, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -58,10 +58,10 @@ PHP_METHOD(Test_ArrayAccessTest, get) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&arr); - object_init_ex(&arr, test_arrayaccessobj_ce); + object_init_ex(&arr, stub_arrayaccessobj_ce); ZEPHIR_CALL_METHOD(NULL, &arr, "__construct", NULL, 3); zephir_check_call_status(); - zephir_array_fetch_string(&_0, &arr, SL("two"), PH_NOISY | PH_READONLY, "test/arrayaccesstest.zep", 18); + zephir_array_fetch_string(&_0, &arr, SL("two"), PH_NOISY | PH_READONLY, "stub/arrayaccesstest.zep", 18); RETURN_CTOR(&_0); } diff --git a/ext/stub/arrayaccesstest.zep.h b/ext/stub/arrayaccesstest.zep.h new file mode 100644 index 0000000000..e570bd413a --- /dev/null +++ b/ext/stub/arrayaccesstest.zep.h @@ -0,0 +1,13 @@ + +extern zend_class_entry *stub_arrayaccesstest_ce; + +ZEPHIR_INIT_CLASS(Stub_ArrayAccessTest); + +PHP_METHOD(Stub_ArrayAccessTest, exits); +PHP_METHOD(Stub_ArrayAccessTest, get); + +ZEPHIR_INIT_FUNCS(stub_arrayaccesstest_method_entry) { + PHP_ME(Stub_ArrayAccessTest, exits, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_ArrayAccessTest, get, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/arrayiterator.zep.c b/ext/stub/arrayiterator.zep.c similarity index 65% rename from ext/test/arrayiterator.zep.c rename to ext/stub/arrayiterator.zep.c index 893ea14f37..cee129c154 100644 --- a/ext/test/arrayiterator.zep.c +++ b/ext/stub/arrayiterator.zep.c @@ -17,20 +17,20 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_ArrayIterator) { +ZEPHIR_INIT_CLASS(Stub_ArrayIterator) { - ZEPHIR_REGISTER_CLASS(Test, ArrayIterator, test, arrayiterator, test_arrayiterator_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, ArrayIterator, stub, arrayiterator, stub_arrayiterator_method_entry, 0); - zend_declare_property_long(test_arrayiterator_ce, SL("position"), 0, ZEND_ACC_PROTECTED); + zend_declare_property_long(stub_arrayiterator_ce, SL("position"), 0, ZEND_ACC_PROTECTED); - zend_declare_property_null(test_arrayiterator_ce, SL("test"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_arrayiterator_ce, SL("test"), ZEND_ACC_PROTECTED); - zend_class_implements(test_arrayiterator_ce, 1, zend_ce_iterator); + zend_class_implements(stub_arrayiterator_ce, 1, zend_ce_iterator); return SUCCESS; } -PHP_METHOD(Test_ArrayIterator, __construct) { +PHP_METHOD(Stub_ArrayIterator, __construct) { zval _1, _2; zval _0; @@ -62,7 +62,7 @@ PHP_METHOD(Test_ArrayIterator, __construct) { } -PHP_METHOD(Test_ArrayIterator, rewind) { +PHP_METHOD(Stub_ArrayIterator, rewind) { zval _0; zval *this_ptr = getThis(); @@ -76,7 +76,7 @@ PHP_METHOD(Test_ArrayIterator, rewind) { } -PHP_METHOD(Test_ArrayIterator, current) { +PHP_METHOD(Stub_ArrayIterator, current) { zval _0, _1, _2; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -88,15 +88,15 @@ PHP_METHOD(Test_ArrayIterator, current) { ZEPHIR_MM_GROW(); - zephir_read_property(&_0, this_ptr, SL("test"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("test"), PH_NOISY_CC | PH_READONLY); ZEPHIR_OBS_VAR(&_2); - zephir_read_property(&_2, this_ptr, SL("position"), PH_NOISY_CC); - zephir_array_fetch(&_1, &_0, &_2, PH_NOISY | PH_READONLY, "test/arrayiterator.zep", 22); + zephir_read_property(&_2, this_ptr, ZEND_STRL("position"), PH_NOISY_CC); + zephir_array_fetch(&_1, &_0, &_2, PH_NOISY | PH_READONLY, "stub/arrayiterator.zep", 22); RETURN_CTOR(&_1); } -PHP_METHOD(Test_ArrayIterator, key) { +PHP_METHOD(Stub_ArrayIterator, key) { zval *this_ptr = getThis(); @@ -105,7 +105,7 @@ PHP_METHOD(Test_ArrayIterator, key) { } -PHP_METHOD(Test_ArrayIterator, next) { +PHP_METHOD(Stub_ArrayIterator, next) { zval *this_ptr = getThis(); @@ -114,7 +114,7 @@ PHP_METHOD(Test_ArrayIterator, next) { } -PHP_METHOD(Test_ArrayIterator, valid) { +PHP_METHOD(Stub_ArrayIterator, valid) { zval _0, _1; zval *this_ptr = getThis(); @@ -123,8 +123,8 @@ PHP_METHOD(Test_ArrayIterator, valid) { ZVAL_UNDEF(&_1); - zephir_read_property(&_0, this_ptr, SL("test"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_1, this_ptr, SL("position"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("test"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_1, this_ptr, ZEND_STRL("position"), PH_NOISY_CC | PH_READONLY); RETURN_BOOL(zephir_array_isset(&_0, &_1)); } diff --git a/ext/stub/arrayiterator.zep.h b/ext/stub/arrayiterator.zep.h new file mode 100644 index 0000000000..ec7766183e --- /dev/null +++ b/ext/stub/arrayiterator.zep.h @@ -0,0 +1,21 @@ + +extern zend_class_entry *stub_arrayiterator_ce; + +ZEPHIR_INIT_CLASS(Stub_ArrayIterator); + +PHP_METHOD(Stub_ArrayIterator, __construct); +PHP_METHOD(Stub_ArrayIterator, rewind); +PHP_METHOD(Stub_ArrayIterator, current); +PHP_METHOD(Stub_ArrayIterator, key); +PHP_METHOD(Stub_ArrayIterator, next); +PHP_METHOD(Stub_ArrayIterator, valid); + +ZEPHIR_INIT_FUNCS(stub_arrayiterator_method_entry) { + PHP_ME(Stub_ArrayIterator, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Stub_ArrayIterator, rewind, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ArrayIterator, current, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ArrayIterator, key, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ArrayIterator, next, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ArrayIterator, valid, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/arrayiteratortest.zep.c b/ext/stub/arrayiteratortest.zep.c similarity index 84% rename from ext/test/arrayiteratortest.zep.c rename to ext/stub/arrayiteratortest.zep.c index 4f7678ef87..d5fde0d345 100644 --- a/ext/test/arrayiteratortest.zep.c +++ b/ext/stub/arrayiteratortest.zep.c @@ -18,15 +18,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_ArrayIteratorTest) { +ZEPHIR_INIT_CLASS(Stub_ArrayIteratorTest) { - ZEPHIR_REGISTER_CLASS(Test, ArrayIteratorTest, test, arrayiteratortest, test_arrayiteratortest_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, ArrayIteratorTest, stub, arrayiteratortest, stub_arrayiteratortest_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_ArrayIteratorTest, test) { +PHP_METHOD(Stub_ArrayIteratorTest, test) { zend_string *_3; zend_ulong _2; @@ -43,10 +43,10 @@ PHP_METHOD(Test_ArrayIteratorTest, test) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&arr); - object_init_ex(&arr, test_arrayiterator_ce); + object_init_ex(&arr, stub_arrayiterator_ce); ZEPHIR_CALL_METHOD(NULL, &arr, "__construct", NULL, 4); zephir_check_call_status(); - zephir_is_iterable(&arr, 0, "test/arrayiteratortest.zep", 12); + zephir_is_iterable(&arr, 0, "stub/arrayiteratortest.zep", 12); if (Z_TYPE_P(&arr) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&arr), _2, _3, _0) { diff --git a/ext/stub/arrayiteratortest.zep.h b/ext/stub/arrayiteratortest.zep.h new file mode 100644 index 0000000000..436ae6723f --- /dev/null +++ b/ext/stub/arrayiteratortest.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_arrayiteratortest_ce; + +ZEPHIR_INIT_CLASS(Stub_ArrayIteratorTest); + +PHP_METHOD(Stub_ArrayIteratorTest, test); + +ZEPHIR_INIT_FUNCS(stub_arrayiteratortest_method_entry) { + PHP_ME(Stub_ArrayIteratorTest, test, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/arrayobject.zep.c b/ext/stub/arrayobject.zep.c similarity index 76% rename from ext/test/arrayobject.zep.c rename to ext/stub/arrayobject.zep.c index 79bda13260..99363997c3 100644 --- a/ext/test/arrayobject.zep.c +++ b/ext/stub/arrayobject.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_array.h" -ZEPHIR_INIT_CLASS(Test_ArrayObject) { +ZEPHIR_INIT_CLASS(Stub_ArrayObject) { - ZEPHIR_REGISTER_CLASS_EX(Test, ArrayObject, test, arrayobject, spl_ce_ArrayObject, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub, ArrayObject, stub, arrayobject, spl_ce_ArrayObject, NULL, 0); return SUCCESS; diff --git a/ext/stub/arrayobject.zep.h b/ext/stub/arrayobject.zep.h new file mode 100644 index 0000000000..6afce2a785 --- /dev/null +++ b/ext/stub/arrayobject.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_arrayobject_ce; + +ZEPHIR_INIT_CLASS(Stub_ArrayObject); + diff --git a/ext/test/arraysearch.zep.c b/ext/stub/arraysearch.zep.c similarity index 91% rename from ext/test/arraysearch.zep.c rename to ext/stub/arraysearch.zep.c index 0c992cb2e1..d41f7d2af1 100644 --- a/ext/test/arraysearch.zep.c +++ b/ext/stub/arraysearch.zep.c @@ -19,16 +19,16 @@ #include "kernel/array.h" -ZEPHIR_INIT_CLASS(Test_ArraySearch) { +ZEPHIR_INIT_CLASS(Stub_ArraySearch) { - ZEPHIR_REGISTER_CLASS(Test, ArraySearch, test, arraysearch, test_arraysearch_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, ArraySearch, stub, arraysearch, stub_arraysearch_method_entry, 0); return SUCCESS; } /** @issue https://github.com/phalcon/zephir/issues/1609 */ -PHP_METHOD(Test_ArraySearch, simpleSearch) { +PHP_METHOD(Stub_ArraySearch, simpleSearch) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -60,7 +60,7 @@ PHP_METHOD(Test_ArraySearch, simpleSearch) { } /** @issue https://github.com/phalcon/zephir/issues/1609 */ -PHP_METHOD(Test_ArraySearch, searchUsingArrayInsideZephir) { +PHP_METHOD(Stub_ArraySearch, searchUsingArrayInsideZephir) { zval _0, pos; zval itoA64; diff --git a/ext/stub/arraysearch.zep.h b/ext/stub/arraysearch.zep.h new file mode 100644 index 0000000000..feea5ca54c --- /dev/null +++ b/ext/stub/arraysearch.zep.h @@ -0,0 +1,23 @@ + +extern zend_class_entry *stub_arraysearch_ce; + +ZEPHIR_INIT_CLASS(Stub_ArraySearch); + +PHP_METHOD(Stub_ArraySearch, simpleSearch); +PHP_METHOD(Stub_ArraySearch, searchUsingArrayInsideZephir); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_arraysearch_simplesearch, 0, 0, 2) + ZEND_ARG_INFO(0, needle) + ZEND_ARG_ARRAY_INFO(0, haystack, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, strict, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, strict) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_arraysearch_method_entry) { + PHP_ME(Stub_ArraySearch, simpleSearch, arginfo_stub_arraysearch_simplesearch, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ArraySearch, searchUsingArrayInsideZephir, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/assign.zep.c b/ext/stub/assign.zep.c similarity index 81% rename from ext/test/assign.zep.c rename to ext/stub/assign.zep.c index 2cb2d17620..011a16b369 100644 --- a/ext/test/assign.zep.c +++ b/ext/stub/assign.zep.c @@ -21,21 +21,21 @@ /** * Control Flow */ -ZEPHIR_INIT_CLASS(Test_Assign) { +ZEPHIR_INIT_CLASS(Stub_Assign) { - ZEPHIR_REGISTER_CLASS(Test, Assign, test, assign, test_assign_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Assign, stub, assign, stub_assign_method_entry, 0); - zend_declare_property_null(test_assign_ce, SL("testVar"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_assign_ce, SL("testVar"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_assign_ce, SL("myArray"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_assign_ce, SL("myArray"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_assign_ce, SL("testVarStatic"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_null(stub_assign_ce, SL("testVarStatic"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); return SUCCESS; } -PHP_METHOD(Test_Assign, getTestVar) { +PHP_METHOD(Stub_Assign, getTestVar) { zval *this_ptr = getThis(); @@ -44,7 +44,7 @@ PHP_METHOD(Test_Assign, getTestVar) { } -PHP_METHOD(Test_Assign, getMyArray) { +PHP_METHOD(Stub_Assign, getMyArray) { zval *this_ptr = getThis(); @@ -53,7 +53,7 @@ PHP_METHOD(Test_Assign, getMyArray) { } -PHP_METHOD(Test_Assign, testAssign1) { +PHP_METHOD(Stub_Assign, testAssign1) { zend_long a = 0; zval *this_ptr = getThis(); @@ -65,7 +65,7 @@ PHP_METHOD(Test_Assign, testAssign1) { } -PHP_METHOD(Test_Assign, testAssign2) { +PHP_METHOD(Stub_Assign, testAssign2) { zend_long a = 0; zval *this_ptr = getThis(); @@ -77,7 +77,7 @@ PHP_METHOD(Test_Assign, testAssign2) { } -PHP_METHOD(Test_Assign, testAssign3) { +PHP_METHOD(Stub_Assign, testAssign3) { zend_long a = 0; zval *this_ptr = getThis(); @@ -89,7 +89,7 @@ PHP_METHOD(Test_Assign, testAssign3) { } -PHP_METHOD(Test_Assign, testAssign4) { +PHP_METHOD(Stub_Assign, testAssign4) { zend_long a = 0; zval *this_ptr = getThis(); @@ -101,7 +101,7 @@ PHP_METHOD(Test_Assign, testAssign4) { } -PHP_METHOD(Test_Assign, testAssign5) { +PHP_METHOD(Stub_Assign, testAssign5) { zend_long a = 0; zval *this_ptr = getThis(); @@ -113,7 +113,7 @@ PHP_METHOD(Test_Assign, testAssign5) { } -PHP_METHOD(Test_Assign, testAssign6) { +PHP_METHOD(Stub_Assign, testAssign6) { zend_bool a = 0; zval *this_ptr = getThis(); @@ -125,7 +125,7 @@ PHP_METHOD(Test_Assign, testAssign6) { } -PHP_METHOD(Test_Assign, testAssign7) { +PHP_METHOD(Stub_Assign, testAssign7) { zend_bool a = 0; zval *this_ptr = getThis(); @@ -137,7 +137,7 @@ PHP_METHOD(Test_Assign, testAssign7) { } -PHP_METHOD(Test_Assign, testAssign8) { +PHP_METHOD(Stub_Assign, testAssign8) { zend_bool a = 0; zval *this_ptr = getThis(); @@ -149,7 +149,7 @@ PHP_METHOD(Test_Assign, testAssign8) { } -PHP_METHOD(Test_Assign, testAssign9) { +PHP_METHOD(Stub_Assign, testAssign9) { zend_bool a = 0; zval *this_ptr = getThis(); @@ -161,7 +161,7 @@ PHP_METHOD(Test_Assign, testAssign9) { } -PHP_METHOD(Test_Assign, testAssign10) { +PHP_METHOD(Stub_Assign, testAssign10) { zend_bool a = 0; zval *this_ptr = getThis(); @@ -173,7 +173,7 @@ PHP_METHOD(Test_Assign, testAssign10) { } -PHP_METHOD(Test_Assign, testAssign11) { +PHP_METHOD(Stub_Assign, testAssign11) { double a = 0; zval *this_ptr = getThis(); @@ -185,7 +185,7 @@ PHP_METHOD(Test_Assign, testAssign11) { } -PHP_METHOD(Test_Assign, testAssign12) { +PHP_METHOD(Stub_Assign, testAssign12) { double a = 0; zval *this_ptr = getThis(); @@ -197,7 +197,7 @@ PHP_METHOD(Test_Assign, testAssign12) { } -PHP_METHOD(Test_Assign, testAssign13) { +PHP_METHOD(Stub_Assign, testAssign13) { double a = 0; zval *this_ptr = getThis(); @@ -209,7 +209,7 @@ PHP_METHOD(Test_Assign, testAssign13) { } -PHP_METHOD(Test_Assign, testAssign14) { +PHP_METHOD(Stub_Assign, testAssign14) { double a = 0; zval *this_ptr = getThis(); @@ -221,7 +221,7 @@ PHP_METHOD(Test_Assign, testAssign14) { } -PHP_METHOD(Test_Assign, testAssign15) { +PHP_METHOD(Stub_Assign, testAssign15) { double a = 0; zval *this_ptr = getThis(); @@ -233,7 +233,7 @@ PHP_METHOD(Test_Assign, testAssign15) { } -PHP_METHOD(Test_Assign, testAssign16) { +PHP_METHOD(Stub_Assign, testAssign16) { zend_long a = 0; zval *this_ptr = getThis(); @@ -245,7 +245,7 @@ PHP_METHOD(Test_Assign, testAssign16) { } -PHP_METHOD(Test_Assign, testAssign17) { +PHP_METHOD(Stub_Assign, testAssign17) { double a = 0; zval *this_ptr = getThis(); @@ -257,7 +257,7 @@ PHP_METHOD(Test_Assign, testAssign17) { } -PHP_METHOD(Test_Assign, testAssign18) { +PHP_METHOD(Stub_Assign, testAssign18) { zend_bool a = 0; zval *this_ptr = getThis(); @@ -269,7 +269,7 @@ PHP_METHOD(Test_Assign, testAssign18) { } -PHP_METHOD(Test_Assign, testAssign19) { +PHP_METHOD(Stub_Assign, testAssign19) { zend_bool a = 0; zval *this_ptr = getThis(); @@ -281,7 +281,7 @@ PHP_METHOD(Test_Assign, testAssign19) { } -PHP_METHOD(Test_Assign, testAssign20) { +PHP_METHOD(Stub_Assign, testAssign20) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -297,7 +297,7 @@ PHP_METHOD(Test_Assign, testAssign20) { } -PHP_METHOD(Test_Assign, testAssign21) { +PHP_METHOD(Stub_Assign, testAssign21) { zend_long a = 0, b = 0; zval *this_ptr = getThis(); @@ -310,7 +310,7 @@ PHP_METHOD(Test_Assign, testAssign21) { } -PHP_METHOD(Test_Assign, testAssign22) { +PHP_METHOD(Stub_Assign, testAssign22) { double a = 0, b = 0; zval *this_ptr = getThis(); @@ -323,7 +323,7 @@ PHP_METHOD(Test_Assign, testAssign22) { } -PHP_METHOD(Test_Assign, testAssign23) { +PHP_METHOD(Stub_Assign, testAssign23) { zend_bool a = 0, b = 0; zval *this_ptr = getThis(); @@ -336,7 +336,7 @@ PHP_METHOD(Test_Assign, testAssign23) { } -PHP_METHOD(Test_Assign, testAssign24) { +PHP_METHOD(Stub_Assign, testAssign24) { double b = 0; zend_long a = 0; @@ -350,7 +350,7 @@ PHP_METHOD(Test_Assign, testAssign24) { } -PHP_METHOD(Test_Assign, testAssign25) { +PHP_METHOD(Stub_Assign, testAssign25) { double b = 0; zend_long a = 0; @@ -364,7 +364,7 @@ PHP_METHOD(Test_Assign, testAssign25) { } -PHP_METHOD(Test_Assign, testAssign26) { +PHP_METHOD(Stub_Assign, testAssign26) { double a = 0; zend_long b = 0; @@ -378,7 +378,7 @@ PHP_METHOD(Test_Assign, testAssign26) { } -PHP_METHOD(Test_Assign, testAssign27) { +PHP_METHOD(Stub_Assign, testAssign27) { double a = 0; zend_long b = 0; @@ -392,7 +392,7 @@ PHP_METHOD(Test_Assign, testAssign27) { } -PHP_METHOD(Test_Assign, testAssign28) { +PHP_METHOD(Stub_Assign, testAssign28) { zend_bool a = 0; zend_long b = 0; @@ -406,7 +406,7 @@ PHP_METHOD(Test_Assign, testAssign28) { } -PHP_METHOD(Test_Assign, testAssign29) { +PHP_METHOD(Stub_Assign, testAssign29) { zend_bool a = 0; double b = 0; @@ -420,7 +420,7 @@ PHP_METHOD(Test_Assign, testAssign29) { } -PHP_METHOD(Test_Assign, testAssign30) { +PHP_METHOD(Stub_Assign, testAssign30) { zend_long a = 0; zend_bool b = 0; @@ -434,7 +434,7 @@ PHP_METHOD(Test_Assign, testAssign30) { } -PHP_METHOD(Test_Assign, testAssign31) { +PHP_METHOD(Stub_Assign, testAssign31) { double a = 0; zend_bool b = 0; @@ -448,7 +448,7 @@ PHP_METHOD(Test_Assign, testAssign31) { } -PHP_METHOD(Test_Assign, testAssign32) { +PHP_METHOD(Stub_Assign, testAssign32) { zend_bool b = 0, a = 0; zval *this_ptr = getThis(); @@ -461,7 +461,7 @@ PHP_METHOD(Test_Assign, testAssign32) { } -PHP_METHOD(Test_Assign, testAssign33) { +PHP_METHOD(Stub_Assign, testAssign33) { zend_bool b = 0, a = 0; zval *this_ptr = getThis(); @@ -474,7 +474,7 @@ PHP_METHOD(Test_Assign, testAssign33) { } -PHP_METHOD(Test_Assign, testAssign34) { +PHP_METHOD(Stub_Assign, testAssign34) { zend_bool a = 0; zend_long b = 0; @@ -488,7 +488,7 @@ PHP_METHOD(Test_Assign, testAssign34) { } -PHP_METHOD(Test_Assign, testAssign35) { +PHP_METHOD(Stub_Assign, testAssign35) { zend_bool a = 0; double b = 0; @@ -502,7 +502,7 @@ PHP_METHOD(Test_Assign, testAssign35) { } -PHP_METHOD(Test_Assign, testAssign36) { +PHP_METHOD(Stub_Assign, testAssign36) { zend_bool b = 0, a = 0; zval *this_ptr = getThis(); @@ -515,7 +515,7 @@ PHP_METHOD(Test_Assign, testAssign36) { } -PHP_METHOD(Test_Assign, testAssign37) { +PHP_METHOD(Stub_Assign, testAssign37) { zval _1, _4; zval v, arr, _0, _2, _3; @@ -570,7 +570,7 @@ PHP_METHOD(Test_Assign, testAssign37) { } -PHP_METHOD(Test_Assign, testAssign38) { +PHP_METHOD(Stub_Assign, testAssign38) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index, index_sub, arr, _0; @@ -594,7 +594,7 @@ PHP_METHOD(Test_Assign, testAssign38) { } -PHP_METHOD(Test_Assign, testAssign39) { +PHP_METHOD(Stub_Assign, testAssign39) { zval a, b, c; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -620,7 +620,7 @@ PHP_METHOD(Test_Assign, testAssign39) { } -PHP_METHOD(Test_Assign, testAssign40) { +PHP_METHOD(Stub_Assign, testAssign40) { zval a, b; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -647,7 +647,7 @@ PHP_METHOD(Test_Assign, testAssign40) { /** * @link https://github.com/phalcon/zephir/issues/1573 */ -PHP_METHOD(Test_Assign, testAssign41) { +PHP_METHOD(Stub_Assign, testAssign41) { zval *num_param = NULL; zend_long num, a = 0; @@ -668,7 +668,7 @@ PHP_METHOD(Test_Assign, testAssign41) { /** * @link https://github.com/phalcon/zephir/issues/1573 */ -PHP_METHOD(Test_Assign, testAssign42) { +PHP_METHOD(Stub_Assign, testAssign42) { zval *num_param = NULL; zend_long num, a = 0; @@ -686,7 +686,7 @@ PHP_METHOD(Test_Assign, testAssign42) { } -PHP_METHOD(Test_Assign, testAssign43) { +PHP_METHOD(Stub_Assign, testAssign43) { zval *num_param = NULL; zend_long num, a = 0; @@ -704,7 +704,7 @@ PHP_METHOD(Test_Assign, testAssign43) { } -PHP_METHOD(Test_Assign, testAssign44) { +PHP_METHOD(Stub_Assign, testAssign44) { zval *num_param = NULL; zend_long num, a = 0; @@ -722,7 +722,7 @@ PHP_METHOD(Test_Assign, testAssign44) { } -PHP_METHOD(Test_Assign, testPropertyAssign1) { +PHP_METHOD(Stub_Assign, testPropertyAssign1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, __$true, __$false, _0, _1; @@ -767,7 +767,7 @@ PHP_METHOD(Test_Assign, testPropertyAssign1) { } -PHP_METHOD(Test_Assign, testPropertyAssign2) { +PHP_METHOD(Stub_Assign, testPropertyAssign2) { zval f; char e; @@ -814,7 +814,7 @@ PHP_METHOD(Test_Assign, testPropertyAssign2) { } -PHP_METHOD(Test_Assign, testPropertyIncr1) { +PHP_METHOD(Stub_Assign, testPropertyIncr1) { zval _0; zval *this_ptr = getThis(); @@ -830,7 +830,7 @@ PHP_METHOD(Test_Assign, testPropertyIncr1) { } -PHP_METHOD(Test_Assign, testPropertyAddAssign1) { +PHP_METHOD(Stub_Assign, testPropertyAddAssign1) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -846,14 +846,14 @@ PHP_METHOD(Test_Assign, testPropertyAddAssign1) { zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_LONG(&_1, 2); - zephir_read_property(&_0, this_ptr, SL("testVar"), PH_NOISY_CC); + zephir_read_property(&_0, this_ptr, ZEND_STRL("testVar"), PH_NOISY_CC); ZEPHIR_ADD_ASSIGN(&_0, &_1) zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_0); RETURN_MM_MEMBER(getThis(), "testVar"); } -PHP_METHOD(Test_Assign, testPropertyAddAssign2) { +PHP_METHOD(Stub_Assign, testPropertyAddAssign2) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -869,14 +869,14 @@ PHP_METHOD(Test_Assign, testPropertyAddAssign2) { zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_LONG(&_1, 2); - zephir_read_property(&_0, this_ptr, SL("testVar"), PH_NOISY_CC); + zephir_read_property(&_0, this_ptr, ZEND_STRL("testVar"), PH_NOISY_CC); ZEPHIR_ADD_ASSIGN(&_0, &_1) zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_0); RETURN_MM_MEMBER(getThis(), "testVar"); } -PHP_METHOD(Test_Assign, testPropertyAssignValuePlus1) { +PHP_METHOD(Stub_Assign, testPropertyAssignValuePlus1) { zval _0, _1; zval *this_ptr = getThis(); @@ -888,7 +888,7 @@ PHP_METHOD(Test_Assign, testPropertyAssignValuePlus1) { ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, 1); zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_0); - zephir_read_property(&_0, this_ptr, SL("testVar"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("testVar"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(&_1, (zephir_get_numberval(&_0) + 1)); zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_1); @@ -896,7 +896,7 @@ PHP_METHOD(Test_Assign, testPropertyAssignValuePlus1) { } -PHP_METHOD(Test_Assign, testPropertyDecr) { +PHP_METHOD(Stub_Assign, testPropertyDecr) { zval _0; zval *this_ptr = getThis(); @@ -912,7 +912,7 @@ PHP_METHOD(Test_Assign, testPropertyDecr) { } -PHP_METHOD(Test_Assign, testPropertySubAssign1) { +PHP_METHOD(Stub_Assign, testPropertySubAssign1) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -928,14 +928,14 @@ PHP_METHOD(Test_Assign, testPropertySubAssign1) { zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_LONG(&_1, 2); - zephir_read_property(&_0, this_ptr, SL("testVar"), PH_NOISY_CC); + zephir_read_property(&_0, this_ptr, ZEND_STRL("testVar"), PH_NOISY_CC); ZEPHIR_SUB_ASSIGN(&_0, &_1) zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_0); RETURN_MM_MEMBER(getThis(), "testVar"); } -PHP_METHOD(Test_Assign, testPropertySubAssign2) { +PHP_METHOD(Stub_Assign, testPropertySubAssign2) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -951,14 +951,14 @@ PHP_METHOD(Test_Assign, testPropertySubAssign2) { zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_LONG(&_1, 2); - zephir_read_property(&_0, this_ptr, SL("testVar"), PH_NOISY_CC); + zephir_read_property(&_0, this_ptr, ZEND_STRL("testVar"), PH_NOISY_CC); ZEPHIR_SUB_ASSIGN(&_0, &_1) zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_0); RETURN_MM_MEMBER(getThis(), "testVar"); } -PHP_METHOD(Test_Assign, testPropertyMulAssign1) { +PHP_METHOD(Stub_Assign, testPropertyMulAssign1) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -974,14 +974,14 @@ PHP_METHOD(Test_Assign, testPropertyMulAssign1) { zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_LONG(&_1, 2); - zephir_read_property(&_0, this_ptr, SL("testVar"), PH_NOISY_CC); + zephir_read_property(&_0, this_ptr, ZEND_STRL("testVar"), PH_NOISY_CC); ZEPHIR_MUL_ASSIGN(&_0, &_1) zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_0); RETURN_MM_MEMBER(getThis(), "testVar"); } -PHP_METHOD(Test_Assign, testPropertyMulAssign2) { +PHP_METHOD(Stub_Assign, testPropertyMulAssign2) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -997,14 +997,14 @@ PHP_METHOD(Test_Assign, testPropertyMulAssign2) { zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_LONG(&_1, 3); - zephir_read_property(&_0, this_ptr, SL("testVar"), PH_NOISY_CC); + zephir_read_property(&_0, this_ptr, ZEND_STRL("testVar"), PH_NOISY_CC); ZEPHIR_MUL_ASSIGN(&_0, &_1) zephir_update_property_zval(this_ptr, ZEND_STRL("testVar"), &_0); RETURN_MM_MEMBER(getThis(), "testVar"); } -PHP_METHOD(Test_Assign, testPropertyAssignStringConcat) { +PHP_METHOD(Stub_Assign, testPropertyAssignStringConcat) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1024,7 +1024,7 @@ PHP_METHOD(Test_Assign, testPropertyAssignStringConcat) { } -PHP_METHOD(Test_Assign, testPropertyArray1) { +PHP_METHOD(Stub_Assign, testPropertyArray1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, __$true, __$false, _0, _1, _2; @@ -1073,7 +1073,7 @@ PHP_METHOD(Test_Assign, testPropertyArray1) { } -PHP_METHOD(Test_Assign, testPropertyArray2) { +PHP_METHOD(Stub_Assign, testPropertyArray2) { zval f; char e; @@ -1120,7 +1120,7 @@ PHP_METHOD(Test_Assign, testPropertyArray2) { } -PHP_METHOD(Test_Assign, testPropertyArray3) { +PHP_METHOD(Stub_Assign, testPropertyArray3) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, __$false, __$true, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11; @@ -1180,7 +1180,7 @@ PHP_METHOD(Test_Assign, testPropertyArray3) { } -PHP_METHOD(Test_Assign, testPropertyArray4) { +PHP_METHOD(Stub_Assign, testPropertyArray4) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index, index_sub, __$null, __$false, __$true, _0, _1, _2, _3, _4; @@ -1223,7 +1223,7 @@ PHP_METHOD(Test_Assign, testPropertyArray4) { } -PHP_METHOD(Test_Assign, testPropertyArray5) { +PHP_METHOD(Stub_Assign, testPropertyArray5) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index_param = NULL, __$null, __$false, __$true, _0, _1, _2, _3, _4; @@ -1268,7 +1268,7 @@ PHP_METHOD(Test_Assign, testPropertyArray5) { } -PHP_METHOD(Test_Assign, testPropertyArray6) { +PHP_METHOD(Stub_Assign, testPropertyArray6) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, __$false, __$true, _0, _1; @@ -1307,7 +1307,7 @@ PHP_METHOD(Test_Assign, testPropertyArray6) { } -PHP_METHOD(Test_Assign, testPropertyArray7) { +PHP_METHOD(Stub_Assign, testPropertyArray7) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, __$false, __$true, _0, _1; @@ -1346,7 +1346,7 @@ PHP_METHOD(Test_Assign, testPropertyArray7) { } -PHP_METHOD(Test_Assign, testPropertyArray8) { +PHP_METHOD(Stub_Assign, testPropertyArray8) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index, index_sub, __$null, __$false, __$true, _0, _1; @@ -1389,7 +1389,7 @@ PHP_METHOD(Test_Assign, testPropertyArray8) { } -PHP_METHOD(Test_Assign, testPropertyArray9) { +PHP_METHOD(Stub_Assign, testPropertyArray9) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index_param = NULL, __$null, __$false, __$true, _0, _1; @@ -1433,7 +1433,7 @@ PHP_METHOD(Test_Assign, testPropertyArray9) { } -PHP_METHOD(Test_Assign, testPropertyArray10) { +PHP_METHOD(Stub_Assign, testPropertyArray10) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index_param = NULL, __$null, __$false, __$true, _0, _1; @@ -1478,7 +1478,7 @@ PHP_METHOD(Test_Assign, testPropertyArray10) { } -PHP_METHOD(Test_Assign, testPropertyArray11) { +PHP_METHOD(Stub_Assign, testPropertyArray11) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index, index_sub, __$null, __$false, __$true, _0, _1, _2, _3, _4; @@ -1521,7 +1521,7 @@ PHP_METHOD(Test_Assign, testPropertyArray11) { } -PHP_METHOD(Test_Assign, testPropertyArray12) { +PHP_METHOD(Stub_Assign, testPropertyArray12) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index, index_sub, __$null, __$false, __$true, temp1, temp2, temp3, _0, _1, _2, _3, _4, _5, _6; @@ -1555,11 +1555,11 @@ PHP_METHOD(Test_Assign, testPropertyArray12) { zephir_update_property_array_multi(this_ptr, SL("myArray"), &_1, SL("zza"), 3, index, index); zephir_update_property_array_multi(this_ptr, SL("myArray"), &__$null, SL("zza"), 3, index, index); zephir_update_property_array_multi(this_ptr, SL("myArray"), &__$false, SL("zza"), 3, index, index); - zephir_read_property(&_2, this_ptr, SL("myArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_2, this_ptr, ZEND_STRL("myArray"), PH_NOISY_CC | PH_READONLY); ZEPHIR_OBS_VAR(&temp1); - zephir_array_fetch(&temp1, &_2, index, PH_NOISY, "test/assign.zep", 657); + zephir_array_fetch(&temp1, &_2, index, PH_NOISY, "stub/assign.zep", 657); ZEPHIR_OBS_VAR(&temp2); - zephir_read_property(&temp2, this_ptr, SL("myArray"), PH_NOISY_CC); + zephir_read_property(&temp2, this_ptr, ZEND_STRL("myArray"), PH_NOISY_CC); zephir_update_property_array_multi(this_ptr, SL("myArray"), &__$true, SL("zza"), 3, index, index); ZEPHIR_INIT_VAR(&_3); ZVAL_LONG(&_3, 'A'); @@ -1570,14 +1570,14 @@ PHP_METHOD(Test_Assign, testPropertyArray12) { ZEPHIR_INIT_VAR(&_5); array_init(&_5); zephir_update_property_array_multi(this_ptr, SL("myArray"), &_5, SL("zza"), 3, index, index); - zephir_read_property(&_6, this_ptr, SL("myArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_6, this_ptr, ZEND_STRL("myArray"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&temp3); ZVAL_LONG(&temp3, zephir_fast_count_int(&_6)); RETURN_MM_MEMBER(getThis(), "myArray"); } -PHP_METHOD(Test_Assign, testPropertyArray13) { +PHP_METHOD(Stub_Assign, testPropertyArray13) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index, index_sub, __$null, __$false, __$true, temp1, temp2, temp3, _0, _1, _2, _3, _4, _5, _6; @@ -1611,11 +1611,11 @@ PHP_METHOD(Test_Assign, testPropertyArray13) { zephir_update_property_array_multi(this_ptr, SL("myArray"), &_1, SL("za"), 2, index); zephir_update_property_array_multi(this_ptr, SL("myArray"), &__$null, SL("za"), 2, index); zephir_update_property_array_multi(this_ptr, SL("myArray"), &__$false, SL("za"), 2, index); - zephir_read_property(&_2, this_ptr, SL("myArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_2, this_ptr, ZEND_STRL("myArray"), PH_NOISY_CC | PH_READONLY); ZEPHIR_OBS_VAR(&temp1); - zephir_array_fetch(&temp1, &_2, index, PH_NOISY, "test/assign.zep", 674); + zephir_array_fetch(&temp1, &_2, index, PH_NOISY, "stub/assign.zep", 674); ZEPHIR_OBS_VAR(&temp2); - zephir_read_property(&temp2, this_ptr, SL("myArray"), PH_NOISY_CC); + zephir_read_property(&temp2, this_ptr, ZEND_STRL("myArray"), PH_NOISY_CC); zephir_update_property_array_multi(this_ptr, SL("myArray"), &__$true, SL("za"), 2, index); ZEPHIR_INIT_VAR(&_3); ZVAL_LONG(&_3, 'A'); @@ -1626,14 +1626,14 @@ PHP_METHOD(Test_Assign, testPropertyArray13) { ZEPHIR_INIT_VAR(&_5); array_init(&_5); zephir_update_property_array_multi(this_ptr, SL("myArray"), &_5, SL("za"), 2, index); - zephir_read_property(&_6, this_ptr, SL("myArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_6, this_ptr, ZEND_STRL("myArray"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&temp3); ZVAL_LONG(&temp3, zephir_fast_count_int(&_6)); RETURN_MM_MEMBER(getThis(), "myArray"); } -PHP_METHOD(Test_Assign, testPropertyArray14) { +PHP_METHOD(Stub_Assign, testPropertyArray14) { zval _0, _1, _3; zval v, _2, _4, _5, _6; @@ -1688,7 +1688,7 @@ PHP_METHOD(Test_Assign, testPropertyArray14) { } -PHP_METHOD(Test_Assign, testStaticPropertyAssign1) { +PHP_METHOD(Stub_Assign, testStaticPropertyAssign1) { zval _2; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1707,23 +1707,23 @@ PHP_METHOD(Test_Assign, testStaticPropertyAssign1) { ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, 1); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_DOUBLE(&_0, 1.5); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &__$null); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &__$false); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &__$true); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &__$null); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &__$false); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &__$true); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, 'A'); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_ZVAL_NREF(_0); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "hello"); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_VAR(&_1); array_init(&_1); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_1); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_1); ZEPHIR_INIT_VAR(&_2); zephir_create_array(&_2, 3, 0); ZEPHIR_INIT_VAR(&_3); @@ -1735,13 +1735,13 @@ PHP_METHOD(Test_Assign, testStaticPropertyAssign1) { ZEPHIR_INIT_NVAR(&_3); ZVAL_LONG(&_3, 3); zephir_array_fast_append(&_2, &_3); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_2); - zephir_read_static_property_ce(&_0, test_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_2); + zephir_read_static_property_ce(&_0, stub_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_0); } -PHP_METHOD(Test_Assign, testStaticPropertyAssign2) { +PHP_METHOD(Stub_Assign, testStaticPropertyAssign2) { zval f; char e; @@ -1768,24 +1768,24 @@ PHP_METHOD(Test_Assign, testStaticPropertyAssign2) { array_init(&f); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, a); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_DOUBLE(&_0, b); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &c); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &c); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_BOOL(&_0, d); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, e); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &f); - zephir_read_static_property_ce(&_0, test_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &f); + zephir_read_static_property_ce(&_0, stub_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_0); } -PHP_METHOD(Test_Assign, testStaticPropertyArray1) { +PHP_METHOD(Stub_Assign, testStaticPropertyArray1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, __$false, __$true, _0, _1, _2; @@ -1802,31 +1802,31 @@ PHP_METHOD(Test_Assign, testStaticPropertyArray1) { ZEPHIR_INIT_VAR(&_0); array_init(&_0); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_LONG(&_1, 1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("l"), 1, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("l"), 1, 0); ZEPHIR_INIT_NVAR(&_1); ZVAL_DOUBLE(&_1, 1.5); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("l"), 1, 0); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$null, SL("l"), 1, 0); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$false, SL("l"), 1, 0); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$true, SL("l"), 1, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("l"), 1, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$null, SL("l"), 1, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$false, SL("l"), 1, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$true, SL("l"), 1, 0); ZEPHIR_INIT_NVAR(&_1); ZVAL_LONG(&_1, 'A'); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("l"), 1, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("l"), 1, 0); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "hello"); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("l"), 1, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("l"), 1, 0); ZEPHIR_INIT_NVAR(&_1); array_init(&_1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("l"), 1, 0); - zephir_read_static_property_ce(&_2, test_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("l"), 1, 0); + zephir_read_static_property_ce(&_2, stub_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_2); } -PHP_METHOD(Test_Assign, testStaticPropertyArray2) { +PHP_METHOD(Stub_Assign, testStaticPropertyArray2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, __$false, __$true, _0, _1, _2; @@ -1843,31 +1843,31 @@ PHP_METHOD(Test_Assign, testStaticPropertyArray2) { ZEPHIR_INIT_VAR(&_0); array_init(&_0); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_LONG(&_1, 1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("s"), 2, SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("s"), 2, SL("hello")); ZEPHIR_INIT_NVAR(&_1); ZVAL_DOUBLE(&_1, 1.5); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("s"), 2, SL("hello")); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$null, SL("s"), 2, SL("hello")); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$false, SL("s"), 2, SL("hello")); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$true, SL("s"), 2, SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("s"), 2, SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$null, SL("s"), 2, SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$false, SL("s"), 2, SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$true, SL("s"), 2, SL("hello")); ZEPHIR_INIT_NVAR(&_1); ZVAL_LONG(&_1, 'A'); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("s"), 2, SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("s"), 2, SL("hello")); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "hello"); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("s"), 2, SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("s"), 2, SL("hello")); ZEPHIR_INIT_NVAR(&_1); array_init(&_1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("s"), 2, SL("hello")); - zephir_read_static_property_ce(&_2, test_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("s"), 2, SL("hello")); + zephir_read_static_property_ce(&_2, stub_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_2); } -PHP_METHOD(Test_Assign, testStaticPropertyArray3) { +PHP_METHOD(Stub_Assign, testStaticPropertyArray3) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index, index_sub, __$null, __$false, __$true, _0, _1, _2; @@ -1888,31 +1888,31 @@ PHP_METHOD(Test_Assign, testStaticPropertyArray3) { ZEPHIR_INIT_VAR(&_0); array_init(&_0); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_LONG(&_1, 1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("z"), 1, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("z"), 1, index); ZEPHIR_INIT_NVAR(&_1); ZVAL_DOUBLE(&_1, 1.5); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("z"), 1, index); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$null, SL("z"), 1, index); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$false, SL("z"), 1, index); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$true, SL("z"), 1, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("z"), 1, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$null, SL("z"), 1, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$false, SL("z"), 1, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$true, SL("z"), 1, index); ZEPHIR_INIT_NVAR(&_1); ZVAL_LONG(&_1, 'A'); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("z"), 1, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("z"), 1, index); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "hello"); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("z"), 1, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("z"), 1, index); ZEPHIR_INIT_NVAR(&_1); array_init(&_1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("z"), 1, index); - zephir_read_static_property_ce(&_2, test_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("z"), 1, index); + zephir_read_static_property_ce(&_2, stub_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_2); } -PHP_METHOD(Test_Assign, testStaticPropertyArrayAppend) { +PHP_METHOD(Stub_Assign, testStaticPropertyArrayAppend) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$false, _0, _1, _2; @@ -1927,26 +1927,26 @@ PHP_METHOD(Test_Assign, testStaticPropertyArrayAppend) { ZEPHIR_INIT_VAR(&_0); array_init(&_0); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "test"); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("a"), 1); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("a"), 1); ZEPHIR_INIT_NVAR(&_1); ZVAL_LONG(&_1, 1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("a"), 1); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("a"), 1); ZEPHIR_INIT_NVAR(&_1); ZVAL_DOUBLE(&_1, 1.5); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("a"), 1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$false, SL("a"), 1); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("a"), 1); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$false, SL("a"), 1); ZEPHIR_INIT_NVAR(&_1); array_init(&_1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("a"), 1); - zephir_read_static_property_ce(&_2, test_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("a"), 1); + zephir_read_static_property_ce(&_2, stub_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_2); } -PHP_METHOD(Test_Assign, testStaticPropertyArrayMutli1) { +PHP_METHOD(Stub_Assign, testStaticPropertyArrayMutli1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, __$false, __$true, _0, _1, _2; @@ -1963,31 +1963,31 @@ PHP_METHOD(Test_Assign, testStaticPropertyArrayMutli1) { ZEPHIR_INIT_VAR(&_0); array_init(&_0); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_LONG(&_1, 1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("ll"), 2, 0, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("ll"), 2, 0, 0); ZEPHIR_INIT_NVAR(&_1); ZVAL_DOUBLE(&_1, 1.5); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("ll"), 2, 0, 0); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$null, SL("ll"), 2, 0, 0); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$false, SL("ll"), 2, 0, 0); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$true, SL("ll"), 2, 0, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("ll"), 2, 0, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$null, SL("ll"), 2, 0, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$false, SL("ll"), 2, 0, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$true, SL("ll"), 2, 0, 0); ZEPHIR_INIT_NVAR(&_1); ZVAL_LONG(&_1, 'A'); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("ll"), 2, 0, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("ll"), 2, 0, 0); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "hello"); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("ll"), 2, 0, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("ll"), 2, 0, 0); ZEPHIR_INIT_NVAR(&_1); array_init(&_1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("ll"), 2, 0, 0); - zephir_read_static_property_ce(&_2, test_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("ll"), 2, 0, 0); + zephir_read_static_property_ce(&_2, stub_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_2); } -PHP_METHOD(Test_Assign, testStaticPropertyArrayMutli2) { +PHP_METHOD(Stub_Assign, testStaticPropertyArrayMutli2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, __$false, __$true, _0, _1, _2; @@ -2004,31 +2004,31 @@ PHP_METHOD(Test_Assign, testStaticPropertyArrayMutli2) { ZEPHIR_INIT_VAR(&_0); array_init(&_0); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_LONG(&_1, 1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("ss"), 4, SL("hello"), SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("ss"), 4, SL("hello"), SL("hello")); ZEPHIR_INIT_NVAR(&_1); ZVAL_DOUBLE(&_1, 1.5); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("ss"), 4, SL("hello"), SL("hello")); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$null, SL("ss"), 4, SL("hello"), SL("hello")); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$false, SL("ss"), 4, SL("hello"), SL("hello")); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$true, SL("ss"), 4, SL("hello"), SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("ss"), 4, SL("hello"), SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$null, SL("ss"), 4, SL("hello"), SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$false, SL("ss"), 4, SL("hello"), SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$true, SL("ss"), 4, SL("hello"), SL("hello")); ZEPHIR_INIT_NVAR(&_1); ZVAL_LONG(&_1, 'A'); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("ss"), 4, SL("hello"), SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("ss"), 4, SL("hello"), SL("hello")); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "hello"); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("ss"), 4, SL("hello"), SL("hello")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("ss"), 4, SL("hello"), SL("hello")); ZEPHIR_INIT_NVAR(&_1); array_init(&_1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("ss"), 4, SL("hello"), SL("hello")); - zephir_read_static_property_ce(&_2, test_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("ss"), 4, SL("hello"), SL("hello")); + zephir_read_static_property_ce(&_2, stub_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_2); } -PHP_METHOD(Test_Assign, testStaticPropertyArrayMutli3) { +PHP_METHOD(Stub_Assign, testStaticPropertyArrayMutli3) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index, index_sub, __$null, __$false, __$true, _0, _1, _2; @@ -2049,31 +2049,31 @@ PHP_METHOD(Test_Assign, testStaticPropertyArrayMutli3) { ZEPHIR_INIT_VAR(&_0); array_init(&_0); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_LONG(&_1, 1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("zz"), 2, index, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("zz"), 2, index, index); ZEPHIR_INIT_NVAR(&_1); ZVAL_DOUBLE(&_1, 1.5); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("zz"), 2, index, index); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$null, SL("zz"), 2, index, index); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$false, SL("zz"), 2, index, index); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$true, SL("zz"), 2, index, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("zz"), 2, index, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$null, SL("zz"), 2, index, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$false, SL("zz"), 2, index, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$true, SL("zz"), 2, index, index); ZEPHIR_INIT_NVAR(&_1); ZVAL_LONG(&_1, 'A'); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("zz"), 2, index, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("zz"), 2, index, index); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "hello"); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("zz"), 2, index, index); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("zz"), 2, index, index); ZEPHIR_INIT_NVAR(&_1); array_init(&_1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("zz"), 2, index, index); - zephir_read_static_property_ce(&_2, test_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("zz"), 2, index, index); + zephir_read_static_property_ce(&_2, stub_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_2); } -PHP_METHOD(Test_Assign, testStaticPropertyArrayMulti4) { +PHP_METHOD(Stub_Assign, testStaticPropertyArrayMulti4) { zval _0, _1, _3; zval v, _2, _4; @@ -2097,33 +2097,33 @@ PHP_METHOD(Test_Assign, testStaticPropertyArrayMulti4) { zephir_create_array(&_1, 1, 0); add_assoc_stringl_ex(&_1, SL("b_key"), SL("b_val")); zephir_array_update_string(&_0, SL("a"), &_1, PH_COPY | PH_SEPARATE); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "d_val"); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_2, SL("sss"), 6, SL("a"), SL("b"), SL("d_key")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_2, SL("sss"), 6, SL("a"), SL("b"), SL("d_key")); ZEPHIR_INIT_NVAR(&_1); zephir_create_array(&_1, 1, 0); ZEPHIR_INIT_VAR(&_3); zephir_create_array(&_3, 1, 0); add_index_long(&_3, 3, 4); zephir_array_update_long(&_1, 2, &_3, PH_COPY ZEPHIR_DEBUG_PARAMS_DUMMY); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("l"), 1, 1); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("l"), 1, 1); ZEPHIR_INIT_NVAR(&_2); ZVAL_LONG(&_2, 1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_2, SL("s"), 2, SL("s")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_2, SL("s"), 2, SL("s")); ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "f"); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_2, SL("sssss"), 10, SL("a"), SL("b"), SL("c"), SL("d"), SL("e")); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_2, SL("sssss"), 10, SL("a"), SL("b"), SL("c"), SL("d"), SL("e")); ZEPHIR_INIT_NVAR(&_2); ZVAL_LONG(&_2, 6); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_2, SL("lll"), 3, 1, 2, 5); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &v, SL("llz"), 3, 1, 2, &v); - zephir_read_static_property_ce(&_4, test_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_2, SL("lll"), 3, 1, 2, 5); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &v, SL("llz"), 3, 1, 2, &v); + zephir_read_static_property_ce(&_4, stub_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_4); } -PHP_METHOD(Test_Assign, testStaticPropertyArrayAppend1) { +PHP_METHOD(Stub_Assign, testStaticPropertyArrayAppend1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, __$false, __$true, _0, _1, _2; @@ -2140,31 +2140,31 @@ PHP_METHOD(Test_Assign, testStaticPropertyArrayAppend1) { ZEPHIR_INIT_VAR(&_0); array_init(&_0); - zephir_update_static_property_ce(test_assign_ce, ZEND_STRL("testVarStatic"), &_0); + zephir_update_static_property_ce(stub_assign_ce, ZEND_STRL("testVarStatic"), &_0); ZEPHIR_INIT_VAR(&_1); ZVAL_LONG(&_1, 1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("la"), 2, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("la"), 2, 0); ZEPHIR_INIT_NVAR(&_1); ZVAL_DOUBLE(&_1, 1.5); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("la"), 2, 0); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$null, SL("la"), 2, 0); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$false, SL("la"), 2, 0); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &__$true, SL("la"), 2, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("la"), 2, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$null, SL("la"), 2, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$false, SL("la"), 2, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &__$true, SL("la"), 2, 0); ZEPHIR_INIT_NVAR(&_1); ZVAL_LONG(&_1, 'A'); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("la"), 2, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("la"), 2, 0); ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "hello"); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("la"), 2, 0); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("la"), 2, 0); ZEPHIR_INIT_NVAR(&_1); array_init(&_1); - zephir_update_static_property_array_multi_ce(test_assign_ce, SL("testVarStatic"), &_1, SL("la"), 2, 0); - zephir_read_static_property_ce(&_2, test_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); + zephir_update_static_property_array_multi_ce(stub_assign_ce, SL("testVarStatic"), &_1, SL("la"), 2, 0); + zephir_read_static_property_ce(&_2, stub_assign_ce, SL("testVarStatic"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_2); } -PHP_METHOD(Test_Assign, testArrayVarAssign1) { +PHP_METHOD(Stub_Assign, testArrayVarAssign1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index, index_sub, *value, value_sub, a; @@ -2186,7 +2186,7 @@ PHP_METHOD(Test_Assign, testArrayVarAssign1) { } -PHP_METHOD(Test_Assign, testArrayVarAssign2) { +PHP_METHOD(Stub_Assign, testArrayVarAssign2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index, index_sub, *value, value_sub, _POST; @@ -2208,7 +2208,7 @@ PHP_METHOD(Test_Assign, testArrayVarAssign2) { } -PHP_METHOD(Test_Assign, testArrayProperty) { +PHP_METHOD(Stub_Assign, testArrayProperty) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index, index_sub, *value, value_sub, _POST; @@ -2233,7 +2233,7 @@ PHP_METHOD(Test_Assign, testArrayProperty) { /** * @link https://github.com/phalcon/zephir/issues/159 */ -PHP_METHOD(Test_Assign, testGlobalVarAssign) { +PHP_METHOD(Stub_Assign, testGlobalVarAssign) { zval *index, index_sub, *value, value_sub, _POST; zval *this_ptr = getThis(); @@ -2254,7 +2254,7 @@ PHP_METHOD(Test_Assign, testGlobalVarAssign) { /** * @link https://github.com/phalcon/zephir/issues/523 */ -PHP_METHOD(Test_Assign, testConstantKeyAssign) { +PHP_METHOD(Stub_Assign, testConstantKeyAssign) { zval elements; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -2277,7 +2277,7 @@ PHP_METHOD(Test_Assign, testConstantKeyAssign) { * @link https://github.com/phalcon/zephir/issues/746 * */ -PHP_METHOD(Test_Assign, testArrayBoolExpressionAssign) { +PHP_METHOD(Stub_Assign, testArrayBoolExpressionAssign) { zval str, _0, _1, _2, _3, _4; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -2314,7 +2314,7 @@ PHP_METHOD(Test_Assign, testArrayBoolExpressionAssign) { /** * @link https://github.com/phalcon/zephir/issues/725 */ -PHP_METHOD(Test_Assign, testAssignSuperGlobals) { +PHP_METHOD(Stub_Assign, testAssignSuperGlobals) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval _GET, v, _0, _1, _2, _3; @@ -2352,7 +2352,7 @@ PHP_METHOD(Test_Assign, testAssignSuperGlobals) { /** * @link https://github.com/phalcon/zephir/issues/1917 */ -PHP_METHOD(Test_Assign, testAssignSuperGlobalsSERVER) { +PHP_METHOD(Stub_Assign, testAssignSuperGlobalsSERVER) { zval _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -2380,7 +2380,7 @@ PHP_METHOD(Test_Assign, testAssignSuperGlobalsSERVER) { /** * @link https://github.com/phalcon/zephir/issues/1917 */ -PHP_METHOD(Test_Assign, testAssignSuperGlobalsGET) { +PHP_METHOD(Stub_Assign, testAssignSuperGlobalsGET) { zval _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/assign.zep.h b/ext/stub/assign.zep.h new file mode 100644 index 0000000000..4bdc438f85 --- /dev/null +++ b/ext/stub/assign.zep.h @@ -0,0 +1,594 @@ + +extern zend_class_entry *stub_assign_ce; + +ZEPHIR_INIT_CLASS(Stub_Assign); + +PHP_METHOD(Stub_Assign, getTestVar); +PHP_METHOD(Stub_Assign, getMyArray); +PHP_METHOD(Stub_Assign, testAssign1); +PHP_METHOD(Stub_Assign, testAssign2); +PHP_METHOD(Stub_Assign, testAssign3); +PHP_METHOD(Stub_Assign, testAssign4); +PHP_METHOD(Stub_Assign, testAssign5); +PHP_METHOD(Stub_Assign, testAssign6); +PHP_METHOD(Stub_Assign, testAssign7); +PHP_METHOD(Stub_Assign, testAssign8); +PHP_METHOD(Stub_Assign, testAssign9); +PHP_METHOD(Stub_Assign, testAssign10); +PHP_METHOD(Stub_Assign, testAssign11); +PHP_METHOD(Stub_Assign, testAssign12); +PHP_METHOD(Stub_Assign, testAssign13); +PHP_METHOD(Stub_Assign, testAssign14); +PHP_METHOD(Stub_Assign, testAssign15); +PHP_METHOD(Stub_Assign, testAssign16); +PHP_METHOD(Stub_Assign, testAssign17); +PHP_METHOD(Stub_Assign, testAssign18); +PHP_METHOD(Stub_Assign, testAssign19); +PHP_METHOD(Stub_Assign, testAssign20); +PHP_METHOD(Stub_Assign, testAssign21); +PHP_METHOD(Stub_Assign, testAssign22); +PHP_METHOD(Stub_Assign, testAssign23); +PHP_METHOD(Stub_Assign, testAssign24); +PHP_METHOD(Stub_Assign, testAssign25); +PHP_METHOD(Stub_Assign, testAssign26); +PHP_METHOD(Stub_Assign, testAssign27); +PHP_METHOD(Stub_Assign, testAssign28); +PHP_METHOD(Stub_Assign, testAssign29); +PHP_METHOD(Stub_Assign, testAssign30); +PHP_METHOD(Stub_Assign, testAssign31); +PHP_METHOD(Stub_Assign, testAssign32); +PHP_METHOD(Stub_Assign, testAssign33); +PHP_METHOD(Stub_Assign, testAssign34); +PHP_METHOD(Stub_Assign, testAssign35); +PHP_METHOD(Stub_Assign, testAssign36); +PHP_METHOD(Stub_Assign, testAssign37); +PHP_METHOD(Stub_Assign, testAssign38); +PHP_METHOD(Stub_Assign, testAssign39); +PHP_METHOD(Stub_Assign, testAssign40); +PHP_METHOD(Stub_Assign, testAssign41); +PHP_METHOD(Stub_Assign, testAssign42); +PHP_METHOD(Stub_Assign, testAssign43); +PHP_METHOD(Stub_Assign, testAssign44); +PHP_METHOD(Stub_Assign, testPropertyAssign1); +PHP_METHOD(Stub_Assign, testPropertyAssign2); +PHP_METHOD(Stub_Assign, testPropertyIncr1); +PHP_METHOD(Stub_Assign, testPropertyAddAssign1); +PHP_METHOD(Stub_Assign, testPropertyAddAssign2); +PHP_METHOD(Stub_Assign, testPropertyAssignValuePlus1); +PHP_METHOD(Stub_Assign, testPropertyDecr); +PHP_METHOD(Stub_Assign, testPropertySubAssign1); +PHP_METHOD(Stub_Assign, testPropertySubAssign2); +PHP_METHOD(Stub_Assign, testPropertyMulAssign1); +PHP_METHOD(Stub_Assign, testPropertyMulAssign2); +PHP_METHOD(Stub_Assign, testPropertyAssignStringConcat); +PHP_METHOD(Stub_Assign, testPropertyArray1); +PHP_METHOD(Stub_Assign, testPropertyArray2); +PHP_METHOD(Stub_Assign, testPropertyArray3); +PHP_METHOD(Stub_Assign, testPropertyArray4); +PHP_METHOD(Stub_Assign, testPropertyArray5); +PHP_METHOD(Stub_Assign, testPropertyArray6); +PHP_METHOD(Stub_Assign, testPropertyArray7); +PHP_METHOD(Stub_Assign, testPropertyArray8); +PHP_METHOD(Stub_Assign, testPropertyArray9); +PHP_METHOD(Stub_Assign, testPropertyArray10); +PHP_METHOD(Stub_Assign, testPropertyArray11); +PHP_METHOD(Stub_Assign, testPropertyArray12); +PHP_METHOD(Stub_Assign, testPropertyArray13); +PHP_METHOD(Stub_Assign, testPropertyArray14); +PHP_METHOD(Stub_Assign, testStaticPropertyAssign1); +PHP_METHOD(Stub_Assign, testStaticPropertyAssign2); +PHP_METHOD(Stub_Assign, testStaticPropertyArray1); +PHP_METHOD(Stub_Assign, testStaticPropertyArray2); +PHP_METHOD(Stub_Assign, testStaticPropertyArray3); +PHP_METHOD(Stub_Assign, testStaticPropertyArrayAppend); +PHP_METHOD(Stub_Assign, testStaticPropertyArrayMutli1); +PHP_METHOD(Stub_Assign, testStaticPropertyArrayMutli2); +PHP_METHOD(Stub_Assign, testStaticPropertyArrayMutli3); +PHP_METHOD(Stub_Assign, testStaticPropertyArrayMulti4); +PHP_METHOD(Stub_Assign, testStaticPropertyArrayAppend1); +PHP_METHOD(Stub_Assign, testArrayVarAssign1); +PHP_METHOD(Stub_Assign, testArrayVarAssign2); +PHP_METHOD(Stub_Assign, testArrayProperty); +PHP_METHOD(Stub_Assign, testGlobalVarAssign); +PHP_METHOD(Stub_Assign, testConstantKeyAssign); +PHP_METHOD(Stub_Assign, testArrayBoolExpressionAssign); +PHP_METHOD(Stub_Assign, testAssignSuperGlobals); +PHP_METHOD(Stub_Assign, testAssignSuperGlobalsSERVER); +PHP_METHOD(Stub_Assign, testAssignSuperGlobalsGET); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign1, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign1, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign2, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign2, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign3, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign3, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign4, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign4, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign5, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign5, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign6, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign6, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign7, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign7, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign8, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign8, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign9, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign9, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign10, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign10, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign11, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign11, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign12, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign12, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign13, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign13, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign14, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign14, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign15, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign15, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign16, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign16, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign17, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign17, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign18, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign18, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign19, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign19, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign20, 0, 0, IS_NULL, 1) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign20, 0, 0, IS_NULL, NULL, 1) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign21, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign21, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign22, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign22, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign23, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign23, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign24, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign24, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign25, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign25, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign26, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign26, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign27, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign27, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign28, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign28, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign29, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign29, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign30, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign30, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign31, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign31, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign32, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign32, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign33, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign33, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign34, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign34, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign35, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign35, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign36, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign36, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign37, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign37, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign38, 0, 1, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign38, 0, 1, IS_ARRAY, NULL, 0) +#endif + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign39, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign39, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign40, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign40, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign41, 0, 1, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign41, 0, 1, IS_LONG, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign42, 0, 1, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign42, 0, 1, IS_LONG, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign43, 0, 1, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign43, 0, 1, IS_LONG, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign44, 0, 1, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_assign_testassign44, 0, 1, IS_LONG, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_testpropertyarray4, 0, 0, 1) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_testpropertyarray5, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, index, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, index) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_testpropertyarray8, 0, 0, 1) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_testpropertyarray9, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, index) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_testpropertyarray10, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, index, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, index) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_testpropertyarray11, 0, 0, 1) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_testpropertyarray12, 0, 0, 1) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_testpropertyarray13, 0, 0, 1) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_teststaticpropertyarray3, 0, 0, 1) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_teststaticpropertyarraymutli3, 0, 0, 1) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_testarrayvarassign1, 0, 0, 2) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_testarrayvarassign2, 0, 0, 2) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_testarrayproperty, 0, 0, 2) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_assign_testglobalvarassign, 0, 0, 2) + ZEND_ARG_INFO(0, index) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_assign_method_entry) { + PHP_ME(Stub_Assign, getTestVar, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, getMyArray, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign1, arginfo_stub_assign_testassign1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign2, arginfo_stub_assign_testassign2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign3, arginfo_stub_assign_testassign3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign4, arginfo_stub_assign_testassign4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign5, arginfo_stub_assign_testassign5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign6, arginfo_stub_assign_testassign6, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign7, arginfo_stub_assign_testassign7, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign8, arginfo_stub_assign_testassign8, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign9, arginfo_stub_assign_testassign9, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign10, arginfo_stub_assign_testassign10, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign11, arginfo_stub_assign_testassign11, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign12, arginfo_stub_assign_testassign12, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign13, arginfo_stub_assign_testassign13, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign14, arginfo_stub_assign_testassign14, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign15, arginfo_stub_assign_testassign15, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign16, arginfo_stub_assign_testassign16, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign17, arginfo_stub_assign_testassign17, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign18, arginfo_stub_assign_testassign18, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign19, arginfo_stub_assign_testassign19, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign20, arginfo_stub_assign_testassign20, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign21, arginfo_stub_assign_testassign21, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign22, arginfo_stub_assign_testassign22, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign23, arginfo_stub_assign_testassign23, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign24, arginfo_stub_assign_testassign24, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign25, arginfo_stub_assign_testassign25, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign26, arginfo_stub_assign_testassign26, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign27, arginfo_stub_assign_testassign27, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign28, arginfo_stub_assign_testassign28, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign29, arginfo_stub_assign_testassign29, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign30, arginfo_stub_assign_testassign30, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign31, arginfo_stub_assign_testassign31, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign32, arginfo_stub_assign_testassign32, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign33, arginfo_stub_assign_testassign33, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign34, arginfo_stub_assign_testassign34, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign35, arginfo_stub_assign_testassign35, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign36, arginfo_stub_assign_testassign36, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign37, arginfo_stub_assign_testassign37, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign38, arginfo_stub_assign_testassign38, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign39, arginfo_stub_assign_testassign39, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign40, arginfo_stub_assign_testassign40, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign41, arginfo_stub_assign_testassign41, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign42, arginfo_stub_assign_testassign42, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign43, arginfo_stub_assign_testassign43, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssign44, arginfo_stub_assign_testassign44, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyAssign1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyAssign2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyIncr1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyAddAssign1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyAddAssign2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyAssignValuePlus1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyDecr, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertySubAssign1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertySubAssign2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyMulAssign1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyMulAssign2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyAssignStringConcat, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray4, arginfo_stub_assign_testpropertyarray4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray5, arginfo_stub_assign_testpropertyarray5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray6, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray7, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray8, arginfo_stub_assign_testpropertyarray8, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray9, arginfo_stub_assign_testpropertyarray9, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray10, arginfo_stub_assign_testpropertyarray10, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray11, arginfo_stub_assign_testpropertyarray11, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray12, arginfo_stub_assign_testpropertyarray12, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray13, arginfo_stub_assign_testpropertyarray13, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testPropertyArray14, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testStaticPropertyAssign1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testStaticPropertyAssign2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testStaticPropertyArray1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testStaticPropertyArray2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testStaticPropertyArray3, arginfo_stub_assign_teststaticpropertyarray3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testStaticPropertyArrayAppend, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testStaticPropertyArrayMutli1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testStaticPropertyArrayMutli2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testStaticPropertyArrayMutli3, arginfo_stub_assign_teststaticpropertyarraymutli3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testStaticPropertyArrayMulti4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testStaticPropertyArrayAppend1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testArrayVarAssign1, arginfo_stub_assign_testarrayvarassign1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testArrayVarAssign2, arginfo_stub_assign_testarrayvarassign2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testArrayProperty, arginfo_stub_assign_testarrayproperty, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testGlobalVarAssign, arginfo_stub_assign_testglobalvarassign, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testConstantKeyAssign, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testArrayBoolExpressionAssign, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssignSuperGlobals, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssignSuperGlobalsSERVER, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Assign, testAssignSuperGlobalsGET, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/bench/foo.zep.c b/ext/stub/bench/foo.zep.c similarity index 87% rename from ext/test/bench/foo.zep.c rename to ext/stub/bench/foo.zep.c index e6abb6dafc..f51e3f4553 100644 --- a/ext/test/bench/foo.zep.c +++ b/ext/stub/bench/foo.zep.c @@ -18,21 +18,21 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_Bench_Foo) { +ZEPHIR_INIT_CLASS(Stub_Bench_Foo) { - ZEPHIR_REGISTER_CLASS(Test\\Bench, Foo, test, bench_foo, test_bench_foo_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Bench, Foo, stub, bench_foo, stub_bench_foo_method_entry, 0); - zend_declare_property_long(test_bench_foo_ce, SL("a"), 0, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_long(stub_bench_foo_ce, SL("a"), 0, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); - zend_declare_property_long(test_bench_foo_ce, SL("b"), 0, ZEND_ACC_PUBLIC); + zend_declare_property_long(stub_bench_foo_ce, SL("b"), 0, ZEND_ACC_PUBLIC); - zephir_declare_class_constant_long(test_bench_foo_ce, SL("TEST"), 0); + zephir_declare_class_constant_long(stub_bench_foo_ce, SL("TEST"), 0); return SUCCESS; } -PHP_METHOD(Test_Bench_Foo, emptyForInRange) { +PHP_METHOD(Stub_Bench_Foo, emptyForInRange) { zend_long _1; zend_bool _0; @@ -70,7 +70,7 @@ PHP_METHOD(Test_Bench_Foo, emptyForInRange) { } -PHP_METHOD(Test_Bench_Foo, readStatic) { +PHP_METHOD(Stub_Bench_Foo, readStatic) { zend_long _1; zend_bool _0; @@ -104,14 +104,14 @@ PHP_METHOD(Test_Bench_Foo, readStatic) { ZEPHIR_INIT_NVAR(&i); ZVAL_LONG(&i, _1); ZEPHIR_OBS_NVAR(&x); - zephir_read_static_property_ce(&x, test_bench_foo_ce, SL("a"), PH_NOISY_CC); + zephir_read_static_property_ce(&x, stub_bench_foo_ce, SL("a"), PH_NOISY_CC); } } ZEPHIR_MM_RESTORE(); } -PHP_METHOD(Test_Bench_Foo, writeStatic) { +PHP_METHOD(Stub_Bench_Foo, writeStatic) { zend_long _1; zend_bool _0; @@ -146,14 +146,14 @@ PHP_METHOD(Test_Bench_Foo, writeStatic) { ZVAL_LONG(&i, _1); ZEPHIR_INIT_ZVAL_NREF(_3$$3); ZVAL_LONG(&_3$$3, 0); - zephir_update_static_property_ce(test_bench_foo_ce, ZEND_STRL("a"), &_3$$3); + zephir_update_static_property_ce(stub_bench_foo_ce, ZEND_STRL("a"), &_3$$3); } } ZEPHIR_MM_RESTORE(); } -PHP_METHOD(Test_Bench_Foo, issetStatic) { +PHP_METHOD(Stub_Bench_Foo, issetStatic) { zend_long _1; zend_bool x = 0, _0; @@ -192,7 +192,7 @@ PHP_METHOD(Test_Bench_Foo, issetStatic) { } -PHP_METHOD(Test_Bench_Foo, emptyStatic) { +PHP_METHOD(Stub_Bench_Foo, emptyStatic) { zend_long _1; zend_bool x = 0, _0; @@ -226,7 +226,7 @@ PHP_METHOD(Test_Bench_Foo, emptyStatic) { ZEPHIR_INIT_NVAR(&i); ZVAL_LONG(&i, _1); ZEPHIR_OBS_NVAR(&_3$$3); - zephir_read_static_property_ce(&_3$$3, test_bench_foo_ce, SL("a"), PH_NOISY_CC); + zephir_read_static_property_ce(&_3$$3, stub_bench_foo_ce, SL("a"), PH_NOISY_CC); x = ZEPHIR_IS_EMPTY(&_3$$3); } } @@ -234,7 +234,7 @@ PHP_METHOD(Test_Bench_Foo, emptyStatic) { } -PHP_METHOD(Test_Bench_Foo, readProp) { +PHP_METHOD(Stub_Bench_Foo, readProp) { zend_long _1; zend_bool _0; @@ -267,14 +267,14 @@ PHP_METHOD(Test_Bench_Foo, readProp) { } ZEPHIR_INIT_NVAR(&i); ZVAL_LONG(&i, _1); - zephir_read_property(&x, this_ptr, SL("b"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&x, this_ptr, ZEND_STRL("b"), PH_NOISY_CC | PH_READONLY); } } ZEPHIR_MM_RESTORE(); } -PHP_METHOD(Test_Bench_Foo, writeProp) { +PHP_METHOD(Stub_Bench_Foo, writeProp) { zend_long _1; zend_bool _0; @@ -316,7 +316,7 @@ PHP_METHOD(Test_Bench_Foo, writeProp) { } -PHP_METHOD(Test_Bench_Foo, assignAddProp) { +PHP_METHOD(Stub_Bench_Foo, assignAddProp) { zend_long _1; zend_bool _0; @@ -352,7 +352,7 @@ PHP_METHOD(Test_Bench_Foo, assignAddProp) { ZVAL_LONG(&i, _1); ZEPHIR_INIT_NVAR(&_4$$3); ZVAL_LONG(&_4$$3, 2); - zephir_read_property(&_3$$3, this_ptr, SL("b"), PH_NOISY_CC); + zephir_read_property(&_3$$3, this_ptr, ZEND_STRL("b"), PH_NOISY_CC); ZEPHIR_ADD_ASSIGN(&_3$$3, &_4$$3) zephir_update_property_zval(this_ptr, ZEND_STRL("b"), &_3$$3); } @@ -377,7 +377,7 @@ PHP_METHOD(Test_Bench_Foo, assignAddProp) { --$this->b; } }*/ -PHP_METHOD(Test_Bench_Foo, postIncProp) { +PHP_METHOD(Stub_Bench_Foo, postIncProp) { zend_long _1; zend_bool _0; @@ -416,7 +416,7 @@ PHP_METHOD(Test_Bench_Foo, postIncProp) { } -PHP_METHOD(Test_Bench_Foo, postDecProp) { +PHP_METHOD(Stub_Bench_Foo, postDecProp) { zend_long _1; zend_bool _0; @@ -455,7 +455,7 @@ PHP_METHOD(Test_Bench_Foo, postDecProp) { } -PHP_METHOD(Test_Bench_Foo, issetProp) { +PHP_METHOD(Stub_Bench_Foo, issetProp) { zend_long _1; zend_bool x = 0, _0; @@ -494,7 +494,7 @@ PHP_METHOD(Test_Bench_Foo, issetProp) { } -PHP_METHOD(Test_Bench_Foo, emptyProp) { +PHP_METHOD(Stub_Bench_Foo, emptyProp) { zend_long _1; zend_bool x = 0, _0; @@ -528,7 +528,7 @@ PHP_METHOD(Test_Bench_Foo, emptyProp) { ZEPHIR_INIT_NVAR(&i); ZVAL_LONG(&i, _1); ZEPHIR_OBS_NVAR(&_3$$3); - zephir_read_property(&_3$$3, this_ptr, SL("b"), PH_NOISY_CC); + zephir_read_property(&_3$$3, this_ptr, ZEND_STRL("b"), PH_NOISY_CC); x = ZEPHIR_IS_EMPTY(&_3$$3); } } @@ -536,7 +536,7 @@ PHP_METHOD(Test_Bench_Foo, emptyProp) { } -PHP_METHOD(Test_Bench_Foo, g) { +PHP_METHOD(Stub_Bench_Foo, g) { zval *this_ptr = getThis(); @@ -544,7 +544,7 @@ PHP_METHOD(Test_Bench_Foo, g) { } -PHP_METHOD(Test_Bench_Foo, call) { +PHP_METHOD(Stub_Bench_Foo, call) { zend_bool _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -585,7 +585,7 @@ PHP_METHOD(Test_Bench_Foo, call) { } -PHP_METHOD(Test_Bench_Foo, staticMethod) { +PHP_METHOD(Stub_Bench_Foo, staticMethod) { zval *this_ptr = getThis(); @@ -593,7 +593,7 @@ PHP_METHOD(Test_Bench_Foo, staticMethod) { } -PHP_METHOD(Test_Bench_Foo, staticMethod1) { +PHP_METHOD(Stub_Bench_Foo, staticMethod1) { zval *this_ptr = getThis(); @@ -602,7 +602,7 @@ PHP_METHOD(Test_Bench_Foo, staticMethod1) { } -PHP_METHOD(Test_Bench_Foo, scall) { +PHP_METHOD(Stub_Bench_Foo, scall) { zend_bool _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -643,7 +643,7 @@ PHP_METHOD(Test_Bench_Foo, scall) { } -PHP_METHOD(Test_Bench_Foo, scallWithReturnTrue) { +PHP_METHOD(Stub_Bench_Foo, scallWithReturnTrue) { zend_bool _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -684,7 +684,7 @@ PHP_METHOD(Test_Bench_Foo, scallWithReturnTrue) { } -PHP_METHOD(Test_Bench_Foo, readConst) { +PHP_METHOD(Stub_Bench_Foo, readConst) { zend_long _1; zend_bool _0; diff --git a/ext/stub/bench/foo.zep.h b/ext/stub/bench/foo.zep.h new file mode 100644 index 0000000000..b81927afec --- /dev/null +++ b/ext/stub/bench/foo.zep.h @@ -0,0 +1,129 @@ + +extern zend_class_entry *stub_bench_foo_ce; + +ZEPHIR_INIT_CLASS(Stub_Bench_Foo); + +PHP_METHOD(Stub_Bench_Foo, emptyForInRange); +PHP_METHOD(Stub_Bench_Foo, readStatic); +PHP_METHOD(Stub_Bench_Foo, writeStatic); +PHP_METHOD(Stub_Bench_Foo, issetStatic); +PHP_METHOD(Stub_Bench_Foo, emptyStatic); +PHP_METHOD(Stub_Bench_Foo, readProp); +PHP_METHOD(Stub_Bench_Foo, writeProp); +PHP_METHOD(Stub_Bench_Foo, assignAddProp); +PHP_METHOD(Stub_Bench_Foo, postIncProp); +PHP_METHOD(Stub_Bench_Foo, postDecProp); +PHP_METHOD(Stub_Bench_Foo, issetProp); +PHP_METHOD(Stub_Bench_Foo, emptyProp); +PHP_METHOD(Stub_Bench_Foo, g); +PHP_METHOD(Stub_Bench_Foo, call); +PHP_METHOD(Stub_Bench_Foo, staticMethod); +PHP_METHOD(Stub_Bench_Foo, staticMethod1); +PHP_METHOD(Stub_Bench_Foo, scall); +PHP_METHOD(Stub_Bench_Foo, scallWithReturnTrue); +PHP_METHOD(Stub_Bench_Foo, readConst); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_emptyforinrange, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_readstatic, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_writestatic, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_issetstatic, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_emptystatic, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_readprop, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_writeprop, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_assignaddprop, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_postincprop, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_postdecprop, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_issetprop, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_emptyprop, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_call, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_bench_foo_staticmethod, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_bench_foo_staticmethod, 0, 0, IS_VOID, NULL, 0) +#endif +ZEND_END_ARG_INFO() +#else +#define arginfo_stub_bench_foo_staticmethod NULL +#endif + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_bench_foo_staticmethod1, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_bench_foo_staticmethod1, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_scall, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_scallwithreturntrue, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bench_foo_readconst, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_bench_foo_method_entry) { + PHP_ME(Stub_Bench_Foo, emptyForInRange, arginfo_stub_bench_foo_emptyforinrange, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Bench_Foo, readStatic, arginfo_stub_bench_foo_readstatic, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Bench_Foo, writeStatic, arginfo_stub_bench_foo_writestatic, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Bench_Foo, issetStatic, arginfo_stub_bench_foo_issetstatic, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Bench_Foo, emptyStatic, arginfo_stub_bench_foo_emptystatic, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Bench_Foo, readProp, arginfo_stub_bench_foo_readprop, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bench_Foo, writeProp, arginfo_stub_bench_foo_writeprop, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bench_Foo, assignAddProp, arginfo_stub_bench_foo_assignaddprop, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bench_Foo, postIncProp, arginfo_stub_bench_foo_postincprop, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bench_Foo, postDecProp, arginfo_stub_bench_foo_postdecprop, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bench_Foo, issetProp, arginfo_stub_bench_foo_issetprop, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bench_Foo, emptyProp, arginfo_stub_bench_foo_emptyprop, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bench_Foo, g, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bench_Foo, call, arginfo_stub_bench_foo_call, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bench_Foo, staticMethod, arginfo_stub_bench_foo_staticmethod, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bench_Foo, staticMethod1, arginfo_stub_bench_foo_staticmethod1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bench_Foo, scall, arginfo_stub_bench_foo_scall, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bench_Foo, scallWithReturnTrue, arginfo_stub_bench_foo_scallwithreturntrue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bench_Foo, readConst, arginfo_stub_bench_foo_readconst, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/bitwise.zep.c b/ext/stub/bitwise.zep.c similarity index 79% rename from ext/test/bitwise.zep.c rename to ext/stub/bitwise.zep.c index bbc74e08e9..5e54a03dcd 100644 --- a/ext/test/bitwise.zep.c +++ b/ext/stub/bitwise.zep.c @@ -21,15 +21,15 @@ /** * Arithmetic operations */ -ZEPHIR_INIT_CLASS(Test_Bitwise) { +ZEPHIR_INIT_CLASS(Stub_Bitwise) { - ZEPHIR_REGISTER_CLASS(Test, Bitwise, test, bitwise, test_bitwise_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Bitwise, stub, bitwise, stub_bitwise_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Bitwise, intAnd) { +PHP_METHOD(Stub_Bitwise, intAnd) { zend_long a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -43,7 +43,7 @@ PHP_METHOD(Test_Bitwise, intAnd) { } -PHP_METHOD(Test_Bitwise, int2And) { +PHP_METHOD(Stub_Bitwise, int2And) { zend_long a = 0, c = 0; zval *this_ptr = getThis(); @@ -56,7 +56,7 @@ PHP_METHOD(Test_Bitwise, int2And) { } -PHP_METHOD(Test_Bitwise, intAndSimple) { +PHP_METHOD(Stub_Bitwise, intAndSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -68,7 +68,7 @@ PHP_METHOD(Test_Bitwise, intAndSimple) { } -PHP_METHOD(Test_Bitwise, boolAnd) { +PHP_METHOD(Stub_Bitwise, boolAnd) { zend_bool a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -82,7 +82,7 @@ PHP_METHOD(Test_Bitwise, boolAnd) { } -PHP_METHOD(Test_Bitwise, bool2And) { +PHP_METHOD(Stub_Bitwise, bool2And) { zend_bool a = 0, c = 0; zval *this_ptr = getThis(); @@ -95,7 +95,7 @@ PHP_METHOD(Test_Bitwise, bool2And) { } -PHP_METHOD(Test_Bitwise, bool3And) { +PHP_METHOD(Stub_Bitwise, bool3And) { zend_bool a = 0, c = 0; zval *this_ptr = getThis(); @@ -108,7 +108,7 @@ PHP_METHOD(Test_Bitwise, bool3And) { } -PHP_METHOD(Test_Bitwise, boolAndSimple) { +PHP_METHOD(Stub_Bitwise, boolAndSimple) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -120,7 +120,7 @@ PHP_METHOD(Test_Bitwise, boolAndSimple) { } -PHP_METHOD(Test_Bitwise, doubleAnd) { +PHP_METHOD(Stub_Bitwise, doubleAnd) { double a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -134,7 +134,7 @@ PHP_METHOD(Test_Bitwise, doubleAnd) { } -PHP_METHOD(Test_Bitwise, double2And) { +PHP_METHOD(Stub_Bitwise, double2And) { double a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -148,7 +148,7 @@ PHP_METHOD(Test_Bitwise, double2And) { } -PHP_METHOD(Test_Bitwise, doubleAndSimple) { +PHP_METHOD(Stub_Bitwise, doubleAndSimple) { double c = 0; zval *this_ptr = getThis(); @@ -160,7 +160,7 @@ PHP_METHOD(Test_Bitwise, doubleAndSimple) { } -PHP_METHOD(Test_Bitwise, doubleAnd2Simple) { +PHP_METHOD(Stub_Bitwise, doubleAnd2Simple) { double c = 0; zval *this_ptr = getThis(); @@ -172,7 +172,7 @@ PHP_METHOD(Test_Bitwise, doubleAnd2Simple) { } -PHP_METHOD(Test_Bitwise, varAnd) { +PHP_METHOD(Stub_Bitwise, varAnd) { zend_long a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -186,7 +186,7 @@ PHP_METHOD(Test_Bitwise, varAnd) { } -PHP_METHOD(Test_Bitwise, varAndSimple) { +PHP_METHOD(Stub_Bitwise, varAndSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -198,7 +198,7 @@ PHP_METHOD(Test_Bitwise, varAndSimple) { } -PHP_METHOD(Test_Bitwise, intDoubleAnd) { +PHP_METHOD(Stub_Bitwise, intDoubleAnd) { double a = 0; zend_long b = 0, c = 0; @@ -213,7 +213,7 @@ PHP_METHOD(Test_Bitwise, intDoubleAnd) { } -PHP_METHOD(Test_Bitwise, intDoubleAndSimple) { +PHP_METHOD(Stub_Bitwise, intDoubleAndSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -225,7 +225,7 @@ PHP_METHOD(Test_Bitwise, intDoubleAndSimple) { } -PHP_METHOD(Test_Bitwise, doubleIntAnd) { +PHP_METHOD(Stub_Bitwise, doubleIntAnd) { double a = 0, c = 0; zend_long b = 0; @@ -240,7 +240,7 @@ PHP_METHOD(Test_Bitwise, doubleIntAnd) { } -PHP_METHOD(Test_Bitwise, doubleIntAndSimple) { +PHP_METHOD(Stub_Bitwise, doubleIntAndSimple) { double c = 0; zval *this_ptr = getThis(); @@ -252,7 +252,7 @@ PHP_METHOD(Test_Bitwise, doubleIntAndSimple) { } -PHP_METHOD(Test_Bitwise, varIntAnd) { +PHP_METHOD(Stub_Bitwise, varIntAnd) { zend_long b = 0, c = 0, a = 0; zval *this_ptr = getThis(); @@ -266,7 +266,7 @@ PHP_METHOD(Test_Bitwise, varIntAnd) { } -PHP_METHOD(Test_Bitwise, intVarAnd) { +PHP_METHOD(Stub_Bitwise, intVarAnd) { zend_long b = 0, c = 0, a = 0; zval *this_ptr = getThis(); @@ -280,7 +280,7 @@ PHP_METHOD(Test_Bitwise, intVarAnd) { } -PHP_METHOD(Test_Bitwise, intVarImplicitCastAnd) { +PHP_METHOD(Stub_Bitwise, intVarImplicitCastAnd) { zend_long c = 0; zval a, b, _0; @@ -304,7 +304,7 @@ PHP_METHOD(Test_Bitwise, intVarImplicitCastAnd) { } -PHP_METHOD(Test_Bitwise, intVarImplicitCast2And) { +PHP_METHOD(Stub_Bitwise, intVarImplicitCast2And) { zend_long b = 0, c = 0; zval a; @@ -323,7 +323,7 @@ PHP_METHOD(Test_Bitwise, intVarImplicitCast2And) { } -PHP_METHOD(Test_Bitwise, complexAnd) { +PHP_METHOD(Stub_Bitwise, complexAnd) { double c = 0; zval *this_ptr = getThis(); @@ -335,7 +335,7 @@ PHP_METHOD(Test_Bitwise, complexAnd) { } -PHP_METHOD(Test_Bitwise, complex2And) { +PHP_METHOD(Stub_Bitwise, complex2And) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -347,7 +347,7 @@ PHP_METHOD(Test_Bitwise, complex2And) { } -PHP_METHOD(Test_Bitwise, complex3And) { +PHP_METHOD(Stub_Bitwise, complex3And) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -359,7 +359,7 @@ PHP_METHOD(Test_Bitwise, complex3And) { } -PHP_METHOD(Test_Bitwise, complex4And) { +PHP_METHOD(Stub_Bitwise, complex4And) { zval c; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -375,7 +375,7 @@ PHP_METHOD(Test_Bitwise, complex4And) { } -PHP_METHOD(Test_Bitwise, complex5And) { +PHP_METHOD(Stub_Bitwise, complex5And) { zend_long c = 0; zval *this_ptr = getThis(); @@ -387,7 +387,7 @@ PHP_METHOD(Test_Bitwise, complex5And) { } -PHP_METHOD(Test_Bitwise, complex6And) { +PHP_METHOD(Stub_Bitwise, complex6And) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -399,7 +399,7 @@ PHP_METHOD(Test_Bitwise, complex6And) { } -PHP_METHOD(Test_Bitwise, complex7And) { +PHP_METHOD(Stub_Bitwise, complex7And) { zend_long b = 0, c = 0; zend_bool a = 0; @@ -414,7 +414,7 @@ PHP_METHOD(Test_Bitwise, complex7And) { } -PHP_METHOD(Test_Bitwise, complex9And) { +PHP_METHOD(Stub_Bitwise, complex9And) { zend_long b = 0, c = 0; zend_bool a = 0; @@ -429,7 +429,7 @@ PHP_METHOD(Test_Bitwise, complex9And) { } -PHP_METHOD(Test_Bitwise, complex10And) { +PHP_METHOD(Stub_Bitwise, complex10And) { double c = 0; zend_long b = 0; @@ -445,7 +445,7 @@ PHP_METHOD(Test_Bitwise, complex10And) { } -PHP_METHOD(Test_Bitwise, complex11And) { +PHP_METHOD(Stub_Bitwise, complex11And) { double c = 0; zend_long b = 0; @@ -461,7 +461,7 @@ PHP_METHOD(Test_Bitwise, complex11And) { } -PHP_METHOD(Test_Bitwise, complex12And) { +PHP_METHOD(Stub_Bitwise, complex12And) { zend_long b = 0, c = 0; zend_bool a = 0; @@ -476,7 +476,7 @@ PHP_METHOD(Test_Bitwise, complex12And) { } -PHP_METHOD(Test_Bitwise, complex13And) { +PHP_METHOD(Stub_Bitwise, complex13And) { zend_long c = 0; zend_bool a = 0, b = 0; @@ -491,7 +491,7 @@ PHP_METHOD(Test_Bitwise, complex13And) { } -PHP_METHOD(Test_Bitwise, complex14And) { +PHP_METHOD(Stub_Bitwise, complex14And) { zend_bool b = 0; zend_long a = 0, c = 0; @@ -506,7 +506,7 @@ PHP_METHOD(Test_Bitwise, complex14And) { } -PHP_METHOD(Test_Bitwise, complex15And) { +PHP_METHOD(Stub_Bitwise, complex15And) { zend_bool c = 0; double b = 0; @@ -522,7 +522,7 @@ PHP_METHOD(Test_Bitwise, complex15And) { } -PHP_METHOD(Test_Bitwise, complex16And) { +PHP_METHOD(Stub_Bitwise, complex16And) { double b = 0, c = 0; zend_long a = 0; @@ -537,7 +537,7 @@ PHP_METHOD(Test_Bitwise, complex16And) { } -PHP_METHOD(Test_Bitwise, complex17And) { +PHP_METHOD(Stub_Bitwise, complex17And) { double c = 0; zend_bool b = 0; @@ -553,7 +553,7 @@ PHP_METHOD(Test_Bitwise, complex17And) { } -PHP_METHOD(Test_Bitwise, complex18And) { +PHP_METHOD(Stub_Bitwise, complex18And) { zend_bool b = 0; double d = 0, c = 0; @@ -570,7 +570,7 @@ PHP_METHOD(Test_Bitwise, complex18And) { } -PHP_METHOD(Test_Bitwise, complex19And) { +PHP_METHOD(Stub_Bitwise, complex19And) { zend_bool b = 0; double d = 0, c = 0; @@ -587,7 +587,7 @@ PHP_METHOD(Test_Bitwise, complex19And) { } -PHP_METHOD(Test_Bitwise, complex20And) { +PHP_METHOD(Stub_Bitwise, complex20And) { zend_bool b = 0; double d = 0, c = 0; @@ -604,7 +604,7 @@ PHP_METHOD(Test_Bitwise, complex20And) { } -PHP_METHOD(Test_Bitwise, complex21And) { +PHP_METHOD(Stub_Bitwise, complex21And) { zend_bool b = 0; double d = 0, c = 0; @@ -621,7 +621,7 @@ PHP_METHOD(Test_Bitwise, complex21And) { } -PHP_METHOD(Test_Bitwise, complex22And) { +PHP_METHOD(Stub_Bitwise, complex22And) { double d = 0, c = 0; zend_long a = 0, b = 0; @@ -637,7 +637,7 @@ PHP_METHOD(Test_Bitwise, complex22And) { } -PHP_METHOD(Test_Bitwise, complex23And) { +PHP_METHOD(Stub_Bitwise, complex23And) { double d = 0; zend_bool b = 0; @@ -653,7 +653,7 @@ PHP_METHOD(Test_Bitwise, complex23And) { } -PHP_METHOD(Test_Bitwise, complex24And) { +PHP_METHOD(Stub_Bitwise, complex24And) { zend_bool b = 0; zend_long a = 0, d = 0; @@ -668,7 +668,7 @@ PHP_METHOD(Test_Bitwise, complex24And) { } -PHP_METHOD(Test_Bitwise, intOr) { +PHP_METHOD(Stub_Bitwise, intOr) { zend_long a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -682,7 +682,7 @@ PHP_METHOD(Test_Bitwise, intOr) { } -PHP_METHOD(Test_Bitwise, int2Or) { +PHP_METHOD(Stub_Bitwise, int2Or) { zend_long a = 0, c = 0; zval *this_ptr = getThis(); @@ -695,7 +695,7 @@ PHP_METHOD(Test_Bitwise, int2Or) { } -PHP_METHOD(Test_Bitwise, intOrSimple) { +PHP_METHOD(Stub_Bitwise, intOrSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -707,7 +707,7 @@ PHP_METHOD(Test_Bitwise, intOrSimple) { } -PHP_METHOD(Test_Bitwise, boolOr) { +PHP_METHOD(Stub_Bitwise, boolOr) { zend_bool a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -721,7 +721,7 @@ PHP_METHOD(Test_Bitwise, boolOr) { } -PHP_METHOD(Test_Bitwise, bool2Or) { +PHP_METHOD(Stub_Bitwise, bool2Or) { zend_bool a = 0, c = 0; zval *this_ptr = getThis(); @@ -734,7 +734,7 @@ PHP_METHOD(Test_Bitwise, bool2Or) { } -PHP_METHOD(Test_Bitwise, bool3Or) { +PHP_METHOD(Stub_Bitwise, bool3Or) { zend_bool a = 0, c = 0; zval *this_ptr = getThis(); @@ -747,7 +747,7 @@ PHP_METHOD(Test_Bitwise, bool3Or) { } -PHP_METHOD(Test_Bitwise, bool4Or) { +PHP_METHOD(Stub_Bitwise, bool4Or) { zend_bool a = 0, c = 0; zval *this_ptr = getThis(); @@ -760,7 +760,7 @@ PHP_METHOD(Test_Bitwise, bool4Or) { } -PHP_METHOD(Test_Bitwise, boolOrSimple) { +PHP_METHOD(Stub_Bitwise, boolOrSimple) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -772,7 +772,7 @@ PHP_METHOD(Test_Bitwise, boolOrSimple) { } -PHP_METHOD(Test_Bitwise, doubleOr) { +PHP_METHOD(Stub_Bitwise, doubleOr) { double a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -786,7 +786,7 @@ PHP_METHOD(Test_Bitwise, doubleOr) { } -PHP_METHOD(Test_Bitwise, double2Or) { +PHP_METHOD(Stub_Bitwise, double2Or) { double a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -800,7 +800,7 @@ PHP_METHOD(Test_Bitwise, double2Or) { } -PHP_METHOD(Test_Bitwise, doubleOrSimple) { +PHP_METHOD(Stub_Bitwise, doubleOrSimple) { double c = 0; zval *this_ptr = getThis(); @@ -812,7 +812,7 @@ PHP_METHOD(Test_Bitwise, doubleOrSimple) { } -PHP_METHOD(Test_Bitwise, doubleOr2Simple) { +PHP_METHOD(Stub_Bitwise, doubleOr2Simple) { double c = 0; zval *this_ptr = getThis(); @@ -824,7 +824,7 @@ PHP_METHOD(Test_Bitwise, doubleOr2Simple) { } -PHP_METHOD(Test_Bitwise, varOr) { +PHP_METHOD(Stub_Bitwise, varOr) { zend_long a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -838,7 +838,7 @@ PHP_METHOD(Test_Bitwise, varOr) { } -PHP_METHOD(Test_Bitwise, varOrSimple) { +PHP_METHOD(Stub_Bitwise, varOrSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -850,7 +850,7 @@ PHP_METHOD(Test_Bitwise, varOrSimple) { } -PHP_METHOD(Test_Bitwise, intDoubleOr) { +PHP_METHOD(Stub_Bitwise, intDoubleOr) { double a = 0; zend_long b = 0, c = 0; @@ -865,7 +865,7 @@ PHP_METHOD(Test_Bitwise, intDoubleOr) { } -PHP_METHOD(Test_Bitwise, intDoubleOrSimple) { +PHP_METHOD(Stub_Bitwise, intDoubleOrSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -877,7 +877,7 @@ PHP_METHOD(Test_Bitwise, intDoubleOrSimple) { } -PHP_METHOD(Test_Bitwise, doubleIntOr) { +PHP_METHOD(Stub_Bitwise, doubleIntOr) { double a = 0, c = 0; zend_long b = 0; @@ -892,7 +892,7 @@ PHP_METHOD(Test_Bitwise, doubleIntOr) { } -PHP_METHOD(Test_Bitwise, doubleIntOrSimple) { +PHP_METHOD(Stub_Bitwise, doubleIntOrSimple) { double c = 0; zval *this_ptr = getThis(); @@ -904,7 +904,7 @@ PHP_METHOD(Test_Bitwise, doubleIntOrSimple) { } -PHP_METHOD(Test_Bitwise, varIntOr) { +PHP_METHOD(Stub_Bitwise, varIntOr) { zend_long b = 0, c = 0, a = 0; zval *this_ptr = getThis(); @@ -918,7 +918,7 @@ PHP_METHOD(Test_Bitwise, varIntOr) { } -PHP_METHOD(Test_Bitwise, intVarOr) { +PHP_METHOD(Stub_Bitwise, intVarOr) { zend_long b = 0, c = 0, a = 0; zval *this_ptr = getThis(); @@ -932,7 +932,7 @@ PHP_METHOD(Test_Bitwise, intVarOr) { } -PHP_METHOD(Test_Bitwise, intVarImplicitCastOr) { +PHP_METHOD(Stub_Bitwise, intVarImplicitCastOr) { zend_long c = 0; zval a, b, _0; @@ -956,7 +956,7 @@ PHP_METHOD(Test_Bitwise, intVarImplicitCastOr) { } -PHP_METHOD(Test_Bitwise, intVarImplicitCast2Or) { +PHP_METHOD(Stub_Bitwise, intVarImplicitCast2Or) { zend_long b = 0, c = 0; zval a; @@ -975,7 +975,7 @@ PHP_METHOD(Test_Bitwise, intVarImplicitCast2Or) { } -PHP_METHOD(Test_Bitwise, complexOr) { +PHP_METHOD(Stub_Bitwise, complexOr) { double c = 0; zval *this_ptr = getThis(); @@ -987,7 +987,7 @@ PHP_METHOD(Test_Bitwise, complexOr) { } -PHP_METHOD(Test_Bitwise, complex2Or) { +PHP_METHOD(Stub_Bitwise, complex2Or) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -999,7 +999,7 @@ PHP_METHOD(Test_Bitwise, complex2Or) { } -PHP_METHOD(Test_Bitwise, complex3Or) { +PHP_METHOD(Stub_Bitwise, complex3Or) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -1011,7 +1011,7 @@ PHP_METHOD(Test_Bitwise, complex3Or) { } -PHP_METHOD(Test_Bitwise, complex4Or) { +PHP_METHOD(Stub_Bitwise, complex4Or) { zval c; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1027,7 +1027,7 @@ PHP_METHOD(Test_Bitwise, complex4Or) { } -PHP_METHOD(Test_Bitwise, complex5Or) { +PHP_METHOD(Stub_Bitwise, complex5Or) { zend_long c = 0; zval *this_ptr = getThis(); @@ -1039,7 +1039,7 @@ PHP_METHOD(Test_Bitwise, complex5Or) { } -PHP_METHOD(Test_Bitwise, complex6Or) { +PHP_METHOD(Stub_Bitwise, complex6Or) { zend_bool c = 0; zval *this_ptr = getThis(); @@ -1051,7 +1051,7 @@ PHP_METHOD(Test_Bitwise, complex6Or) { } -PHP_METHOD(Test_Bitwise, complex7Or) { +PHP_METHOD(Stub_Bitwise, complex7Or) { zend_long b = 0, c = 0; zend_bool a = 0; @@ -1066,7 +1066,7 @@ PHP_METHOD(Test_Bitwise, complex7Or) { } -PHP_METHOD(Test_Bitwise, complex9Or) { +PHP_METHOD(Stub_Bitwise, complex9Or) { zend_long b = 0, c = 0; zend_bool a = 0; @@ -1081,7 +1081,7 @@ PHP_METHOD(Test_Bitwise, complex9Or) { } -PHP_METHOD(Test_Bitwise, complex10Or) { +PHP_METHOD(Stub_Bitwise, complex10Or) { double c = 0; zend_long b = 0; @@ -1097,7 +1097,7 @@ PHP_METHOD(Test_Bitwise, complex10Or) { } -PHP_METHOD(Test_Bitwise, complex11Or) { +PHP_METHOD(Stub_Bitwise, complex11Or) { double c = 0; zend_long b = 0; @@ -1113,7 +1113,7 @@ PHP_METHOD(Test_Bitwise, complex11Or) { } -PHP_METHOD(Test_Bitwise, complex12Or) { +PHP_METHOD(Stub_Bitwise, complex12Or) { zend_long b = 0, c = 0; zend_bool a = 0; @@ -1128,7 +1128,7 @@ PHP_METHOD(Test_Bitwise, complex12Or) { } -PHP_METHOD(Test_Bitwise, complex13Or) { +PHP_METHOD(Stub_Bitwise, complex13Or) { zend_long c = 0; zend_bool a = 0, b = 0; @@ -1143,7 +1143,7 @@ PHP_METHOD(Test_Bitwise, complex13Or) { } -PHP_METHOD(Test_Bitwise, complex14Or) { +PHP_METHOD(Stub_Bitwise, complex14Or) { zend_bool b = 0; zend_long a = 0, c = 0; @@ -1158,7 +1158,7 @@ PHP_METHOD(Test_Bitwise, complex14Or) { } -PHP_METHOD(Test_Bitwise, complex15Or) { +PHP_METHOD(Stub_Bitwise, complex15Or) { zend_bool c = 0; double b = 0; @@ -1174,7 +1174,7 @@ PHP_METHOD(Test_Bitwise, complex15Or) { } -PHP_METHOD(Test_Bitwise, complex16Or) { +PHP_METHOD(Stub_Bitwise, complex16Or) { double b = 0, c = 0; zend_long a = 0; @@ -1189,7 +1189,7 @@ PHP_METHOD(Test_Bitwise, complex16Or) { } -PHP_METHOD(Test_Bitwise, complex17Or) { +PHP_METHOD(Stub_Bitwise, complex17Or) { double c = 0; zend_bool b = 0; @@ -1205,7 +1205,7 @@ PHP_METHOD(Test_Bitwise, complex17Or) { } -PHP_METHOD(Test_Bitwise, complex18Or) { +PHP_METHOD(Stub_Bitwise, complex18Or) { zend_bool b = 0; double d = 0, c = 0; @@ -1222,7 +1222,7 @@ PHP_METHOD(Test_Bitwise, complex18Or) { } -PHP_METHOD(Test_Bitwise, complex19Or) { +PHP_METHOD(Stub_Bitwise, complex19Or) { zend_bool b = 0; double d = 0, c = 0; @@ -1239,7 +1239,7 @@ PHP_METHOD(Test_Bitwise, complex19Or) { } -PHP_METHOD(Test_Bitwise, complex20Or) { +PHP_METHOD(Stub_Bitwise, complex20Or) { zend_bool b = 0; double d = 0, c = 0; @@ -1256,7 +1256,7 @@ PHP_METHOD(Test_Bitwise, complex20Or) { } -PHP_METHOD(Test_Bitwise, complex21Or) { +PHP_METHOD(Stub_Bitwise, complex21Or) { zend_bool b = 0; double d = 0, c = 0; @@ -1273,7 +1273,7 @@ PHP_METHOD(Test_Bitwise, complex21Or) { } -PHP_METHOD(Test_Bitwise, complex22Or) { +PHP_METHOD(Stub_Bitwise, complex22Or) { double d = 0, c = 0; zend_long a = 0, b = 0; @@ -1289,7 +1289,7 @@ PHP_METHOD(Test_Bitwise, complex22Or) { } -PHP_METHOD(Test_Bitwise, complex23Or) { +PHP_METHOD(Stub_Bitwise, complex23Or) { double d = 0; zend_bool b = 0; @@ -1305,7 +1305,7 @@ PHP_METHOD(Test_Bitwise, complex23Or) { } -PHP_METHOD(Test_Bitwise, complex24Or) { +PHP_METHOD(Stub_Bitwise, complex24Or) { zend_bool b = 0; double d = 0; @@ -1321,7 +1321,7 @@ PHP_METHOD(Test_Bitwise, complex24Or) { } -PHP_METHOD(Test_Bitwise, intShiftLeft) { +PHP_METHOD(Stub_Bitwise, intShiftLeft) { zend_long a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -1335,7 +1335,7 @@ PHP_METHOD(Test_Bitwise, intShiftLeft) { } -PHP_METHOD(Test_Bitwise, int2ShiftLeft) { +PHP_METHOD(Stub_Bitwise, int2ShiftLeft) { zend_long a = 0, c = 0; zval *this_ptr = getThis(); @@ -1348,7 +1348,7 @@ PHP_METHOD(Test_Bitwise, int2ShiftLeft) { } -PHP_METHOD(Test_Bitwise, intShiftLeftSimple) { +PHP_METHOD(Stub_Bitwise, intShiftLeftSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -1360,7 +1360,7 @@ PHP_METHOD(Test_Bitwise, intShiftLeftSimple) { } -PHP_METHOD(Test_Bitwise, intShiftRight) { +PHP_METHOD(Stub_Bitwise, intShiftRight) { zend_long a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -1374,7 +1374,7 @@ PHP_METHOD(Test_Bitwise, intShiftRight) { } -PHP_METHOD(Test_Bitwise, int2ShiftRight) { +PHP_METHOD(Stub_Bitwise, int2ShiftRight) { zend_long a = 0, c = 0; zval *this_ptr = getThis(); @@ -1387,7 +1387,7 @@ PHP_METHOD(Test_Bitwise, int2ShiftRight) { } -PHP_METHOD(Test_Bitwise, intShiftRightSimple) { +PHP_METHOD(Stub_Bitwise, intShiftRightSimple) { zend_long c = 0; zval *this_ptr = getThis(); @@ -1399,7 +1399,7 @@ PHP_METHOD(Test_Bitwise, intShiftRightSimple) { } -PHP_METHOD(Test_Bitwise, testBitwiseNot) { +PHP_METHOD(Stub_Bitwise, testBitwiseNot) { zval *a_param = NULL; zend_long a; @@ -1415,7 +1415,7 @@ PHP_METHOD(Test_Bitwise, testBitwiseNot) { } -PHP_METHOD(Test_Bitwise, testBitwiseAndNot) { +PHP_METHOD(Stub_Bitwise, testBitwiseAndNot) { zval *a_param = NULL, *b_param = NULL; zend_long a, b; @@ -1432,7 +1432,7 @@ PHP_METHOD(Test_Bitwise, testBitwiseAndNot) { } -PHP_METHOD(Test_Bitwise, getInt) { +PHP_METHOD(Stub_Bitwise, getInt) { zval *num_param = NULL; zend_long num; @@ -1451,7 +1451,7 @@ PHP_METHOD(Test_Bitwise, getInt) { /** * @issue https://github.com/phalcon/zephir/issues/1581 */ -PHP_METHOD(Test_Bitwise, testbitwiseXor) { +PHP_METHOD(Stub_Bitwise, testbitwiseXor) { zval i, _0, j; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/bitwise.zep.h b/ext/stub/bitwise.zep.h new file mode 100644 index 0000000000..c3681cdffc --- /dev/null +++ b/ext/stub/bitwise.zep.h @@ -0,0 +1,240 @@ + +extern zend_class_entry *stub_bitwise_ce; + +ZEPHIR_INIT_CLASS(Stub_Bitwise); + +PHP_METHOD(Stub_Bitwise, intAnd); +PHP_METHOD(Stub_Bitwise, int2And); +PHP_METHOD(Stub_Bitwise, intAndSimple); +PHP_METHOD(Stub_Bitwise, boolAnd); +PHP_METHOD(Stub_Bitwise, bool2And); +PHP_METHOD(Stub_Bitwise, bool3And); +PHP_METHOD(Stub_Bitwise, boolAndSimple); +PHP_METHOD(Stub_Bitwise, doubleAnd); +PHP_METHOD(Stub_Bitwise, double2And); +PHP_METHOD(Stub_Bitwise, doubleAndSimple); +PHP_METHOD(Stub_Bitwise, doubleAnd2Simple); +PHP_METHOD(Stub_Bitwise, varAnd); +PHP_METHOD(Stub_Bitwise, varAndSimple); +PHP_METHOD(Stub_Bitwise, intDoubleAnd); +PHP_METHOD(Stub_Bitwise, intDoubleAndSimple); +PHP_METHOD(Stub_Bitwise, doubleIntAnd); +PHP_METHOD(Stub_Bitwise, doubleIntAndSimple); +PHP_METHOD(Stub_Bitwise, varIntAnd); +PHP_METHOD(Stub_Bitwise, intVarAnd); +PHP_METHOD(Stub_Bitwise, intVarImplicitCastAnd); +PHP_METHOD(Stub_Bitwise, intVarImplicitCast2And); +PHP_METHOD(Stub_Bitwise, complexAnd); +PHP_METHOD(Stub_Bitwise, complex2And); +PHP_METHOD(Stub_Bitwise, complex3And); +PHP_METHOD(Stub_Bitwise, complex4And); +PHP_METHOD(Stub_Bitwise, complex5And); +PHP_METHOD(Stub_Bitwise, complex6And); +PHP_METHOD(Stub_Bitwise, complex7And); +PHP_METHOD(Stub_Bitwise, complex9And); +PHP_METHOD(Stub_Bitwise, complex10And); +PHP_METHOD(Stub_Bitwise, complex11And); +PHP_METHOD(Stub_Bitwise, complex12And); +PHP_METHOD(Stub_Bitwise, complex13And); +PHP_METHOD(Stub_Bitwise, complex14And); +PHP_METHOD(Stub_Bitwise, complex15And); +PHP_METHOD(Stub_Bitwise, complex16And); +PHP_METHOD(Stub_Bitwise, complex17And); +PHP_METHOD(Stub_Bitwise, complex18And); +PHP_METHOD(Stub_Bitwise, complex19And); +PHP_METHOD(Stub_Bitwise, complex20And); +PHP_METHOD(Stub_Bitwise, complex21And); +PHP_METHOD(Stub_Bitwise, complex22And); +PHP_METHOD(Stub_Bitwise, complex23And); +PHP_METHOD(Stub_Bitwise, complex24And); +PHP_METHOD(Stub_Bitwise, intOr); +PHP_METHOD(Stub_Bitwise, int2Or); +PHP_METHOD(Stub_Bitwise, intOrSimple); +PHP_METHOD(Stub_Bitwise, boolOr); +PHP_METHOD(Stub_Bitwise, bool2Or); +PHP_METHOD(Stub_Bitwise, bool3Or); +PHP_METHOD(Stub_Bitwise, bool4Or); +PHP_METHOD(Stub_Bitwise, boolOrSimple); +PHP_METHOD(Stub_Bitwise, doubleOr); +PHP_METHOD(Stub_Bitwise, double2Or); +PHP_METHOD(Stub_Bitwise, doubleOrSimple); +PHP_METHOD(Stub_Bitwise, doubleOr2Simple); +PHP_METHOD(Stub_Bitwise, varOr); +PHP_METHOD(Stub_Bitwise, varOrSimple); +PHP_METHOD(Stub_Bitwise, intDoubleOr); +PHP_METHOD(Stub_Bitwise, intDoubleOrSimple); +PHP_METHOD(Stub_Bitwise, doubleIntOr); +PHP_METHOD(Stub_Bitwise, doubleIntOrSimple); +PHP_METHOD(Stub_Bitwise, varIntOr); +PHP_METHOD(Stub_Bitwise, intVarOr); +PHP_METHOD(Stub_Bitwise, intVarImplicitCastOr); +PHP_METHOD(Stub_Bitwise, intVarImplicitCast2Or); +PHP_METHOD(Stub_Bitwise, complexOr); +PHP_METHOD(Stub_Bitwise, complex2Or); +PHP_METHOD(Stub_Bitwise, complex3Or); +PHP_METHOD(Stub_Bitwise, complex4Or); +PHP_METHOD(Stub_Bitwise, complex5Or); +PHP_METHOD(Stub_Bitwise, complex6Or); +PHP_METHOD(Stub_Bitwise, complex7Or); +PHP_METHOD(Stub_Bitwise, complex9Or); +PHP_METHOD(Stub_Bitwise, complex10Or); +PHP_METHOD(Stub_Bitwise, complex11Or); +PHP_METHOD(Stub_Bitwise, complex12Or); +PHP_METHOD(Stub_Bitwise, complex13Or); +PHP_METHOD(Stub_Bitwise, complex14Or); +PHP_METHOD(Stub_Bitwise, complex15Or); +PHP_METHOD(Stub_Bitwise, complex16Or); +PHP_METHOD(Stub_Bitwise, complex17Or); +PHP_METHOD(Stub_Bitwise, complex18Or); +PHP_METHOD(Stub_Bitwise, complex19Or); +PHP_METHOD(Stub_Bitwise, complex20Or); +PHP_METHOD(Stub_Bitwise, complex21Or); +PHP_METHOD(Stub_Bitwise, complex22Or); +PHP_METHOD(Stub_Bitwise, complex23Or); +PHP_METHOD(Stub_Bitwise, complex24Or); +PHP_METHOD(Stub_Bitwise, intShiftLeft); +PHP_METHOD(Stub_Bitwise, int2ShiftLeft); +PHP_METHOD(Stub_Bitwise, intShiftLeftSimple); +PHP_METHOD(Stub_Bitwise, intShiftRight); +PHP_METHOD(Stub_Bitwise, int2ShiftRight); +PHP_METHOD(Stub_Bitwise, intShiftRightSimple); +PHP_METHOD(Stub_Bitwise, testBitwiseNot); +PHP_METHOD(Stub_Bitwise, testBitwiseAndNot); +PHP_METHOD(Stub_Bitwise, getInt); +PHP_METHOD(Stub_Bitwise, testbitwiseXor); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bitwise_testbitwisenot, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_bitwise_testbitwiseandnot, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_bitwise_getint, 0, 1, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_bitwise_getint, 0, 1, IS_LONG, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_bitwise_method_entry) { + PHP_ME(Stub_Bitwise, intAnd, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, int2And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intAndSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, boolAnd, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, bool2And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, bool3And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, boolAndSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, doubleAnd, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, double2And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, doubleAndSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, doubleAnd2Simple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, varAnd, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, varAndSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intDoubleAnd, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intDoubleAndSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, doubleIntAnd, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, doubleIntAndSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, varIntAnd, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intVarAnd, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intVarImplicitCastAnd, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intVarImplicitCast2And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complexAnd, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex2And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex3And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex4And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex5And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex6And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex7And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex9And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex10And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex11And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex12And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex13And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex14And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex15And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex16And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex17And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex18And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex19And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex20And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex21And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex22And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex23And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex24And, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intOr, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, int2Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intOrSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, boolOr, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, bool2Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, bool3Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, bool4Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, boolOrSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, doubleOr, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, double2Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, doubleOrSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, doubleOr2Simple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, varOr, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, varOrSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intDoubleOr, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intDoubleOrSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, doubleIntOr, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, doubleIntOrSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, varIntOr, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intVarOr, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intVarImplicitCastOr, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intVarImplicitCast2Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complexOr, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex2Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex3Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex4Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex5Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex6Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex7Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex9Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex10Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex11Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex12Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex13Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex14Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex15Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex16Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex17Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex18Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex19Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex20Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex21Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex22Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex23Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, complex24Or, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intShiftLeft, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, int2ShiftLeft, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intShiftLeftSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intShiftRight, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, int2ShiftRight, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, intShiftRightSimple, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, testBitwiseNot, arginfo_stub_bitwise_testbitwisenot, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, testBitwiseAndNot, arginfo_stub_bitwise_testbitwiseandnot, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Bitwise, getInt, arginfo_stub_bitwise_getint, ZEND_ACC_PROTECTED) + PHP_ME(Stub_Bitwise, testbitwiseXor, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/branchprediction.zep.c b/ext/stub/branchprediction.zep.c similarity index 74% rename from ext/test/branchprediction.zep.c rename to ext/stub/branchprediction.zep.c index 4c0bc85b93..0240034271 100644 --- a/ext/test/branchprediction.zep.c +++ b/ext/stub/branchprediction.zep.c @@ -20,15 +20,15 @@ /** * OO operations */ -ZEPHIR_INIT_CLASS(Test_BranchPrediction) { +ZEPHIR_INIT_CLASS(Stub_BranchPrediction) { - ZEPHIR_REGISTER_CLASS(Test, BranchPrediction, test, branchprediction, test_branchprediction_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, BranchPrediction, stub, branchprediction, stub_branchprediction_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_BranchPrediction, testLikely1) { +PHP_METHOD(Stub_BranchPrediction, testLikely1) { zval *this_ptr = getThis(); @@ -41,7 +41,7 @@ PHP_METHOD(Test_BranchPrediction, testLikely1) { } -PHP_METHOD(Test_BranchPrediction, testLikely2) { +PHP_METHOD(Stub_BranchPrediction, testLikely2) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -60,7 +60,7 @@ PHP_METHOD(Test_BranchPrediction, testLikely2) { } -PHP_METHOD(Test_BranchPrediction, testUnlikely1) { +PHP_METHOD(Stub_BranchPrediction, testUnlikely1) { zval *this_ptr = getThis(); @@ -73,7 +73,7 @@ PHP_METHOD(Test_BranchPrediction, testUnlikely1) { } -PHP_METHOD(Test_BranchPrediction, testUnlikely2) { +PHP_METHOD(Stub_BranchPrediction, testUnlikely2) { zval *a, a_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/branchprediction.zep.h b/ext/stub/branchprediction.zep.h new file mode 100644 index 0000000000..c0498a70ca --- /dev/null +++ b/ext/stub/branchprediction.zep.h @@ -0,0 +1,25 @@ + +extern zend_class_entry *stub_branchprediction_ce; + +ZEPHIR_INIT_CLASS(Stub_BranchPrediction); + +PHP_METHOD(Stub_BranchPrediction, testLikely1); +PHP_METHOD(Stub_BranchPrediction, testLikely2); +PHP_METHOD(Stub_BranchPrediction, testUnlikely1); +PHP_METHOD(Stub_BranchPrediction, testUnlikely2); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_branchprediction_testlikely2, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_branchprediction_testunlikely2, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_branchprediction_method_entry) { + PHP_ME(Stub_BranchPrediction, testLikely1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BranchPrediction, testLikely2, arginfo_stub_branchprediction_testlikely2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BranchPrediction, testUnlikely1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BranchPrediction, testUnlikely2, arginfo_stub_branchprediction_testunlikely2, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/builtin/arraymethods.zep.c b/ext/stub/builtin/arraymethods.zep.c similarity index 85% rename from ext/test/builtin/arraymethods.zep.c rename to ext/stub/builtin/arraymethods.zep.c index 5f08cdacca..26c6bf880b 100644 --- a/ext/test/builtin/arraymethods.zep.c +++ b/ext/stub/builtin/arraymethods.zep.c @@ -19,15 +19,15 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_BuiltIn_ArrayMethods) { +ZEPHIR_INIT_CLASS(Stub_BuiltIn_ArrayMethods) { - ZEPHIR_REGISTER_CLASS(Test\\BuiltIn, ArrayMethods, test, builtin_arraymethods, test_builtin_arraymethods_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\BuiltIn, ArrayMethods, stub, builtin_arraymethods, stub_builtin_arraymethods_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_BuiltIn_ArrayMethods, getJoin1) { +PHP_METHOD(Stub_BuiltIn_ArrayMethods, getJoin1) { zval _1; zval _0; @@ -56,7 +56,7 @@ PHP_METHOD(Test_BuiltIn_ArrayMethods, getJoin1) { } -PHP_METHOD(Test_BuiltIn_ArrayMethods, getReversed1) { +PHP_METHOD(Stub_BuiltIn_ArrayMethods, getReversed1) { zval _1, _2; zval _0; @@ -87,7 +87,7 @@ PHP_METHOD(Test_BuiltIn_ArrayMethods, getReversed1) { } -PHP_METHOD(Test_BuiltIn_ArrayMethods, getMap1) { +PHP_METHOD(Stub_BuiltIn_ArrayMethods, getMap1) { zval _1, _2; zval _0; @@ -114,7 +114,7 @@ PHP_METHOD(Test_BuiltIn_ArrayMethods, getMap1) { zephir_array_fast_append(&_0, &_1); ZEPHIR_INIT_NVAR(&_1); ZEPHIR_INIT_NVAR(&_1); - zephir_create_closure_ex(&_1, NULL, test_0__closure_ce, SL("__invoke")); + zephir_create_closure_ex(&_1, NULL, stub_0__closure_ce, SL("__invoke")); ZEPHIR_CALL_FUNCTION(&_2, "array_map", NULL, 7, &_1, &_0); zephir_check_call_status(); RETURN_CCTOR(&_2); diff --git a/ext/stub/builtin/arraymethods.zep.h b/ext/stub/builtin/arraymethods.zep.h new file mode 100644 index 0000000000..39a2c8c54f --- /dev/null +++ b/ext/stub/builtin/arraymethods.zep.h @@ -0,0 +1,15 @@ + +extern zend_class_entry *stub_builtin_arraymethods_ce; + +ZEPHIR_INIT_CLASS(Stub_BuiltIn_ArrayMethods); + +PHP_METHOD(Stub_BuiltIn_ArrayMethods, getJoin1); +PHP_METHOD(Stub_BuiltIn_ArrayMethods, getReversed1); +PHP_METHOD(Stub_BuiltIn_ArrayMethods, getMap1); + +ZEPHIR_INIT_FUNCS(stub_builtin_arraymethods_method_entry) { + PHP_ME(Stub_BuiltIn_ArrayMethods, getJoin1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_ArrayMethods, getReversed1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_ArrayMethods, getMap1, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/builtin/charmethods.zep.c b/ext/stub/builtin/charmethods.zep.c similarity index 83% rename from ext/test/builtin/charmethods.zep.c rename to ext/stub/builtin/charmethods.zep.c index 36e7e3302a..eb4aa099b8 100644 --- a/ext/test/builtin/charmethods.zep.c +++ b/ext/stub/builtin/charmethods.zep.c @@ -18,15 +18,15 @@ #include "kernel/operators.h" -ZEPHIR_INIT_CLASS(Test_BuiltIn_CharMethods) { +ZEPHIR_INIT_CLASS(Stub_BuiltIn_CharMethods) { - ZEPHIR_REGISTER_CLASS(Test\\BuiltIn, CharMethods, test, builtin_charmethods, test_builtin_charmethods_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\BuiltIn, CharMethods, stub, builtin_charmethods, stub_builtin_charmethods_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_BuiltIn_CharMethods, getHex) { +PHP_METHOD(Stub_BuiltIn_CharMethods, getHex) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -45,7 +45,7 @@ PHP_METHOD(Test_BuiltIn_CharMethods, getHex) { } -PHP_METHOD(Test_BuiltIn_CharMethods, getHexForString) { +PHP_METHOD(Stub_BuiltIn_CharMethods, getHexForString) { long _0; char ch = 0; diff --git a/ext/stub/builtin/charmethods.zep.h b/ext/stub/builtin/charmethods.zep.h new file mode 100644 index 0000000000..d621b7dd00 --- /dev/null +++ b/ext/stub/builtin/charmethods.zep.h @@ -0,0 +1,21 @@ + +extern zend_class_entry *stub_builtin_charmethods_ce; + +ZEPHIR_INIT_CLASS(Stub_BuiltIn_CharMethods); + +PHP_METHOD(Stub_BuiltIn_CharMethods, getHex); +PHP_METHOD(Stub_BuiltIn_CharMethods, getHexForString); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_charmethods_gethexforstring, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, str) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_builtin_charmethods_method_entry) { + PHP_ME(Stub_BuiltIn_CharMethods, getHex, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_CharMethods, getHexForString, arginfo_stub_builtin_charmethods_gethexforstring, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/builtin/intmethods.zep.c b/ext/stub/builtin/intmethods.zep.c similarity index 88% rename from ext/test/builtin/intmethods.zep.c rename to ext/stub/builtin/intmethods.zep.c index d69dcf65a7..3c391bcb0e 100644 --- a/ext/test/builtin/intmethods.zep.c +++ b/ext/stub/builtin/intmethods.zep.c @@ -19,15 +19,15 @@ #include "math.h" -ZEPHIR_INIT_CLASS(Test_BuiltIn_IntMethods) { +ZEPHIR_INIT_CLASS(Stub_BuiltIn_IntMethods) { - ZEPHIR_REGISTER_CLASS(Test\\BuiltIn, IntMethods, test, builtin_intmethods, test_builtin_intmethods_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\BuiltIn, IntMethods, stub, builtin_intmethods, stub_builtin_intmethods_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_BuiltIn_IntMethods, getAbs) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getAbs) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *num_param = NULL, _0, _1; @@ -50,7 +50,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getAbs) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getAbs1) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getAbs1) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -69,7 +69,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getAbs1) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getBinary) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getBinary) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *num_param = NULL, _0, _1; @@ -92,7 +92,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getBinary) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getHex) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getHex) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *num_param = NULL, _0, _1; @@ -115,7 +115,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getHex) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getOctal) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getOctal) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *num_param = NULL, _0, _1; @@ -138,7 +138,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getOctal) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getPow) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getPow) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *num_param = NULL, *exp_param = NULL, _0, _1, _2; @@ -164,7 +164,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getPow) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getSqrt) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getSqrt) { zval *num_param = NULL, _0; zend_long num; @@ -182,7 +182,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getSqrt) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getExp) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getExp) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *num_param = NULL, _0, _1; @@ -205,7 +205,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getExp) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getSin) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getSin) { zval *num_param = NULL, _0; zend_long num; @@ -223,7 +223,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getSin) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getCos) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getCos) { zval *num_param = NULL, _0; zend_long num; @@ -241,7 +241,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getCos) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getTan) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getTan) { zval *num_param = NULL, _0; zend_long num; @@ -259,7 +259,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getTan) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getAsin) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getAsin) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *num_param = NULL, _0, _1; @@ -282,7 +282,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getAsin) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getAcos) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getAcos) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *num_param = NULL, _0, _1; @@ -305,7 +305,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getAcos) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getAtan) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getAtan) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *num_param = NULL, _0, _1; @@ -328,7 +328,7 @@ PHP_METHOD(Test_BuiltIn_IntMethods, getAtan) { } -PHP_METHOD(Test_BuiltIn_IntMethods, getLog) { +PHP_METHOD(Stub_BuiltIn_IntMethods, getLog) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *num_param = NULL, *base_param = NULL, _0$$3, _1$$3, _2, _3, _4; diff --git a/ext/stub/builtin/intmethods.zep.h b/ext/stub/builtin/intmethods.zep.h new file mode 100644 index 0000000000..c44ce134b2 --- /dev/null +++ b/ext/stub/builtin/intmethods.zep.h @@ -0,0 +1,161 @@ + +extern zend_class_entry *stub_builtin_intmethods_ce; + +ZEPHIR_INIT_CLASS(Stub_BuiltIn_IntMethods); + +PHP_METHOD(Stub_BuiltIn_IntMethods, getAbs); +PHP_METHOD(Stub_BuiltIn_IntMethods, getAbs1); +PHP_METHOD(Stub_BuiltIn_IntMethods, getBinary); +PHP_METHOD(Stub_BuiltIn_IntMethods, getHex); +PHP_METHOD(Stub_BuiltIn_IntMethods, getOctal); +PHP_METHOD(Stub_BuiltIn_IntMethods, getPow); +PHP_METHOD(Stub_BuiltIn_IntMethods, getSqrt); +PHP_METHOD(Stub_BuiltIn_IntMethods, getExp); +PHP_METHOD(Stub_BuiltIn_IntMethods, getSin); +PHP_METHOD(Stub_BuiltIn_IntMethods, getCos); +PHP_METHOD(Stub_BuiltIn_IntMethods, getTan); +PHP_METHOD(Stub_BuiltIn_IntMethods, getAsin); +PHP_METHOD(Stub_BuiltIn_IntMethods, getAcos); +PHP_METHOD(Stub_BuiltIn_IntMethods, getAtan); +PHP_METHOD(Stub_BuiltIn_IntMethods, getLog); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_getabs, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_getbinary, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_gethex, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_getoctal, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_getpow, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, exp, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, exp) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_getsqrt, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_getexp, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_getsin, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_getcos, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_gettan, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_getasin, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_getacos, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_getatan, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_intmethods_getlog, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, base, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, base) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_builtin_intmethods_method_entry) { + PHP_ME(Stub_BuiltIn_IntMethods, getAbs, arginfo_stub_builtin_intmethods_getabs, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getAbs1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getBinary, arginfo_stub_builtin_intmethods_getbinary, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getHex, arginfo_stub_builtin_intmethods_gethex, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getOctal, arginfo_stub_builtin_intmethods_getoctal, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getPow, arginfo_stub_builtin_intmethods_getpow, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getSqrt, arginfo_stub_builtin_intmethods_getsqrt, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getExp, arginfo_stub_builtin_intmethods_getexp, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getSin, arginfo_stub_builtin_intmethods_getsin, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getCos, arginfo_stub_builtin_intmethods_getcos, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getTan, arginfo_stub_builtin_intmethods_gettan, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getAsin, arginfo_stub_builtin_intmethods_getasin, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getAcos, arginfo_stub_builtin_intmethods_getacos, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getAtan, arginfo_stub_builtin_intmethods_getatan, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_IntMethods, getLog, arginfo_stub_builtin_intmethods_getlog, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/builtin/stringmethods.zep.c b/ext/stub/builtin/stringmethods.zep.c similarity index 87% rename from ext/test/builtin/stringmethods.zep.c rename to ext/stub/builtin/stringmethods.zep.c index 7d9b3e90d2..3d169a6a2e 100644 --- a/ext/test/builtin/stringmethods.zep.c +++ b/ext/stub/builtin/stringmethods.zep.c @@ -20,15 +20,15 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_BuiltIn_StringMethods) { +ZEPHIR_INIT_CLASS(Stub_BuiltIn_StringMethods) { - ZEPHIR_REGISTER_CLASS(Test\\BuiltIn, StringMethods, test, builtin_stringmethods, test_builtin_stringmethods_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\BuiltIn, StringMethods, stub, builtin_stringmethods, stub_builtin_stringmethods_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_BuiltIn_StringMethods, camelize) { +PHP_METHOD(Stub_BuiltIn_StringMethods, camelize) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL, *delimiter = NULL, delimiter_sub, __$null, _0; @@ -56,7 +56,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, camelize) { } -PHP_METHOD(Test_BuiltIn_StringMethods, uncamelize) { +PHP_METHOD(Stub_BuiltIn_StringMethods, uncamelize) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL, *delimiter = NULL, delimiter_sub, __$null, _0; @@ -84,7 +84,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, uncamelize) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getLength1) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getLength1) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -100,7 +100,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getLength1) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getLength2) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getLength2) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -116,7 +116,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getLength2) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getLength3) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getLength3) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -132,7 +132,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getLength3) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getLength4) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getLength4) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a_param = NULL; @@ -151,7 +151,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getLength4) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getLength5) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getLength5) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a_param = NULL; @@ -173,7 +173,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getLength5) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getIndex) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getIndex) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL, *needle_param = NULL, _0; @@ -197,7 +197,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getIndex) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getIndexWithPosition) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getIndexWithPosition) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long position; @@ -225,7 +225,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getIndexWithPosition) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getTrimmed) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getTrimmed) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -244,7 +244,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getTrimmed) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getTrimmed1) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getTrimmed1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL, _0; @@ -266,7 +266,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getTrimmed1) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getLeftTrimmed) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getLeftTrimmed) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL, _0; @@ -288,7 +288,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getLeftTrimmed) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getRightTrimmed) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getRightTrimmed) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL, _0; @@ -310,7 +310,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getRightTrimmed) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getLower) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getLower) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL, _0; @@ -332,7 +332,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getLower) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getUpper) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getUpper) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL, _0; @@ -354,7 +354,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getUpper) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getLowerFirst) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getLowerFirst) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -377,7 +377,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getLowerFirst) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getUpperFirst) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getUpperFirst) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL, _0; @@ -399,7 +399,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getUpperFirst) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getFormatted) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getFormatted) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -425,7 +425,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getFormatted) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getMd5) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getMd5) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL, _0; @@ -447,7 +447,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getMd5) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getSha1) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getSha1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -470,7 +470,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getSha1) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getNl2br) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getNl2br) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -493,7 +493,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getNl2br) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getParsedCsv) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getParsedCsv) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -516,7 +516,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getParsedCsv) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getParsedJson) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getParsedJson) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_bool assoc; @@ -546,7 +546,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getParsedJson) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getRepeatted) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getRepeatted) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long count, ZEPHIR_LAST_CALL_STATUS; @@ -572,7 +572,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getRepeatted) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getShuffled) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getShuffled) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -595,7 +595,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getShuffled) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getSplited) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getSplited) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -620,7 +620,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getSplited) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getCompare) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getCompare) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -645,7 +645,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getCompare) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getCompareLocale) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getCompareLocale) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -670,7 +670,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getCompareLocale) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getReversed) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getReversed) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -693,7 +693,7 @@ PHP_METHOD(Test_BuiltIn_StringMethods, getReversed) { } -PHP_METHOD(Test_BuiltIn_StringMethods, getHtmlSpecialChars) { +PHP_METHOD(Stub_BuiltIn_StringMethods, getHtmlSpecialChars) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; diff --git a/ext/test/builtin/stringmethods.zep.h b/ext/stub/builtin/stringmethods.zep.h similarity index 51% rename from ext/test/builtin/stringmethods.zep.h rename to ext/stub/builtin/stringmethods.zep.h index 1339c88a89..584a62cade 100644 --- a/ext/test/builtin/stringmethods.zep.h +++ b/ext/stub/builtin/stringmethods.zep.h @@ -1,43 +1,43 @@ -extern zend_class_entry *test_builtin_stringmethods_ce; +extern zend_class_entry *stub_builtin_stringmethods_ce; -ZEPHIR_INIT_CLASS(Test_BuiltIn_StringMethods); +ZEPHIR_INIT_CLASS(Stub_BuiltIn_StringMethods); -PHP_METHOD(Test_BuiltIn_StringMethods, camelize); -PHP_METHOD(Test_BuiltIn_StringMethods, uncamelize); -PHP_METHOD(Test_BuiltIn_StringMethods, getLength1); -PHP_METHOD(Test_BuiltIn_StringMethods, getLength2); -PHP_METHOD(Test_BuiltIn_StringMethods, getLength3); -PHP_METHOD(Test_BuiltIn_StringMethods, getLength4); -PHP_METHOD(Test_BuiltIn_StringMethods, getLength5); -PHP_METHOD(Test_BuiltIn_StringMethods, getIndex); -PHP_METHOD(Test_BuiltIn_StringMethods, getIndexWithPosition); -PHP_METHOD(Test_BuiltIn_StringMethods, getTrimmed); -PHP_METHOD(Test_BuiltIn_StringMethods, getTrimmed1); -PHP_METHOD(Test_BuiltIn_StringMethods, getLeftTrimmed); -PHP_METHOD(Test_BuiltIn_StringMethods, getRightTrimmed); -PHP_METHOD(Test_BuiltIn_StringMethods, getLower); -PHP_METHOD(Test_BuiltIn_StringMethods, getUpper); -PHP_METHOD(Test_BuiltIn_StringMethods, getLowerFirst); -PHP_METHOD(Test_BuiltIn_StringMethods, getUpperFirst); -PHP_METHOD(Test_BuiltIn_StringMethods, getFormatted); -PHP_METHOD(Test_BuiltIn_StringMethods, getMd5); -PHP_METHOD(Test_BuiltIn_StringMethods, getSha1); -PHP_METHOD(Test_BuiltIn_StringMethods, getNl2br); -PHP_METHOD(Test_BuiltIn_StringMethods, getParsedCsv); -PHP_METHOD(Test_BuiltIn_StringMethods, getParsedJson); -PHP_METHOD(Test_BuiltIn_StringMethods, getRepeatted); -PHP_METHOD(Test_BuiltIn_StringMethods, getShuffled); -PHP_METHOD(Test_BuiltIn_StringMethods, getSplited); -PHP_METHOD(Test_BuiltIn_StringMethods, getCompare); -PHP_METHOD(Test_BuiltIn_StringMethods, getCompareLocale); -PHP_METHOD(Test_BuiltIn_StringMethods, getReversed); -PHP_METHOD(Test_BuiltIn_StringMethods, getHtmlSpecialChars); +PHP_METHOD(Stub_BuiltIn_StringMethods, camelize); +PHP_METHOD(Stub_BuiltIn_StringMethods, uncamelize); +PHP_METHOD(Stub_BuiltIn_StringMethods, getLength1); +PHP_METHOD(Stub_BuiltIn_StringMethods, getLength2); +PHP_METHOD(Stub_BuiltIn_StringMethods, getLength3); +PHP_METHOD(Stub_BuiltIn_StringMethods, getLength4); +PHP_METHOD(Stub_BuiltIn_StringMethods, getLength5); +PHP_METHOD(Stub_BuiltIn_StringMethods, getIndex); +PHP_METHOD(Stub_BuiltIn_StringMethods, getIndexWithPosition); +PHP_METHOD(Stub_BuiltIn_StringMethods, getTrimmed); +PHP_METHOD(Stub_BuiltIn_StringMethods, getTrimmed1); +PHP_METHOD(Stub_BuiltIn_StringMethods, getLeftTrimmed); +PHP_METHOD(Stub_BuiltIn_StringMethods, getRightTrimmed); +PHP_METHOD(Stub_BuiltIn_StringMethods, getLower); +PHP_METHOD(Stub_BuiltIn_StringMethods, getUpper); +PHP_METHOD(Stub_BuiltIn_StringMethods, getLowerFirst); +PHP_METHOD(Stub_BuiltIn_StringMethods, getUpperFirst); +PHP_METHOD(Stub_BuiltIn_StringMethods, getFormatted); +PHP_METHOD(Stub_BuiltIn_StringMethods, getMd5); +PHP_METHOD(Stub_BuiltIn_StringMethods, getSha1); +PHP_METHOD(Stub_BuiltIn_StringMethods, getNl2br); +PHP_METHOD(Stub_BuiltIn_StringMethods, getParsedCsv); +PHP_METHOD(Stub_BuiltIn_StringMethods, getParsedJson); +PHP_METHOD(Stub_BuiltIn_StringMethods, getRepeatted); +PHP_METHOD(Stub_BuiltIn_StringMethods, getShuffled); +PHP_METHOD(Stub_BuiltIn_StringMethods, getSplited); +PHP_METHOD(Stub_BuiltIn_StringMethods, getCompare); +PHP_METHOD(Stub_BuiltIn_StringMethods, getCompareLocale); +PHP_METHOD(Stub_BuiltIn_StringMethods, getReversed); +PHP_METHOD(Stub_BuiltIn_StringMethods, getHtmlSpecialChars); #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_builtin_stringmethods_camelize, 0, 1, IS_STRING, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_builtin_stringmethods_camelize, 0, 1, IS_STRING, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_builtin_stringmethods_camelize, 0, 1, IS_STRING, NULL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_builtin_stringmethods_camelize, 0, 1, IS_STRING, NULL, 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) @@ -48,9 +48,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_builtin_stringmethods_camel ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_builtin_stringmethods_uncamelize, 0, 1, IS_STRING, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_builtin_stringmethods_uncamelize, 0, 1, IS_STRING, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_builtin_stringmethods_uncamelize, 0, 1, IS_STRING, NULL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_builtin_stringmethods_uncamelize, 0, 1, IS_STRING, NULL, 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) @@ -60,7 +60,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_builtin_stringmethods_uncam ZEND_ARG_INFO(0, delimiter) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getlength4, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getlength4, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, a, IS_STRING, 0) #else @@ -68,7 +68,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getlength4, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getlength5, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getlength5, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, a, IS_STRING, 0) #else @@ -76,7 +76,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getlength5, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getindex, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getindex, 0, 0, 2) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -89,7 +89,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getindex, 0, 0, 2) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getindexwithposition, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getindexwithposition, 0, 0, 3) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -107,7 +107,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getindexwithposition, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_gettrimmed1, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_gettrimmed1, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -115,7 +115,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_gettrimmed1, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getlefttrimmed, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getlefttrimmed, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -123,7 +123,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getlefttrimmed, 0, 0, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getrighttrimmed, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getrighttrimmed, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -131,7 +131,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getrighttrimmed, 0, 0, #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getlower, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getlower, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -139,7 +139,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getlower, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getupper, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getupper, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -147,7 +147,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getupper, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getlowerfirst, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getlowerfirst, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -155,7 +155,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getlowerfirst, 0, 0, 1 #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getupperfirst, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getupperfirst, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -163,7 +163,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getupperfirst, 0, 0, 1 #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getformatted, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getformatted, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -171,7 +171,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getformatted, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getmd5, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getmd5, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -179,7 +179,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getmd5, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getsha1, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getsha1, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -187,7 +187,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getsha1, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getnl2br, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getnl2br, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -195,7 +195,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getnl2br, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getparsedcsv, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getparsedcsv, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -203,7 +203,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getparsedcsv, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getparsedjson, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getparsedjson, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -216,7 +216,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getparsedjson, 0, 0, 1 #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getrepeatted, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getrepeatted, 0, 0, 2) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -229,7 +229,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getrepeatted, 0, 0, 2) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getshuffled, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getshuffled, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -237,7 +237,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getshuffled, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getsplited, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getsplited, 0, 0, 2) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -250,7 +250,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getsplited, 0, 0, 2) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getcompare, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getcompare, 0, 0, 2) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, left, IS_STRING, 0) #else @@ -263,7 +263,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getcompare, 0, 0, 2) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getcomparelocale, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getcomparelocale, 0, 0, 2) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, left, IS_STRING, 0) #else @@ -276,7 +276,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getcomparelocale, 0, 0 #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getreversed, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_getreversed, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -284,7 +284,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_getreversed, 0, 0, 1) #endif ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_gethtmlspecialchars, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_builtin_stringmethods_gethtmlspecialchars, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) #else @@ -292,36 +292,36 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_stringmethods_gethtmlspecialchars, 0 #endif ZEND_END_ARG_INFO() -ZEPHIR_INIT_FUNCS(test_builtin_stringmethods_method_entry) { - PHP_ME(Test_BuiltIn_StringMethods, camelize, arginfo_test_builtin_stringmethods_camelize, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, uncamelize, arginfo_test_builtin_stringmethods_uncamelize, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getLength1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getLength2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getLength3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getLength4, arginfo_test_builtin_stringmethods_getlength4, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getLength5, arginfo_test_builtin_stringmethods_getlength5, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getIndex, arginfo_test_builtin_stringmethods_getindex, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getIndexWithPosition, arginfo_test_builtin_stringmethods_getindexwithposition, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getTrimmed, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getTrimmed1, arginfo_test_builtin_stringmethods_gettrimmed1, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getLeftTrimmed, arginfo_test_builtin_stringmethods_getlefttrimmed, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getRightTrimmed, arginfo_test_builtin_stringmethods_getrighttrimmed, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getLower, arginfo_test_builtin_stringmethods_getlower, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getUpper, arginfo_test_builtin_stringmethods_getupper, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getLowerFirst, arginfo_test_builtin_stringmethods_getlowerfirst, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getUpperFirst, arginfo_test_builtin_stringmethods_getupperfirst, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getFormatted, arginfo_test_builtin_stringmethods_getformatted, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getMd5, arginfo_test_builtin_stringmethods_getmd5, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getSha1, arginfo_test_builtin_stringmethods_getsha1, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getNl2br, arginfo_test_builtin_stringmethods_getnl2br, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getParsedCsv, arginfo_test_builtin_stringmethods_getparsedcsv, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getParsedJson, arginfo_test_builtin_stringmethods_getparsedjson, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getRepeatted, arginfo_test_builtin_stringmethods_getrepeatted, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getShuffled, arginfo_test_builtin_stringmethods_getshuffled, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getSplited, arginfo_test_builtin_stringmethods_getsplited, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getCompare, arginfo_test_builtin_stringmethods_getcompare, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getCompareLocale, arginfo_test_builtin_stringmethods_getcomparelocale, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getReversed, arginfo_test_builtin_stringmethods_getreversed, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_StringMethods, getHtmlSpecialChars, arginfo_test_builtin_stringmethods_gethtmlspecialchars, ZEND_ACC_PUBLIC) +ZEPHIR_INIT_FUNCS(stub_builtin_stringmethods_method_entry) { + PHP_ME(Stub_BuiltIn_StringMethods, camelize, arginfo_stub_builtin_stringmethods_camelize, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, uncamelize, arginfo_stub_builtin_stringmethods_uncamelize, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getLength1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getLength2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getLength3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getLength4, arginfo_stub_builtin_stringmethods_getlength4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getLength5, arginfo_stub_builtin_stringmethods_getlength5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getIndex, arginfo_stub_builtin_stringmethods_getindex, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getIndexWithPosition, arginfo_stub_builtin_stringmethods_getindexwithposition, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getTrimmed, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getTrimmed1, arginfo_stub_builtin_stringmethods_gettrimmed1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getLeftTrimmed, arginfo_stub_builtin_stringmethods_getlefttrimmed, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getRightTrimmed, arginfo_stub_builtin_stringmethods_getrighttrimmed, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getLower, arginfo_stub_builtin_stringmethods_getlower, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getUpper, arginfo_stub_builtin_stringmethods_getupper, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getLowerFirst, arginfo_stub_builtin_stringmethods_getlowerfirst, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getUpperFirst, arginfo_stub_builtin_stringmethods_getupperfirst, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getFormatted, arginfo_stub_builtin_stringmethods_getformatted, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getMd5, arginfo_stub_builtin_stringmethods_getmd5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getSha1, arginfo_stub_builtin_stringmethods_getsha1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getNl2br, arginfo_stub_builtin_stringmethods_getnl2br, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getParsedCsv, arginfo_stub_builtin_stringmethods_getparsedcsv, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getParsedJson, arginfo_stub_builtin_stringmethods_getparsedjson, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getRepeatted, arginfo_stub_builtin_stringmethods_getrepeatted, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getShuffled, arginfo_stub_builtin_stringmethods_getshuffled, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getSplited, arginfo_stub_builtin_stringmethods_getsplited, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getCompare, arginfo_stub_builtin_stringmethods_getcompare, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getCompareLocale, arginfo_stub_builtin_stringmethods_getcomparelocale, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getReversed, arginfo_stub_builtin_stringmethods_getreversed, ZEND_ACC_PUBLIC) + PHP_ME(Stub_BuiltIn_StringMethods, getHtmlSpecialChars, arginfo_stub_builtin_stringmethods_gethtmlspecialchars, ZEND_ACC_PUBLIC) PHP_FE_END }; diff --git a/ext/test/cast.zep.c b/ext/stub/cast.zep.c similarity index 81% rename from ext/test/cast.zep.c rename to ext/stub/cast.zep.c index 8c420da9d5..0fd09c2aca 100644 --- a/ext/test/cast.zep.c +++ b/ext/stub/cast.zep.c @@ -21,9 +21,9 @@ /** * Cast tests */ -ZEPHIR_INIT_CLASS(Test_Cast) { +ZEPHIR_INIT_CLASS(Stub_Cast) { - ZEPHIR_REGISTER_CLASS(Test, Cast, test, cast, test_cast_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Cast, stub, cast, stub_cast_method_entry, 0); return SUCCESS; @@ -32,7 +32,7 @@ ZEPHIR_INIT_CLASS(Test_Cast) { /** * @see https://github.com/phalcon/zephir/issues/1988 */ -PHP_METHOD(Test_Cast, testCharCastFromChar) { +PHP_METHOD(Stub_Cast, testCharCastFromChar) { zval *this_ptr = getThis(); @@ -44,7 +44,7 @@ PHP_METHOD(Test_Cast, testCharCastFromChar) { /** * @see https://github.com/phalcon/zephir/issues/1988 */ -PHP_METHOD(Test_Cast, testCharCastFromVariableChar) { +PHP_METHOD(Stub_Cast, testCharCastFromVariableChar) { char a, _0; zval *this_ptr = getThis(); @@ -60,7 +60,7 @@ PHP_METHOD(Test_Cast, testCharCastFromVariableChar) { /** * @see https://github.com/phalcon/zephir/issues/1988 */ -PHP_METHOD(Test_Cast, testStringCastChar) { +PHP_METHOD(Stub_Cast, testStringCastChar) { zval *this_ptr = getThis(); @@ -72,7 +72,7 @@ PHP_METHOD(Test_Cast, testStringCastChar) { /** * @see https://github.com/phalcon/zephir/issues/1988 */ -PHP_METHOD(Test_Cast, testStringCastVariableChar) { +PHP_METHOD(Stub_Cast, testStringCastVariableChar) { zval _0; char a; @@ -90,7 +90,7 @@ PHP_METHOD(Test_Cast, testStringCastVariableChar) { } -PHP_METHOD(Test_Cast, testIntCastFromFloat) { +PHP_METHOD(Stub_Cast, testIntCastFromFloat) { zval *this_ptr = getThis(); @@ -99,7 +99,7 @@ PHP_METHOD(Test_Cast, testIntCastFromFloat) { } -PHP_METHOD(Test_Cast, testIntCastFromVariableFloat) { +PHP_METHOD(Stub_Cast, testIntCastFromVariableFloat) { double a; zval *this_ptr = getThis(); @@ -114,7 +114,7 @@ PHP_METHOD(Test_Cast, testIntCastFromVariableFloat) { /** * @see https://github.com/phalcon/zephir/issues/1988 */ -PHP_METHOD(Test_Cast, testIntCastFromChar) { +PHP_METHOD(Stub_Cast, testIntCastFromChar) { zval *this_ptr = getThis(); @@ -126,7 +126,7 @@ PHP_METHOD(Test_Cast, testIntCastFromChar) { /** * @see https://github.com/phalcon/zephir/issues/1988 */ -PHP_METHOD(Test_Cast, testIntCastFromVariableChar) { +PHP_METHOD(Stub_Cast, testIntCastFromVariableChar) { char a; zval *this_ptr = getThis(); @@ -138,7 +138,7 @@ PHP_METHOD(Test_Cast, testIntCastFromVariableChar) { } -PHP_METHOD(Test_Cast, testIntCastFromBooleanTrue) { +PHP_METHOD(Stub_Cast, testIntCastFromBooleanTrue) { zval *this_ptr = getThis(); @@ -147,7 +147,7 @@ PHP_METHOD(Test_Cast, testIntCastFromBooleanTrue) { } -PHP_METHOD(Test_Cast, testIntCastFromBooleanFalse) { +PHP_METHOD(Stub_Cast, testIntCastFromBooleanFalse) { zval *this_ptr = getThis(); @@ -156,7 +156,7 @@ PHP_METHOD(Test_Cast, testIntCastFromBooleanFalse) { } -PHP_METHOD(Test_Cast, testIntCastFromVariableBooleanTrue) { +PHP_METHOD(Stub_Cast, testIntCastFromVariableBooleanTrue) { zend_bool a; zval *this_ptr = getThis(); @@ -168,7 +168,7 @@ PHP_METHOD(Test_Cast, testIntCastFromVariableBooleanTrue) { } -PHP_METHOD(Test_Cast, testIntCastFromVariableBooleanFalse) { +PHP_METHOD(Stub_Cast, testIntCastFromVariableBooleanFalse) { zend_bool a; zval *this_ptr = getThis(); @@ -180,7 +180,7 @@ PHP_METHOD(Test_Cast, testIntCastFromVariableBooleanFalse) { } -PHP_METHOD(Test_Cast, testIntCastFromVariableNull) { +PHP_METHOD(Stub_Cast, testIntCastFromVariableNull) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -196,7 +196,7 @@ PHP_METHOD(Test_Cast, testIntCastFromVariableNull) { } -PHP_METHOD(Test_Cast, testIntCastFromStringValue) { +PHP_METHOD(Stub_Cast, testIntCastFromStringValue) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -213,7 +213,7 @@ PHP_METHOD(Test_Cast, testIntCastFromStringValue) { } -PHP_METHOD(Test_Cast, testIntCastFromVariableString) { +PHP_METHOD(Stub_Cast, testIntCastFromVariableString) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -229,7 +229,7 @@ PHP_METHOD(Test_Cast, testIntCastFromVariableString) { } -PHP_METHOD(Test_Cast, testIntCastFromParameterString) { +PHP_METHOD(Stub_Cast, testIntCastFromParameterString) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a_param = NULL; @@ -248,7 +248,7 @@ PHP_METHOD(Test_Cast, testIntCastFromParameterString) { } -PHP_METHOD(Test_Cast, testIntCastFromNull) { +PHP_METHOD(Stub_Cast, testIntCastFromNull) { zval *this_ptr = getThis(); @@ -257,7 +257,7 @@ PHP_METHOD(Test_Cast, testIntCastFromNull) { } -PHP_METHOD(Test_Cast, testIntCastFromVariableEmptyArray) { +PHP_METHOD(Stub_Cast, testIntCastFromVariableEmptyArray) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -273,7 +273,7 @@ PHP_METHOD(Test_Cast, testIntCastFromVariableEmptyArray) { } -PHP_METHOD(Test_Cast, testIntCastFromEmptyArray) { +PHP_METHOD(Stub_Cast, testIntCastFromEmptyArray) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -289,7 +289,7 @@ PHP_METHOD(Test_Cast, testIntCastFromEmptyArray) { } -PHP_METHOD(Test_Cast, testIntCastFromVariableArray) { +PHP_METHOD(Stub_Cast, testIntCastFromVariableArray) { zval a, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -318,7 +318,7 @@ PHP_METHOD(Test_Cast, testIntCastFromVariableArray) { } -PHP_METHOD(Test_Cast, testIntCastFromArray) { +PHP_METHOD(Stub_Cast, testIntCastFromArray) { zval _1; zval _0; @@ -352,7 +352,7 @@ PHP_METHOD(Test_Cast, testIntCastFromArray) { * Notice: Object of class stdClass could not be converted to int * @return int 1 */ -PHP_METHOD(Test_Cast, testIntCastFromStdClass) { +PHP_METHOD(Stub_Cast, testIntCastFromStdClass) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -372,7 +372,7 @@ PHP_METHOD(Test_Cast, testIntCastFromStdClass) { * Notice: Object of class stdClass could not be converted to int * @return int 1 */ -PHP_METHOD(Test_Cast, testIntCastFromVariableStdClass) { +PHP_METHOD(Stub_Cast, testIntCastFromVariableStdClass) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -391,7 +391,7 @@ PHP_METHOD(Test_Cast, testIntCastFromVariableStdClass) { /** * @see https://github.com/phalcon/zephir/issues/1988 */ -PHP_METHOD(Test_Cast, testLongCastFromChar) { +PHP_METHOD(Stub_Cast, testLongCastFromChar) { zval *this_ptr = getThis(); @@ -403,7 +403,7 @@ PHP_METHOD(Test_Cast, testLongCastFromChar) { /** * @see https://github.com/phalcon/zephir/issues/1988 */ -PHP_METHOD(Test_Cast, testLongCastFromVariableChar) { +PHP_METHOD(Stub_Cast, testLongCastFromVariableChar) { char a; zval *this_ptr = getThis(); @@ -415,7 +415,7 @@ PHP_METHOD(Test_Cast, testLongCastFromVariableChar) { } -PHP_METHOD(Test_Cast, testFloatCastFromFloat) { +PHP_METHOD(Stub_Cast, testFloatCastFromFloat) { zval *this_ptr = getThis(); @@ -424,7 +424,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromFloat) { } -PHP_METHOD(Test_Cast, testFloatCastFromVariableFloat) { +PHP_METHOD(Stub_Cast, testFloatCastFromVariableFloat) { double a; zval *this_ptr = getThis(); @@ -436,7 +436,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromVariableFloat) { } -PHP_METHOD(Test_Cast, testFloatCastFromBooleanTrue) { +PHP_METHOD(Stub_Cast, testFloatCastFromBooleanTrue) { zval *this_ptr = getThis(); @@ -445,7 +445,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromBooleanTrue) { } -PHP_METHOD(Test_Cast, testFloatCastFromBooleanFalse) { +PHP_METHOD(Stub_Cast, testFloatCastFromBooleanFalse) { zval *this_ptr = getThis(); @@ -454,7 +454,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromBooleanFalse) { } -PHP_METHOD(Test_Cast, testFloatCastFromVariableBooleanTrue) { +PHP_METHOD(Stub_Cast, testFloatCastFromVariableBooleanTrue) { zend_bool a; zval *this_ptr = getThis(); @@ -466,7 +466,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromVariableBooleanTrue) { } -PHP_METHOD(Test_Cast, testFloatCastFromVariableBooleanFalse) { +PHP_METHOD(Stub_Cast, testFloatCastFromVariableBooleanFalse) { zend_bool a; zval *this_ptr = getThis(); @@ -478,7 +478,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromVariableBooleanFalse) { } -PHP_METHOD(Test_Cast, testFloatCastFromVariableNull) { +PHP_METHOD(Stub_Cast, testFloatCastFromVariableNull) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -494,7 +494,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromVariableNull) { } -PHP_METHOD(Test_Cast, testFloatCastFromNull) { +PHP_METHOD(Stub_Cast, testFloatCastFromNull) { zval *this_ptr = getThis(); @@ -503,7 +503,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromNull) { } -PHP_METHOD(Test_Cast, testFloatCastFromVariableEmptyArray) { +PHP_METHOD(Stub_Cast, testFloatCastFromVariableEmptyArray) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -519,7 +519,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromVariableEmptyArray) { } -PHP_METHOD(Test_Cast, testFloatCastFromEmptyArray) { +PHP_METHOD(Stub_Cast, testFloatCastFromEmptyArray) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -535,7 +535,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromEmptyArray) { } -PHP_METHOD(Test_Cast, testFloatCastFromVariableArray) { +PHP_METHOD(Stub_Cast, testFloatCastFromVariableArray) { zval a, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -564,7 +564,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromVariableArray) { } -PHP_METHOD(Test_Cast, testFloatCastFromArray) { +PHP_METHOD(Stub_Cast, testFloatCastFromArray) { zval _1; zval _0; @@ -598,7 +598,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromArray) { * Notice: Object of class stdClass could not be converted to int * @return int 1 */ -PHP_METHOD(Test_Cast, testFloatCastFromStdClass) { +PHP_METHOD(Stub_Cast, testFloatCastFromStdClass) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -618,7 +618,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromStdClass) { * Notice: Object of class stdClass could not be converted to int * @return int 1 */ -PHP_METHOD(Test_Cast, testFloatCastFromVariableStdClass) { +PHP_METHOD(Stub_Cast, testFloatCastFromVariableStdClass) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -637,7 +637,7 @@ PHP_METHOD(Test_Cast, testFloatCastFromVariableStdClass) { /** * @see https://github.com/phalcon/zephir/issues/1988 */ -PHP_METHOD(Test_Cast, testDoubleCastFromVChar) { +PHP_METHOD(Stub_Cast, testDoubleCastFromVChar) { zval *this_ptr = getThis(); @@ -649,7 +649,7 @@ PHP_METHOD(Test_Cast, testDoubleCastFromVChar) { /** * @see https://github.com/phalcon/zephir/issues/1988 */ -PHP_METHOD(Test_Cast, testDoubleCastFromVariableChar) { +PHP_METHOD(Stub_Cast, testDoubleCastFromVariableChar) { char a; zval *this_ptr = getThis(); @@ -661,7 +661,7 @@ PHP_METHOD(Test_Cast, testDoubleCastFromVariableChar) { } -PHP_METHOD(Test_Cast, testBooleanCastFromIntTrue1) { +PHP_METHOD(Stub_Cast, testBooleanCastFromIntTrue1) { zval *this_ptr = getThis(); @@ -670,7 +670,7 @@ PHP_METHOD(Test_Cast, testBooleanCastFromIntTrue1) { } -PHP_METHOD(Test_Cast, testBooleanCastFromIntTrue2) { +PHP_METHOD(Stub_Cast, testBooleanCastFromIntTrue2) { zval *this_ptr = getThis(); @@ -679,7 +679,7 @@ PHP_METHOD(Test_Cast, testBooleanCastFromIntTrue2) { } -PHP_METHOD(Test_Cast, testBooleanCastFromIntFalse) { +PHP_METHOD(Stub_Cast, testBooleanCastFromIntFalse) { zval *this_ptr = getThis(); @@ -688,7 +688,7 @@ PHP_METHOD(Test_Cast, testBooleanCastFromIntFalse) { } -PHP_METHOD(Test_Cast, testBooleanCastFromObject) { +PHP_METHOD(Stub_Cast, testBooleanCastFromObject) { zval simpleObject; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -704,7 +704,7 @@ PHP_METHOD(Test_Cast, testBooleanCastFromObject) { } -PHP_METHOD(Test_Cast, testBooleanCastFromEmptyArray) { +PHP_METHOD(Stub_Cast, testBooleanCastFromEmptyArray) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -720,7 +720,7 @@ PHP_METHOD(Test_Cast, testBooleanCastFromEmptyArray) { } -PHP_METHOD(Test_Cast, testBooleanCastFromArray) { +PHP_METHOD(Stub_Cast, testBooleanCastFromArray) { zval a, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -749,7 +749,7 @@ PHP_METHOD(Test_Cast, testBooleanCastFromArray) { } -PHP_METHOD(Test_Cast, testBooleanCastFromNull) { +PHP_METHOD(Stub_Cast, testBooleanCastFromNull) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -768,7 +768,7 @@ PHP_METHOD(Test_Cast, testBooleanCastFromNull) { /** * @see https://github.com/phalcon/zephir/issues/1988 */ -PHP_METHOD(Test_Cast, testBooleanCastFromChar) { +PHP_METHOD(Stub_Cast, testBooleanCastFromChar) { zval *this_ptr = getThis(); @@ -780,7 +780,7 @@ PHP_METHOD(Test_Cast, testBooleanCastFromChar) { /** * @see https://github.com/phalcon/zephir/issues/1988 */ -PHP_METHOD(Test_Cast, testBooleanCastFromVariableChar) { +PHP_METHOD(Stub_Cast, testBooleanCastFromVariableChar) { char a; zval *this_ptr = getThis(); @@ -792,7 +792,7 @@ PHP_METHOD(Test_Cast, testBooleanCastFromVariableChar) { } -PHP_METHOD(Test_Cast, testObjectCastFromInt) { +PHP_METHOD(Stub_Cast, testObjectCastFromInt) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -809,7 +809,7 @@ PHP_METHOD(Test_Cast, testObjectCastFromInt) { } -PHP_METHOD(Test_Cast, testObjectCastFromFloat) { +PHP_METHOD(Stub_Cast, testObjectCastFromFloat) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -826,7 +826,7 @@ PHP_METHOD(Test_Cast, testObjectCastFromFloat) { } -PHP_METHOD(Test_Cast, testObjectCastFromFalse) { +PHP_METHOD(Stub_Cast, testObjectCastFromFalse) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -843,7 +843,7 @@ PHP_METHOD(Test_Cast, testObjectCastFromFalse) { } -PHP_METHOD(Test_Cast, testObjectCastFromTrue) { +PHP_METHOD(Stub_Cast, testObjectCastFromTrue) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -860,7 +860,7 @@ PHP_METHOD(Test_Cast, testObjectCastFromTrue) { } -PHP_METHOD(Test_Cast, testObjectCastFromNull) { +PHP_METHOD(Stub_Cast, testObjectCastFromNull) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -877,7 +877,7 @@ PHP_METHOD(Test_Cast, testObjectCastFromNull) { } -PHP_METHOD(Test_Cast, testObjectCastFromEmptyArray) { +PHP_METHOD(Stub_Cast, testObjectCastFromEmptyArray) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -896,7 +896,7 @@ PHP_METHOD(Test_Cast, testObjectCastFromEmptyArray) { } -PHP_METHOD(Test_Cast, testObjectCastFromArray) { +PHP_METHOD(Stub_Cast, testObjectCastFromArray) { zval _1, _2; zval _0; @@ -929,7 +929,7 @@ PHP_METHOD(Test_Cast, testObjectCastFromArray) { } -PHP_METHOD(Test_Cast, testObjectCastFromEmptyString) { +PHP_METHOD(Stub_Cast, testObjectCastFromEmptyString) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -946,7 +946,7 @@ PHP_METHOD(Test_Cast, testObjectCastFromEmptyString) { } -PHP_METHOD(Test_Cast, testObjectCastFromString) { +PHP_METHOD(Stub_Cast, testObjectCastFromString) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -963,7 +963,7 @@ PHP_METHOD(Test_Cast, testObjectCastFromString) { } -PHP_METHOD(Test_Cast, testCastStdinToInteger) { +PHP_METHOD(Stub_Cast, testCastStdinToInteger) { zval handle; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -979,7 +979,7 @@ PHP_METHOD(Test_Cast, testCastStdinToInteger) { } -PHP_METHOD(Test_Cast, testCastStdoutToInteger) { +PHP_METHOD(Stub_Cast, testCastStdoutToInteger) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -995,7 +995,7 @@ PHP_METHOD(Test_Cast, testCastStdoutToInteger) { } -PHP_METHOD(Test_Cast, testCastFileResourceToInteger) { +PHP_METHOD(Stub_Cast, testCastFileResourceToInteger) { zend_long id = 0; zval *fileName, fileName_sub; @@ -1012,7 +1012,7 @@ PHP_METHOD(Test_Cast, testCastFileResourceToInteger) { } -PHP_METHOD(Test_Cast, testArrayCastFromVariableArray) { +PHP_METHOD(Stub_Cast, testArrayCastFromVariableArray) { zval _1; zval uids, _0; @@ -1042,7 +1042,7 @@ PHP_METHOD(Test_Cast, testArrayCastFromVariableArray) { } -PHP_METHOD(Test_Cast, testArrayCastFromVariableTrue) { +PHP_METHOD(Stub_Cast, testArrayCastFromVariableTrue) { zval _0; zval uids; @@ -1062,7 +1062,7 @@ PHP_METHOD(Test_Cast, testArrayCastFromVariableTrue) { } -PHP_METHOD(Test_Cast, testArrayCastFromVariableFalse) { +PHP_METHOD(Stub_Cast, testArrayCastFromVariableFalse) { zval _0; zval uids; @@ -1082,7 +1082,7 @@ PHP_METHOD(Test_Cast, testArrayCastFromVariableFalse) { } -PHP_METHOD(Test_Cast, testArrayCastFromVariableNull) { +PHP_METHOD(Stub_Cast, testArrayCastFromVariableNull) { zval _0; zval uids; @@ -1102,7 +1102,7 @@ PHP_METHOD(Test_Cast, testArrayCastFromVariableNull) { } -PHP_METHOD(Test_Cast, testArrayCastFromVariableInteger) { +PHP_METHOD(Stub_Cast, testArrayCastFromVariableInteger) { zval _0; zval uids; @@ -1122,7 +1122,7 @@ PHP_METHOD(Test_Cast, testArrayCastFromVariableInteger) { } -PHP_METHOD(Test_Cast, testArrayCastFromVariableFloat) { +PHP_METHOD(Stub_Cast, testArrayCastFromVariableFloat) { zval _0; zval uids; @@ -1142,7 +1142,7 @@ PHP_METHOD(Test_Cast, testArrayCastFromVariableFloat) { } -PHP_METHOD(Test_Cast, testArrayCastFromVariableString) { +PHP_METHOD(Stub_Cast, testArrayCastFromVariableString) { zval _0; zval uids; @@ -1162,7 +1162,7 @@ PHP_METHOD(Test_Cast, testArrayCastFromVariableString) { } -PHP_METHOD(Test_Cast, testArrayCastFromVariableStdClass) { +PHP_METHOD(Stub_Cast, testArrayCastFromVariableStdClass) { zval _1; zval uids, _0; diff --git a/ext/stub/cast.zep.h b/ext/stub/cast.zep.h new file mode 100644 index 0000000000..485a58f1cd --- /dev/null +++ b/ext/stub/cast.zep.h @@ -0,0 +1,582 @@ + +extern zend_class_entry *stub_cast_ce; + +ZEPHIR_INIT_CLASS(Stub_Cast); + +PHP_METHOD(Stub_Cast, testCharCastFromChar); +PHP_METHOD(Stub_Cast, testCharCastFromVariableChar); +PHP_METHOD(Stub_Cast, testStringCastChar); +PHP_METHOD(Stub_Cast, testStringCastVariableChar); +PHP_METHOD(Stub_Cast, testIntCastFromFloat); +PHP_METHOD(Stub_Cast, testIntCastFromVariableFloat); +PHP_METHOD(Stub_Cast, testIntCastFromChar); +PHP_METHOD(Stub_Cast, testIntCastFromVariableChar); +PHP_METHOD(Stub_Cast, testIntCastFromBooleanTrue); +PHP_METHOD(Stub_Cast, testIntCastFromBooleanFalse); +PHP_METHOD(Stub_Cast, testIntCastFromVariableBooleanTrue); +PHP_METHOD(Stub_Cast, testIntCastFromVariableBooleanFalse); +PHP_METHOD(Stub_Cast, testIntCastFromVariableNull); +PHP_METHOD(Stub_Cast, testIntCastFromStringValue); +PHP_METHOD(Stub_Cast, testIntCastFromVariableString); +PHP_METHOD(Stub_Cast, testIntCastFromParameterString); +PHP_METHOD(Stub_Cast, testIntCastFromNull); +PHP_METHOD(Stub_Cast, testIntCastFromVariableEmptyArray); +PHP_METHOD(Stub_Cast, testIntCastFromEmptyArray); +PHP_METHOD(Stub_Cast, testIntCastFromVariableArray); +PHP_METHOD(Stub_Cast, testIntCastFromArray); +PHP_METHOD(Stub_Cast, testIntCastFromStdClass); +PHP_METHOD(Stub_Cast, testIntCastFromVariableStdClass); +PHP_METHOD(Stub_Cast, testLongCastFromChar); +PHP_METHOD(Stub_Cast, testLongCastFromVariableChar); +PHP_METHOD(Stub_Cast, testFloatCastFromFloat); +PHP_METHOD(Stub_Cast, testFloatCastFromVariableFloat); +PHP_METHOD(Stub_Cast, testFloatCastFromBooleanTrue); +PHP_METHOD(Stub_Cast, testFloatCastFromBooleanFalse); +PHP_METHOD(Stub_Cast, testFloatCastFromVariableBooleanTrue); +PHP_METHOD(Stub_Cast, testFloatCastFromVariableBooleanFalse); +PHP_METHOD(Stub_Cast, testFloatCastFromVariableNull); +PHP_METHOD(Stub_Cast, testFloatCastFromNull); +PHP_METHOD(Stub_Cast, testFloatCastFromVariableEmptyArray); +PHP_METHOD(Stub_Cast, testFloatCastFromEmptyArray); +PHP_METHOD(Stub_Cast, testFloatCastFromVariableArray); +PHP_METHOD(Stub_Cast, testFloatCastFromArray); +PHP_METHOD(Stub_Cast, testFloatCastFromStdClass); +PHP_METHOD(Stub_Cast, testFloatCastFromVariableStdClass); +PHP_METHOD(Stub_Cast, testDoubleCastFromVChar); +PHP_METHOD(Stub_Cast, testDoubleCastFromVariableChar); +PHP_METHOD(Stub_Cast, testBooleanCastFromIntTrue1); +PHP_METHOD(Stub_Cast, testBooleanCastFromIntTrue2); +PHP_METHOD(Stub_Cast, testBooleanCastFromIntFalse); +PHP_METHOD(Stub_Cast, testBooleanCastFromObject); +PHP_METHOD(Stub_Cast, testBooleanCastFromEmptyArray); +PHP_METHOD(Stub_Cast, testBooleanCastFromArray); +PHP_METHOD(Stub_Cast, testBooleanCastFromNull); +PHP_METHOD(Stub_Cast, testBooleanCastFromChar); +PHP_METHOD(Stub_Cast, testBooleanCastFromVariableChar); +PHP_METHOD(Stub_Cast, testObjectCastFromInt); +PHP_METHOD(Stub_Cast, testObjectCastFromFloat); +PHP_METHOD(Stub_Cast, testObjectCastFromFalse); +PHP_METHOD(Stub_Cast, testObjectCastFromTrue); +PHP_METHOD(Stub_Cast, testObjectCastFromNull); +PHP_METHOD(Stub_Cast, testObjectCastFromEmptyArray); +PHP_METHOD(Stub_Cast, testObjectCastFromArray); +PHP_METHOD(Stub_Cast, testObjectCastFromEmptyString); +PHP_METHOD(Stub_Cast, testObjectCastFromString); +PHP_METHOD(Stub_Cast, testCastStdinToInteger); +PHP_METHOD(Stub_Cast, testCastStdoutToInteger); +PHP_METHOD(Stub_Cast, testCastFileResourceToInteger); +PHP_METHOD(Stub_Cast, testArrayCastFromVariableArray); +PHP_METHOD(Stub_Cast, testArrayCastFromVariableTrue); +PHP_METHOD(Stub_Cast, testArrayCastFromVariableFalse); +PHP_METHOD(Stub_Cast, testArrayCastFromVariableNull); +PHP_METHOD(Stub_Cast, testArrayCastFromVariableInteger); +PHP_METHOD(Stub_Cast, testArrayCastFromVariableFloat); +PHP_METHOD(Stub_Cast, testArrayCastFromVariableString); +PHP_METHOD(Stub_Cast, testArrayCastFromVariableStdClass); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testcharcastfromchar, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testcharcastfromchar, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testcharcastfromvariablechar, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testcharcastfromvariablechar, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_teststringcastchar, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_teststringcastchar, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_teststringcastvariablechar, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_teststringcastvariablechar, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromfloat, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromfloat, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablefloat, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablefloat, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromchar, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromchar, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablechar, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablechar, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfrombooleantrue, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfrombooleantrue, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfrombooleanfalse, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfrombooleanfalse, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablebooleantrue, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablebooleantrue, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablebooleanfalse, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablebooleanfalse, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablenull, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablenull, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromstringvalue, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromstringvalue, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablestring, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablestring, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromparameterstring, 0, 1, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromparameterstring, 0, 1, IS_LONG, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromnull, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromnull, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariableemptyarray, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariableemptyarray, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromemptyarray, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromemptyarray, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablearray, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablearray, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromarray, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromarray, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromstdclass, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromstdclass, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablestdclass, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testintcastfromvariablestdclass, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testlongcastfromchar, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testlongcastfromchar, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testlongcastfromvariablechar, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testlongcastfromvariablechar, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromfloat, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromfloat, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariablefloat, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariablefloat, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfrombooleantrue, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfrombooleantrue, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfrombooleanfalse, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfrombooleanfalse, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariablebooleantrue, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariablebooleantrue, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariablebooleanfalse, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariablebooleanfalse, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariablenull, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariablenull, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromnull, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromnull, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariableemptyarray, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariableemptyarray, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromemptyarray, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromemptyarray, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariablearray, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariablearray, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromarray, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromarray, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromstdclass, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromstdclass, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariablestdclass, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testfloatcastfromvariablestdclass, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testdoublecastfromvchar, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testdoublecastfromvchar, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testdoublecastfromvariablechar, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testdoublecastfromvariablechar, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfrominttrue1, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfrominttrue1, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfrominttrue2, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfrominttrue2, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromintfalse, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromintfalse, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromobject, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromobject, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromemptyarray, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromemptyarray, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromarray, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromarray, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromnull, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromnull, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromchar, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromchar, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromvariablechar, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testbooleancastfromvariablechar, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testcaststdintointeger, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testcaststdintointeger, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testcaststdouttointeger, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testcaststdouttointeger, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testcastfileresourcetointeger, 0, 1, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testcastfileresourcetointeger, 0, 1, IS_LONG, NULL, 0) +#endif + ZEND_ARG_INFO(0, fileName) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariablearray, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariablearray, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariabletrue, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariabletrue, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariablefalse, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariablefalse, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariablenull, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariablenull, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariableinteger, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariableinteger, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariablefloat, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariablefloat, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariablestring, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariablestring, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariablestdclass, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_cast_testarraycastfromvariablestdclass, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_cast_method_entry) { + PHP_ME(Stub_Cast, testCharCastFromChar, arginfo_stub_cast_testcharcastfromchar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testCharCastFromVariableChar, arginfo_stub_cast_testcharcastfromvariablechar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testStringCastChar, arginfo_stub_cast_teststringcastchar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testStringCastVariableChar, arginfo_stub_cast_teststringcastvariablechar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromFloat, arginfo_stub_cast_testintcastfromfloat, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromVariableFloat, arginfo_stub_cast_testintcastfromvariablefloat, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromChar, arginfo_stub_cast_testintcastfromchar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromVariableChar, arginfo_stub_cast_testintcastfromvariablechar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromBooleanTrue, arginfo_stub_cast_testintcastfrombooleantrue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromBooleanFalse, arginfo_stub_cast_testintcastfrombooleanfalse, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromVariableBooleanTrue, arginfo_stub_cast_testintcastfromvariablebooleantrue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromVariableBooleanFalse, arginfo_stub_cast_testintcastfromvariablebooleanfalse, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromVariableNull, arginfo_stub_cast_testintcastfromvariablenull, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromStringValue, arginfo_stub_cast_testintcastfromstringvalue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromVariableString, arginfo_stub_cast_testintcastfromvariablestring, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromParameterString, arginfo_stub_cast_testintcastfromparameterstring, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromNull, arginfo_stub_cast_testintcastfromnull, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromVariableEmptyArray, arginfo_stub_cast_testintcastfromvariableemptyarray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromEmptyArray, arginfo_stub_cast_testintcastfromemptyarray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromVariableArray, arginfo_stub_cast_testintcastfromvariablearray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromArray, arginfo_stub_cast_testintcastfromarray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromStdClass, arginfo_stub_cast_testintcastfromstdclass, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testIntCastFromVariableStdClass, arginfo_stub_cast_testintcastfromvariablestdclass, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testLongCastFromChar, arginfo_stub_cast_testlongcastfromchar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testLongCastFromVariableChar, arginfo_stub_cast_testlongcastfromvariablechar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromFloat, arginfo_stub_cast_testfloatcastfromfloat, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromVariableFloat, arginfo_stub_cast_testfloatcastfromvariablefloat, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromBooleanTrue, arginfo_stub_cast_testfloatcastfrombooleantrue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromBooleanFalse, arginfo_stub_cast_testfloatcastfrombooleanfalse, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromVariableBooleanTrue, arginfo_stub_cast_testfloatcastfromvariablebooleantrue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromVariableBooleanFalse, arginfo_stub_cast_testfloatcastfromvariablebooleanfalse, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromVariableNull, arginfo_stub_cast_testfloatcastfromvariablenull, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromNull, arginfo_stub_cast_testfloatcastfromnull, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromVariableEmptyArray, arginfo_stub_cast_testfloatcastfromvariableemptyarray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromEmptyArray, arginfo_stub_cast_testfloatcastfromemptyarray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromVariableArray, arginfo_stub_cast_testfloatcastfromvariablearray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromArray, arginfo_stub_cast_testfloatcastfromarray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromStdClass, arginfo_stub_cast_testfloatcastfromstdclass, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testFloatCastFromVariableStdClass, arginfo_stub_cast_testfloatcastfromvariablestdclass, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testDoubleCastFromVChar, arginfo_stub_cast_testdoublecastfromvchar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testDoubleCastFromVariableChar, arginfo_stub_cast_testdoublecastfromvariablechar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testBooleanCastFromIntTrue1, arginfo_stub_cast_testbooleancastfrominttrue1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testBooleanCastFromIntTrue2, arginfo_stub_cast_testbooleancastfrominttrue2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testBooleanCastFromIntFalse, arginfo_stub_cast_testbooleancastfromintfalse, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testBooleanCastFromObject, arginfo_stub_cast_testbooleancastfromobject, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testBooleanCastFromEmptyArray, arginfo_stub_cast_testbooleancastfromemptyarray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testBooleanCastFromArray, arginfo_stub_cast_testbooleancastfromarray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testBooleanCastFromNull, arginfo_stub_cast_testbooleancastfromnull, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testBooleanCastFromChar, arginfo_stub_cast_testbooleancastfromchar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testBooleanCastFromVariableChar, arginfo_stub_cast_testbooleancastfromvariablechar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testObjectCastFromInt, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testObjectCastFromFloat, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testObjectCastFromFalse, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testObjectCastFromTrue, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testObjectCastFromNull, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testObjectCastFromEmptyArray, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testObjectCastFromArray, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testObjectCastFromEmptyString, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testObjectCastFromString, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testCastStdinToInteger, arginfo_stub_cast_testcaststdintointeger, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testCastStdoutToInteger, arginfo_stub_cast_testcaststdouttointeger, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testCastFileResourceToInteger, arginfo_stub_cast_testcastfileresourcetointeger, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testArrayCastFromVariableArray, arginfo_stub_cast_testarraycastfromvariablearray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testArrayCastFromVariableTrue, arginfo_stub_cast_testarraycastfromvariabletrue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testArrayCastFromVariableFalse, arginfo_stub_cast_testarraycastfromvariablefalse, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testArrayCastFromVariableNull, arginfo_stub_cast_testarraycastfromvariablenull, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testArrayCastFromVariableInteger, arginfo_stub_cast_testarraycastfromvariableinteger, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testArrayCastFromVariableFloat, arginfo_stub_cast_testarraycastfromvariablefloat, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testArrayCastFromVariableString, arginfo_stub_cast_testarraycastfromvariablestring, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cast, testArrayCastFromVariableStdClass, arginfo_stub_cast_testarraycastfromvariablestdclass, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/cblock.zep.c b/ext/stub/cblock.zep.c similarity index 83% rename from ext/test/cblock.zep.c rename to ext/stub/cblock.zep.c index a77d557336..3b80e926a8 100644 --- a/ext/test/cblock.zep.c +++ b/ext/stub/cblock.zep.c @@ -36,15 +36,15 @@ static long fibonacci(long n) { /** * CBLOCK tests */ -ZEPHIR_INIT_CLASS(Test_Cblock) { +ZEPHIR_INIT_CLASS(Stub_Cblock) { - ZEPHIR_REGISTER_CLASS(Test, Cblock, test, cblock, test_cblock_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Cblock, stub, cblock, stub_cblock_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Cblock, testCblock1) { +PHP_METHOD(Stub_Cblock, testCblock1) { zend_long a; zval *this_ptr = getThis(); @@ -59,7 +59,7 @@ PHP_METHOD(Test_Cblock, testCblock1) { } -PHP_METHOD(Test_Cblock, testCblock2) { +PHP_METHOD(Stub_Cblock, testCblock2) { long a; zval *this_ptr = getThis(); diff --git a/ext/stub/cblock.zep.h b/ext/stub/cblock.zep.h new file mode 100644 index 0000000000..a13ff49de6 --- /dev/null +++ b/ext/stub/cblock.zep.h @@ -0,0 +1,13 @@ + +extern zend_class_entry *stub_cblock_ce; + +ZEPHIR_INIT_CLASS(Stub_Cblock); + +PHP_METHOD(Stub_Cblock, testCblock1); +PHP_METHOD(Stub_Cblock, testCblock2); + +ZEPHIR_INIT_FUNCS(stub_cblock_method_entry) { + PHP_ME(Stub_Cblock, testCblock1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Cblock, testCblock2, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/chars.zep.c b/ext/stub/chars.zep.c similarity index 81% rename from ext/test/chars.zep.c rename to ext/stub/chars.zep.c index f68ad41651..711183baef 100644 --- a/ext/test/chars.zep.c +++ b/ext/stub/chars.zep.c @@ -20,15 +20,15 @@ /** * Chars specific tests */ -ZEPHIR_INIT_CLASS(Test_Chars) { +ZEPHIR_INIT_CLASS(Stub_Chars) { - ZEPHIR_REGISTER_CLASS(Test, Chars, test, chars, test_chars_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Chars, stub, chars, stub_chars_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Chars, sumChars1) { +PHP_METHOD(Stub_Chars, sumChars1) { char ch, chlower = 0; zval *this_ptr = getThis(); @@ -41,7 +41,7 @@ PHP_METHOD(Test_Chars, sumChars1) { } -PHP_METHOD(Test_Chars, sumChars2) { +PHP_METHOD(Stub_Chars, sumChars2) { zval *ch_param = NULL; char ch, chlower = 0; @@ -58,7 +58,7 @@ PHP_METHOD(Test_Chars, sumChars2) { } -PHP_METHOD(Test_Chars, diffChars1) { +PHP_METHOD(Stub_Chars, diffChars1) { char ch, chlower = 0; zval *this_ptr = getThis(); @@ -71,7 +71,7 @@ PHP_METHOD(Test_Chars, diffChars1) { } -PHP_METHOD(Test_Chars, diffChars2) { +PHP_METHOD(Stub_Chars, diffChars2) { zval *ch_param = NULL; char ch, chlower = 0; diff --git a/ext/stub/chars.zep.h b/ext/stub/chars.zep.h new file mode 100644 index 0000000000..f5e4a4b473 --- /dev/null +++ b/ext/stub/chars.zep.h @@ -0,0 +1,55 @@ + +extern zend_class_entry *stub_chars_ce; + +ZEPHIR_INIT_CLASS(Stub_Chars); + +PHP_METHOD(Stub_Chars, sumChars1); +PHP_METHOD(Stub_Chars, sumChars2); +PHP_METHOD(Stub_Chars, diffChars1); +PHP_METHOD(Stub_Chars, diffChars2); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_chars_sumchars1, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_chars_sumchars1, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_chars_sumchars2, 0, 1, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_chars_sumchars2, 0, 1, IS_LONG, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, ch, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, ch) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_chars_diffchars1, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_chars_diffchars1, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_chars_diffchars2, 0, 1, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_chars_diffchars2, 0, 1, IS_LONG, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, ch, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, ch) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_chars_method_entry) { + PHP_ME(Stub_Chars, sumChars1, arginfo_stub_chars_sumchars1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Chars, sumChars2, arginfo_stub_chars_sumchars2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Chars, diffChars1, arginfo_stub_chars_diffchars1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Chars, diffChars2, arginfo_stub_chars_diffchars2, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/closures.zep.c b/ext/stub/closures.zep.c similarity index 54% rename from ext/test/closures.zep.c rename to ext/stub/closures.zep.c index 8e86513d00..306963c307 100644 --- a/ext/test/closures.zep.c +++ b/ext/stub/closures.zep.c @@ -18,85 +18,85 @@ #include "kernel/exception.h" -ZEPHIR_INIT_CLASS(Test_Closures) { +ZEPHIR_INIT_CLASS(Stub_Closures) { - ZEPHIR_REGISTER_CLASS(Test, Closures, test, closures, test_closures_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Closures, stub, closures, stub_closures_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Closures, simple1) { +PHP_METHOD(Stub_Closures, simple1) { zval *this_ptr = getThis(); - zephir_create_closure_ex(return_value, NULL, test_1__closure_ce, SL("__invoke")); + zephir_create_closure_ex(return_value, NULL, stub_1__closure_ce, SL("__invoke")); return; } -PHP_METHOD(Test_Closures, simple2) { +PHP_METHOD(Stub_Closures, simple2) { zval *this_ptr = getThis(); - zephir_create_closure_ex(return_value, NULL, test_2__closure_ce, SL("__invoke")); + zephir_create_closure_ex(return_value, NULL, stub_2__closure_ce, SL("__invoke")); return; } -PHP_METHOD(Test_Closures, simple3) { +PHP_METHOD(Stub_Closures, simple3) { zval *this_ptr = getThis(); - zephir_create_closure_ex(return_value, NULL, test_3__closure_ce, SL("__invoke")); + zephir_create_closure_ex(return_value, NULL, stub_3__closure_ce, SL("__invoke")); return; } -PHP_METHOD(Test_Closures, simple4) { +PHP_METHOD(Stub_Closures, simple4) { zval *this_ptr = getThis(); - zephir_create_closure_ex(return_value, NULL, test_4__closure_ce, SL("__invoke")); + zephir_create_closure_ex(return_value, NULL, stub_4__closure_ce, SL("__invoke")); return; } -PHP_METHOD(Test_Closures, simple5) { +PHP_METHOD(Stub_Closures, simple5) { zval *this_ptr = getThis(); - zephir_create_closure_ex(return_value, NULL, test_5__closure_ce, SL("__invoke")); + zephir_create_closure_ex(return_value, NULL, stub_5__closure_ce, SL("__invoke")); return; } -PHP_METHOD(Test_Closures, arrow1) { +PHP_METHOD(Stub_Closures, arrow1) { zval *this_ptr = getThis(); - zephir_create_closure_ex(return_value, NULL, test_6__closure_ce, SL("__invoke")); + zephir_create_closure_ex(return_value, NULL, stub_6__closure_ce, SL("__invoke")); return; } -PHP_METHOD(Test_Closures, arrow2) { +PHP_METHOD(Stub_Closures, arrow2) { zval *this_ptr = getThis(); - zephir_create_closure_ex(return_value, NULL, test_7__closure_ce, SL("__invoke")); + zephir_create_closure_ex(return_value, NULL, stub_7__closure_ce, SL("__invoke")); return; } -PHP_METHOD(Test_Closures, testUseCommand) { +PHP_METHOD(Stub_Closures, testUseCommand) { zval _0; zend_long abc; @@ -106,15 +106,15 @@ PHP_METHOD(Test_Closures, testUseCommand) { abc = 1; - zephir_create_closure_ex(return_value, NULL, test_8__closure_ce, SL("__invoke")); + zephir_create_closure_ex(return_value, NULL, stub_8__closure_ce, SL("__invoke")); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, abc); - zephir_update_static_property_ce(test_8__closure_ce, ZEND_STRL("abc"), &_0); + zephir_update_static_property_ce(stub_8__closure_ce, ZEND_STRL("abc"), &_0); return; } -PHP_METHOD(Test_Closures, issue1860) { +PHP_METHOD(Stub_Closures, issue1860) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *abc_param = NULL; @@ -129,8 +129,8 @@ PHP_METHOD(Test_Closures, issue1860) { ZEPHIR_OBS_COPY_OR_DUP(&abc, abc_param); - zephir_create_closure_ex(return_value, NULL, test_9__closure_ce, SL("__invoke")); - zephir_update_static_property_ce(test_9__closure_ce, ZEND_STRL("abc"), &abc); + zephir_create_closure_ex(return_value, NULL, stub_9__closure_ce, SL("__invoke")); + zephir_update_static_property_ce(stub_9__closure_ce, ZEND_STRL("abc"), &abc); RETURN_MM(); } diff --git a/ext/stub/closures.zep.h b/ext/stub/closures.zep.h new file mode 100644 index 0000000000..d5263ded54 --- /dev/null +++ b/ext/stub/closures.zep.h @@ -0,0 +1,31 @@ + +extern zend_class_entry *stub_closures_ce; + +ZEPHIR_INIT_CLASS(Stub_Closures); + +PHP_METHOD(Stub_Closures, simple1); +PHP_METHOD(Stub_Closures, simple2); +PHP_METHOD(Stub_Closures, simple3); +PHP_METHOD(Stub_Closures, simple4); +PHP_METHOD(Stub_Closures, simple5); +PHP_METHOD(Stub_Closures, arrow1); +PHP_METHOD(Stub_Closures, arrow2); +PHP_METHOD(Stub_Closures, testUseCommand); +PHP_METHOD(Stub_Closures, issue1860); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_closures_issue1860, 0, 0, 1) + ZEND_ARG_ARRAY_INFO(0, abc, 0) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_closures_method_entry) { + PHP_ME(Stub_Closures, simple1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Closures, simple2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Closures, simple3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Closures, simple4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Closures, simple5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Closures, arrow1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Closures, arrow2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Closures, testUseCommand, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Closures, issue1860, arginfo_stub_closures_issue1860, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/compare.zep.c b/ext/stub/compare.zep.c similarity index 83% rename from ext/test/compare.zep.c rename to ext/stub/compare.zep.c index 1793a3064a..27c8d98fd6 100644 --- a/ext/test/compare.zep.c +++ b/ext/stub/compare.zep.c @@ -19,17 +19,17 @@ #include "kernel/exception.h" -ZEPHIR_INIT_CLASS(Test_Compare) { +ZEPHIR_INIT_CLASS(Stub_Compare) { - ZEPHIR_REGISTER_CLASS(Test, Compare, test, compare, test_compare_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Compare, stub, compare, stub_compare_method_entry, 0); - zephir_declare_class_constant_double(test_compare_ce, SL("PI"), 3.14); + zephir_declare_class_constant_double(stub_compare_ce, SL("PI"), 3.14); return SUCCESS; } -PHP_METHOD(Test_Compare, isLessInt) { +PHP_METHOD(Stub_Compare, isLessInt) { zval *a_param = NULL, *b_param = NULL; zend_long a, b; @@ -46,7 +46,7 @@ PHP_METHOD(Test_Compare, isLessInt) { } -PHP_METHOD(Test_Compare, isGreaterEqual) { +PHP_METHOD(Stub_Compare, isGreaterEqual) { zval *a_param = NULL, *b_param = NULL; zend_long a, b; @@ -63,7 +63,7 @@ PHP_METHOD(Test_Compare, isGreaterEqual) { } -PHP_METHOD(Test_Compare, isLessDouble) { +PHP_METHOD(Stub_Compare, isLessDouble) { zval *a_param = NULL, *b_param = NULL; double a, b; @@ -80,7 +80,7 @@ PHP_METHOD(Test_Compare, isLessDouble) { } -PHP_METHOD(Test_Compare, isLessThenPi) { +PHP_METHOD(Stub_Compare, isLessThenPi) { zval *a_param = NULL; double a; @@ -96,7 +96,7 @@ PHP_METHOD(Test_Compare, isLessThenPi) { } -PHP_METHOD(Test_Compare, isMoreThenPi) { +PHP_METHOD(Stub_Compare, isMoreThenPi) { zval *a_param = NULL; double a; @@ -115,7 +115,7 @@ PHP_METHOD(Test_Compare, isMoreThenPi) { /** * @link https://github.com/phalcon/zephir/issues/411 */ -PHP_METHOD(Test_Compare, testVarWithStringEquals) { +PHP_METHOD(Stub_Compare, testVarWithStringEquals) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL; @@ -160,7 +160,7 @@ PHP_METHOD(Test_Compare, testVarWithStringEquals) { } -PHP_METHOD(Test_Compare, testVarEqualsNull) { +PHP_METHOD(Stub_Compare, testVarEqualsNull) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -178,7 +178,7 @@ PHP_METHOD(Test_Compare, testVarEqualsNull) { } -PHP_METHOD(Test_Compare, testNullEqualsVar) { +PHP_METHOD(Stub_Compare, testNullEqualsVar) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -196,7 +196,7 @@ PHP_METHOD(Test_Compare, testNullEqualsVar) { } -PHP_METHOD(Test_Compare, testNotIdenticalZeroVar) { +PHP_METHOD(Stub_Compare, testNotIdenticalZeroVar) { zend_long a; zval *this_ptr = getThis(); @@ -208,7 +208,7 @@ PHP_METHOD(Test_Compare, testNotIdenticalZeroVar) { } -PHP_METHOD(Test_Compare, testNotIdenticalZeroInt) { +PHP_METHOD(Stub_Compare, testNotIdenticalZeroInt) { zend_long a; zval *this_ptr = getThis(); @@ -220,7 +220,7 @@ PHP_METHOD(Test_Compare, testNotIdenticalZeroInt) { } -PHP_METHOD(Test_Compare, testNotIdenticalZeroLong) { +PHP_METHOD(Stub_Compare, testNotIdenticalZeroLong) { long a; zval *this_ptr = getThis(); diff --git a/ext/stub/compare.zep.h b/ext/stub/compare.zep.h new file mode 100644 index 0000000000..4405ef582e --- /dev/null +++ b/ext/stub/compare.zep.h @@ -0,0 +1,102 @@ + +extern zend_class_entry *stub_compare_ce; + +ZEPHIR_INIT_CLASS(Stub_Compare); + +PHP_METHOD(Stub_Compare, isLessInt); +PHP_METHOD(Stub_Compare, isGreaterEqual); +PHP_METHOD(Stub_Compare, isLessDouble); +PHP_METHOD(Stub_Compare, isLessThenPi); +PHP_METHOD(Stub_Compare, isMoreThenPi); +PHP_METHOD(Stub_Compare, testVarWithStringEquals); +PHP_METHOD(Stub_Compare, testVarEqualsNull); +PHP_METHOD(Stub_Compare, testNullEqualsVar); +PHP_METHOD(Stub_Compare, testNotIdenticalZeroVar); +PHP_METHOD(Stub_Compare, testNotIdenticalZeroInt); +PHP_METHOD(Stub_Compare, testNotIdenticalZeroLong); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_compare_islessint, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_compare_isgreaterequal, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_compare_islessdouble, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_compare_islessthenpi, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_compare_ismorethenpi, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_compare_testvarwithstringequals, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, str) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_compare_testvarequalsnull, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_compare_testnullequalsvar, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_compare_method_entry) { + PHP_ME(Stub_Compare, isLessInt, arginfo_stub_compare_islessint, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Compare, isGreaterEqual, arginfo_stub_compare_isgreaterequal, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Compare, isLessDouble, arginfo_stub_compare_islessdouble, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Compare, isLessThenPi, arginfo_stub_compare_islessthenpi, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Compare, isMoreThenPi, arginfo_stub_compare_ismorethenpi, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Compare, testVarWithStringEquals, arginfo_stub_compare_testvarwithstringequals, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Compare, testVarEqualsNull, arginfo_stub_compare_testvarequalsnull, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Compare, testNullEqualsVar, arginfo_stub_compare_testnullequalsvar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Compare, testNotIdenticalZeroVar, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Compare, testNotIdenticalZeroInt, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Compare, testNotIdenticalZeroLong, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/concat.zep.c b/ext/stub/concat.zep.c similarity index 85% rename from ext/test/concat.zep.c rename to ext/stub/concat.zep.c index 2b1ce8cf6e..837245a91c 100644 --- a/ext/test/concat.zep.c +++ b/ext/stub/concat.zep.c @@ -18,17 +18,17 @@ #include "kernel/concat.h" -ZEPHIR_INIT_CLASS(Test_Concat) { +ZEPHIR_INIT_CLASS(Stub_Concat) { - ZEPHIR_REGISTER_CLASS(Test, Concat, test, concat, test_concat_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Concat, stub, concat, stub_concat_method_entry, 0); - zend_declare_property_null(test_concat_ce, SL("testProperty"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_null(stub_concat_ce, SL("testProperty"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); return SUCCESS; } -PHP_METHOD(Test_Concat, getTestProperty) { +PHP_METHOD(Stub_Concat, getTestProperty) { zval _0; zval *this_ptr = getThis(); @@ -36,12 +36,12 @@ PHP_METHOD(Test_Concat, getTestProperty) { ZVAL_UNDEF(&_0); - zephir_read_static_property_ce(&_0, test_concat_ce, SL("testProperty"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_0, stub_concat_ce, SL("testProperty"), PH_NOISY_CC | PH_READONLY); RETURN_CTORW(&_0); } -PHP_METHOD(Test_Concat, testConcatBySelfProperty) { +PHP_METHOD(Stub_Concat, testConcatBySelfProperty) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *title_param = NULL, _0; @@ -58,15 +58,15 @@ PHP_METHOD(Test_Concat, testConcatBySelfProperty) { ZEPHIR_OBS_NVAR(&_0); - zephir_read_static_property_ce(&_0, test_concat_ce, SL("testProperty"), PH_NOISY_CC); + zephir_read_static_property_ce(&_0, stub_concat_ce, SL("testProperty"), PH_NOISY_CC); SEPARATE_ZVAL_IF_NOT_REF(&title); zephir_concat_function(&title, &_0, &title); - zephir_update_static_property_ce(test_concat_ce, ZEND_STRL("testProperty"), &title); + zephir_update_static_property_ce(stub_concat_ce, ZEND_STRL("testProperty"), &title); ZEPHIR_MM_RESTORE(); } -PHP_METHOD(Test_Concat, testConcat1) { +PHP_METHOD(Stub_Concat, testConcat1) { zval url, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -86,7 +86,7 @@ PHP_METHOD(Test_Concat, testConcat1) { } -PHP_METHOD(Test_Concat, testConcat2) { +PHP_METHOD(Stub_Concat, testConcat2) { zval _1; zval url, _0; @@ -117,7 +117,7 @@ PHP_METHOD(Test_Concat, testConcat2) { /** * @link https://github.com/phalcon/zephir/issues/1573 */ -PHP_METHOD(Test_Concat, testConcat3) { +PHP_METHOD(Stub_Concat, testConcat3) { zval a, b; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -140,7 +140,7 @@ PHP_METHOD(Test_Concat, testConcat3) { /** * @link https://github.com/phalcon/zephir/issues/1893 */ -PHP_METHOD(Test_Concat, testConcat4) { +PHP_METHOD(Stub_Concat, testConcat4) { zval query, _1, _3; double min = 0, max = 0; @@ -181,7 +181,7 @@ PHP_METHOD(Test_Concat, testConcat4) { /** * @link https://github.com/phalcon/zephir/issues/1893 */ -PHP_METHOD(Test_Concat, testConcat5) { +PHP_METHOD(Stub_Concat, testConcat5) { zval retval, left; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/concat.zep.h b/ext/stub/concat.zep.h new file mode 100644 index 0000000000..fb937cbf11 --- /dev/null +++ b/ext/stub/concat.zep.h @@ -0,0 +1,89 @@ + +extern zend_class_entry *stub_concat_ce; + +ZEPHIR_INIT_CLASS(Stub_Concat); + +PHP_METHOD(Stub_Concat, getTestProperty); +PHP_METHOD(Stub_Concat, testConcatBySelfProperty); +PHP_METHOD(Stub_Concat, testConcat1); +PHP_METHOD(Stub_Concat, testConcat2); +PHP_METHOD(Stub_Concat, testConcat3); +PHP_METHOD(Stub_Concat, testConcat4); +PHP_METHOD(Stub_Concat, testConcat5); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_gettestproperty, 0, 0, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_gettestproperty, 0, 0, IS_STRING, NULL, 1) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_testconcatbyselfproperty, 0, 1, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_testconcatbyselfproperty, 0, 1, IS_VOID, NULL, 0) +#endif +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_concat_testconcatbyselfproperty, 0, 0, 1) +#define arginfo_stub_concat_testconcatbyselfproperty NULL +#endif + +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, title, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, title) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_testconcat1, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_testconcat1, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_testconcat2, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_testconcat2, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_testconcat3, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_testconcat3, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_testconcat4, 0, 1, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_testconcat4, 0, 1, IS_STRING, NULL, 0) +#endif + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_testconcat5, 0, 1, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_concat_testconcat5, 0, 1, IS_STRING, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, number, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, number) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_concat_method_entry) { + PHP_ME(Stub_Concat, getTestProperty, arginfo_stub_concat_gettestproperty, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Concat, testConcatBySelfProperty, arginfo_stub_concat_testconcatbyselfproperty, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Concat, testConcat1, arginfo_stub_concat_testconcat1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Concat, testConcat2, arginfo_stub_concat_testconcat2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Concat, testConcat3, arginfo_stub_concat_testconcat3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Concat, testConcat4, arginfo_stub_concat_testconcat4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Concat, testConcat5, arginfo_stub_concat_testconcat5, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/constants.zep.c b/ext/stub/constants.zep.c similarity index 53% rename from ext/test/constants.zep.c rename to ext/stub/constants.zep.c index d532317e56..ed6e4d89e0 100644 --- a/ext/test/constants.zep.c +++ b/ext/stub/constants.zep.c @@ -16,72 +16,72 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Constants) { +ZEPHIR_INIT_CLASS(Stub_Constants) { - ZEPHIR_REGISTER_CLASS_EX(Test, Constants, test, constants, test_constantsparent_ce, test_constants_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub, Constants, stub, constants, stub_constantsparent_ce, stub_constants_method_entry, 0); - zend_declare_property_string(test_constants_ce, SL("propWsVarsAssigned"), "$SOME/CSRF/KEY$", ZEND_ACC_PROTECTED); + zend_declare_property_string(stub_constants_ce, SL("propWsVarsAssigned"), "$SOME/CSRF/KEY$", ZEND_ACC_PROTECTED); - zend_declare_property_string(test_constants_ce, SL("propWsVarsGet"), "$SOME/CSRF/KEY$", ZEND_ACC_PROTECTED); + zend_declare_property_string(stub_constants_ce, SL("propWsVarsGet"), "$SOME/CSRF/KEY$", ZEND_ACC_PROTECTED); - zend_declare_property_null(test_constants_ce, SL("propertyC1"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_constants_ce, SL("propertyC1"), ZEND_ACC_PROTECTED); - zend_declare_property_bool(test_constants_ce, SL("propertyC2"), 0, ZEND_ACC_PROTECTED); + zend_declare_property_bool(stub_constants_ce, SL("propertyC2"), 0, ZEND_ACC_PROTECTED); - zend_declare_property_bool(test_constants_ce, SL("propertyC3"), 1, ZEND_ACC_PROTECTED); + zend_declare_property_bool(stub_constants_ce, SL("propertyC3"), 1, ZEND_ACC_PROTECTED); - zend_declare_property_long(test_constants_ce, SL("propertyC4"), 10, ZEND_ACC_PROTECTED); + zend_declare_property_long(stub_constants_ce, SL("propertyC4"), 10, ZEND_ACC_PROTECTED); - zend_declare_property_double(test_constants_ce, SL("propertyC5"), 10.25, ZEND_ACC_PROTECTED); + zend_declare_property_double(stub_constants_ce, SL("propertyC5"), 10.25, ZEND_ACC_PROTECTED); - zend_declare_property_string(test_constants_ce, SL("propertyC6"), "test", ZEND_ACC_PROTECTED); + zend_declare_property_string(stub_constants_ce, SL("propertyC6"), "test", ZEND_ACC_PROTECTED); - zend_declare_property_null(test_constants_ce, SL("propertyC7"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_constants_ce, SL("propertyC7"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_constants_ce, SL("propertyC8"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_constants_ce, SL("propertyC8"), ZEND_ACC_PROTECTED); /** * @var \Phalcon\Cache\FrontendInterface */ - zend_declare_property_string(test_constants_ce, SL("propertyC9"), "some-value", ZEND_ACC_PROTECTED); + zend_declare_property_string(stub_constants_ce, SL("propertyC9"), "some-value", ZEND_ACC_PROTECTED); - zephir_declare_class_constant_null(test_constants_ce, SL("C1")); + zephir_declare_class_constant_null(stub_constants_ce, SL("C1")); - zephir_declare_class_constant_bool(test_constants_ce, SL("C2"), 0); + zephir_declare_class_constant_bool(stub_constants_ce, SL("C2"), 0); - zephir_declare_class_constant_bool(test_constants_ce, SL("C3"), 1); + zephir_declare_class_constant_bool(stub_constants_ce, SL("C3"), 1); - zephir_declare_class_constant_long(test_constants_ce, SL("C4"), 10); + zephir_declare_class_constant_long(stub_constants_ce, SL("C4"), 10); - zephir_declare_class_constant_double(test_constants_ce, SL("C5"), 10.25); + zephir_declare_class_constant_double(stub_constants_ce, SL("C5"), 10.25); - zephir_declare_class_constant_double(test_constants_ce, SL("C5_SELF"), 10.25); + zephir_declare_class_constant_double(stub_constants_ce, SL("C5_SELF"), 10.25); - zephir_declare_class_constant_double(test_constants_ce, SL("C5_BY_NAME"), 10.25); + zephir_declare_class_constant_double(stub_constants_ce, SL("C5_BY_NAME"), 10.25); - zephir_declare_class_constant_string(test_constants_ce, SL("C6"), "test"); + zephir_declare_class_constant_string(stub_constants_ce, SL("C6"), "test"); - zephir_declare_class_constant_string(test_constants_ce, SL("className"), "Test\\Constants"); + zephir_declare_class_constant_string(stub_constants_ce, SL("className"), "Stub\\Constants"); - zephir_declare_class_constant_long(test_constants_ce, SL("STD_PROP_LIST"), 1); + zephir_declare_class_constant_long(stub_constants_ce, SL("STD_PROP_LIST"), 1); /** Test Issue 1571 */ - zephir_declare_class_constant_string(test_constants_ce, SL("DEFAULT_PATH_DELIMITER"), "."); + zephir_declare_class_constant_string(stub_constants_ce, SL("DEFAULT_PATH_DELIMITER"), "."); - zephir_declare_class_constant_string(test_constants_ce, SL("PROPERTY_WITH_VARS"), "$SOME/CSRF/KEY$"); + zephir_declare_class_constant_string(stub_constants_ce, SL("PROPERTY_WITH_VARS"), "$SOME/CSRF/KEY$"); /** * Test property addSlashes for constants */ - zephir_declare_class_constant_string(test_constants_ce, SL("ANNOTATION_REGEX"), "/@(\\w+)(?:\\s*(?:\\(\\s*)?(.*?)(?:\\s*\\))?)??\\s*(?:\n|\\*\\/)/"); + zephir_declare_class_constant_string(stub_constants_ce, SL("ANNOTATION_REGEX"), "/@(\\w+)(?:\\s*(?:\\(\\s*)?(.*?)(?:\\s*\\))?)??\\s*(?:\n|\\*\\/)/"); - zephir_declare_class_constant_string(test_constants_ce, SL("PARAMETER_REGEX"), "/(\\w+)\\s*=\\s*(\\[[^\\]]*\\]|\"[^\"]*\"|[^,)]*)\\s*(?:,|$)/"); + zephir_declare_class_constant_string(stub_constants_ce, SL("PARAMETER_REGEX"), "/(\\w+)\\s*=\\s*(\\[[^\\]]*\\]|\"[^\"]*\"|[^,)]*)\\s*(?:,|$)/"); return SUCCESS; } -PHP_METHOD(Test_Constants, getPropWsVarsGet) { +PHP_METHOD(Stub_Constants, getPropWsVarsGet) { zval *this_ptr = getThis(); @@ -90,7 +90,7 @@ PHP_METHOD(Test_Constants, getPropWsVarsGet) { } -PHP_METHOD(Test_Constants, getPropertyC1) { +PHP_METHOD(Stub_Constants, getPropertyC1) { zval *this_ptr = getThis(); @@ -99,7 +99,7 @@ PHP_METHOD(Test_Constants, getPropertyC1) { } -PHP_METHOD(Test_Constants, getPropertyC2) { +PHP_METHOD(Stub_Constants, getPropertyC2) { zval *this_ptr = getThis(); @@ -108,7 +108,7 @@ PHP_METHOD(Test_Constants, getPropertyC2) { } -PHP_METHOD(Test_Constants, getPropertyC3) { +PHP_METHOD(Stub_Constants, getPropertyC3) { zval *this_ptr = getThis(); @@ -117,7 +117,7 @@ PHP_METHOD(Test_Constants, getPropertyC3) { } -PHP_METHOD(Test_Constants, getPropertyC4) { +PHP_METHOD(Stub_Constants, getPropertyC4) { zval *this_ptr = getThis(); @@ -126,7 +126,7 @@ PHP_METHOD(Test_Constants, getPropertyC4) { } -PHP_METHOD(Test_Constants, getPropertyC5) { +PHP_METHOD(Stub_Constants, getPropertyC5) { zval *this_ptr = getThis(); @@ -135,7 +135,7 @@ PHP_METHOD(Test_Constants, getPropertyC5) { } -PHP_METHOD(Test_Constants, getPropertyC6) { +PHP_METHOD(Stub_Constants, getPropertyC6) { zval *this_ptr = getThis(); @@ -144,7 +144,7 @@ PHP_METHOD(Test_Constants, getPropertyC6) { } -PHP_METHOD(Test_Constants, getPropertyC7) { +PHP_METHOD(Stub_Constants, getPropertyC7) { zval *this_ptr = getThis(); @@ -153,7 +153,7 @@ PHP_METHOD(Test_Constants, getPropertyC7) { } -PHP_METHOD(Test_Constants, getPropertyC8) { +PHP_METHOD(Stub_Constants, getPropertyC8) { zval *this_ptr = getThis(); @@ -164,7 +164,7 @@ PHP_METHOD(Test_Constants, getPropertyC8) { /** */ -PHP_METHOD(Test_Constants, getPropertyC9) { +PHP_METHOD(Stub_Constants, getPropertyC9) { zval *this_ptr = getThis(); @@ -173,7 +173,7 @@ PHP_METHOD(Test_Constants, getPropertyC9) { } -PHP_METHOD(Test_Constants, testReadConstant) { +PHP_METHOD(Stub_Constants, testReadConstant) { zval *this_ptr = getThis(); @@ -182,7 +182,7 @@ PHP_METHOD(Test_Constants, testReadConstant) { } -PHP_METHOD(Test_Constants, testReadClassConstant1) { +PHP_METHOD(Stub_Constants, testReadClassConstant1) { zval *this_ptr = getThis(); @@ -191,7 +191,7 @@ PHP_METHOD(Test_Constants, testReadClassConstant1) { } -PHP_METHOD(Test_Constants, testReadClassConstant2) { +PHP_METHOD(Stub_Constants, testReadClassConstant2) { zval *this_ptr = getThis(); @@ -200,7 +200,7 @@ PHP_METHOD(Test_Constants, testReadClassConstant2) { } -PHP_METHOD(Test_Constants, testReadClassConstant3) { +PHP_METHOD(Stub_Constants, testReadClassConstant3) { zval *this_ptr = getThis(); @@ -209,7 +209,7 @@ PHP_METHOD(Test_Constants, testReadClassConstant3) { } -PHP_METHOD(Test_Constants, testPHPVersionEnvConstant) { +PHP_METHOD(Stub_Constants, testPHPVersionEnvConstant) { zval *this_ptr = getThis(); @@ -219,16 +219,16 @@ PHP_METHOD(Test_Constants, testPHPVersionEnvConstant) { } -PHP_METHOD(Test_Constants, testClassMagicConstant) { +PHP_METHOD(Stub_Constants, testClassMagicConstant) { zval *this_ptr = getThis(); - RETURN_STRING("Test\\Constants"); + RETURN_STRING("Stub\\Constants"); } -PHP_METHOD(Test_Constants, testMethodMagicConstant) { +PHP_METHOD(Stub_Constants, testMethodMagicConstant) { zval *this_ptr = getThis(); @@ -237,7 +237,7 @@ PHP_METHOD(Test_Constants, testMethodMagicConstant) { } -PHP_METHOD(Test_Constants, testFunctionMagicConstant) { +PHP_METHOD(Stub_Constants, testFunctionMagicConstant) { zval *this_ptr = getThis(); @@ -246,16 +246,16 @@ PHP_METHOD(Test_Constants, testFunctionMagicConstant) { } -PHP_METHOD(Test_Constants, testNamespaceMagicConstant) { +PHP_METHOD(Stub_Constants, testNamespaceMagicConstant) { zval *this_ptr = getThis(); - RETURN_STRING("Test"); + RETURN_STRING("Stub"); } -PHP_METHOD(Test_Constants, testDirConstant) { +PHP_METHOD(Stub_Constants, testDirConstant) { zval *this_ptr = getThis(); @@ -264,7 +264,7 @@ PHP_METHOD(Test_Constants, testDirConstant) { } -PHP_METHOD(Test_Constants, testPHPVersionEnvConstantInExpValue) { +PHP_METHOD(Stub_Constants, testPHPVersionEnvConstantInExpValue) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -285,7 +285,7 @@ PHP_METHOD(Test_Constants, testPHPVersionEnvConstantInExpValue) { * * @link https://github.com/phalcon/zephir/issues/1571 */ -PHP_METHOD(Test_Constants, testStringDelimiterConstantDoubleQuoted) { +PHP_METHOD(Stub_Constants, testStringDelimiterConstantDoubleQuoted) { zval delimiter; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -301,7 +301,7 @@ PHP_METHOD(Test_Constants, testStringDelimiterConstantDoubleQuoted) { } -PHP_METHOD(Test_Constants, testStringConstantWithVars) { +PHP_METHOD(Stub_Constants, testStringConstantWithVars) { zval property; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -317,7 +317,7 @@ PHP_METHOD(Test_Constants, testStringConstantWithVars) { } -PHP_METHOD(Test_Constants, testStringPropertyWithVarsAssigned) { +PHP_METHOD(Stub_Constants, testStringPropertyWithVarsAssigned) { zval *this_ptr = getThis(); @@ -326,7 +326,7 @@ PHP_METHOD(Test_Constants, testStringPropertyWithVarsAssigned) { } -PHP_METHOD(Test_Constants, testStringPropertyWithVarsGet) { +PHP_METHOD(Stub_Constants, testStringPropertyWithVarsGet) { zval *this_ptr = getThis(); diff --git a/ext/stub/constants.zep.h b/ext/stub/constants.zep.h new file mode 100644 index 0000000000..e13f8080bb --- /dev/null +++ b/ext/stub/constants.zep.h @@ -0,0 +1,59 @@ + +extern zend_class_entry *stub_constants_ce; + +ZEPHIR_INIT_CLASS(Stub_Constants); + +PHP_METHOD(Stub_Constants, getPropWsVarsGet); +PHP_METHOD(Stub_Constants, getPropertyC1); +PHP_METHOD(Stub_Constants, getPropertyC2); +PHP_METHOD(Stub_Constants, getPropertyC3); +PHP_METHOD(Stub_Constants, getPropertyC4); +PHP_METHOD(Stub_Constants, getPropertyC5); +PHP_METHOD(Stub_Constants, getPropertyC6); +PHP_METHOD(Stub_Constants, getPropertyC7); +PHP_METHOD(Stub_Constants, getPropertyC8); +PHP_METHOD(Stub_Constants, getPropertyC9); +PHP_METHOD(Stub_Constants, testReadConstant); +PHP_METHOD(Stub_Constants, testReadClassConstant1); +PHP_METHOD(Stub_Constants, testReadClassConstant2); +PHP_METHOD(Stub_Constants, testReadClassConstant3); +PHP_METHOD(Stub_Constants, testPHPVersionEnvConstant); +PHP_METHOD(Stub_Constants, testClassMagicConstant); +PHP_METHOD(Stub_Constants, testMethodMagicConstant); +PHP_METHOD(Stub_Constants, testFunctionMagicConstant); +PHP_METHOD(Stub_Constants, testNamespaceMagicConstant); +PHP_METHOD(Stub_Constants, testDirConstant); +PHP_METHOD(Stub_Constants, testPHPVersionEnvConstantInExpValue); +PHP_METHOD(Stub_Constants, testStringDelimiterConstantDoubleQuoted); +PHP_METHOD(Stub_Constants, testStringConstantWithVars); +PHP_METHOD(Stub_Constants, testStringPropertyWithVarsAssigned); +PHP_METHOD(Stub_Constants, testStringPropertyWithVarsGet); + +ZEPHIR_INIT_FUNCS(stub_constants_method_entry) { + PHP_ME(Stub_Constants, getPropWsVarsGet, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, getPropertyC1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, getPropertyC2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, getPropertyC3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, getPropertyC4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, getPropertyC5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, getPropertyC6, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, getPropertyC7, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, getPropertyC8, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, getPropertyC9, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testReadConstant, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testReadClassConstant1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testReadClassConstant2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testReadClassConstant3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testPHPVersionEnvConstant, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testClassMagicConstant, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testMethodMagicConstant, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testFunctionMagicConstant, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testNamespaceMagicConstant, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testDirConstant, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testPHPVersionEnvConstantInExpValue, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testStringDelimiterConstantDoubleQuoted, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testStringConstantWithVars, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testStringPropertyWithVarsAssigned, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Constants, testStringPropertyWithVarsGet, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/constantsinterface.zep.c b/ext/stub/constantsinterface.zep.c similarity index 52% rename from ext/test/constantsinterface.zep.c rename to ext/stub/constantsinterface.zep.c index 26ddb3a04f..d456ff8260 100644 --- a/ext/test/constantsinterface.zep.c +++ b/ext/stub/constantsinterface.zep.c @@ -15,16 +15,16 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_ConstantsInterface) { +ZEPHIR_INIT_CLASS(Stub_ConstantsInterface) { - ZEPHIR_REGISTER_CLASS(Test, ConstantsInterface, test, constantsinterface, test_constantsinterface_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, ConstantsInterface, stub, constantsinterface, stub_constantsinterface_method_entry, 0); - zend_class_implements(test_constantsinterface_ce, 1, test_testinterface_ce); + zend_class_implements(stub_constantsinterface_ce, 1, stub_testinterface_ce); return SUCCESS; } -PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant1) { +PHP_METHOD(Stub_ConstantsInterface, testReadInterfaceConstant1) { zval *this_ptr = getThis(); @@ -33,7 +33,7 @@ PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant1) { } -PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant2) { +PHP_METHOD(Stub_ConstantsInterface, testReadInterfaceConstant2) { zval *this_ptr = getThis(); @@ -42,7 +42,7 @@ PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant2) { } -PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant3) { +PHP_METHOD(Stub_ConstantsInterface, testReadInterfaceConstant3) { zval *this_ptr = getThis(); @@ -51,7 +51,7 @@ PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant3) { } -PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant4) { +PHP_METHOD(Stub_ConstantsInterface, testReadInterfaceConstant4) { zval *this_ptr = getThis(); @@ -60,7 +60,7 @@ PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant4) { } -PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant5) { +PHP_METHOD(Stub_ConstantsInterface, testReadInterfaceConstant5) { zval *this_ptr = getThis(); @@ -69,7 +69,7 @@ PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant5) { } -PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant6) { +PHP_METHOD(Stub_ConstantsInterface, testReadInterfaceConstant6) { zval *this_ptr = getThis(); @@ -78,7 +78,7 @@ PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant6) { } -PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant1) { +PHP_METHOD(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant1) { zval *this_ptr = getThis(); @@ -87,7 +87,7 @@ PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant1) { } -PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant2) { +PHP_METHOD(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant2) { zval *this_ptr = getThis(); @@ -96,7 +96,7 @@ PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant2) { } -PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant3) { +PHP_METHOD(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant3) { zval *this_ptr = getThis(); @@ -105,7 +105,7 @@ PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant3) { } -PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant4) { +PHP_METHOD(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant4) { zval *this_ptr = getThis(); @@ -114,7 +114,7 @@ PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant4) { } -PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant5) { +PHP_METHOD(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant5) { zval *this_ptr = getThis(); @@ -123,7 +123,7 @@ PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant5) { } -PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant6) { +PHP_METHOD(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant6) { zval *this_ptr = getThis(); diff --git a/ext/stub/constantsinterface.zep.h b/ext/stub/constantsinterface.zep.h new file mode 100644 index 0000000000..9c257fe973 --- /dev/null +++ b/ext/stub/constantsinterface.zep.h @@ -0,0 +1,33 @@ + +extern zend_class_entry *stub_constantsinterface_ce; + +ZEPHIR_INIT_CLASS(Stub_ConstantsInterface); + +PHP_METHOD(Stub_ConstantsInterface, testReadInterfaceConstant1); +PHP_METHOD(Stub_ConstantsInterface, testReadInterfaceConstant2); +PHP_METHOD(Stub_ConstantsInterface, testReadInterfaceConstant3); +PHP_METHOD(Stub_ConstantsInterface, testReadInterfaceConstant4); +PHP_METHOD(Stub_ConstantsInterface, testReadInterfaceConstant5); +PHP_METHOD(Stub_ConstantsInterface, testReadInterfaceConstant6); +PHP_METHOD(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant1); +PHP_METHOD(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant2); +PHP_METHOD(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant3); +PHP_METHOD(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant4); +PHP_METHOD(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant5); +PHP_METHOD(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant6); + +ZEPHIR_INIT_FUNCS(stub_constantsinterface_method_entry) { + PHP_ME(Stub_ConstantsInterface, testReadInterfaceConstant1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterface, testReadInterfaceConstant2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterface, testReadInterfaceConstant3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterface, testReadInterfaceConstant4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterface, testReadInterfaceConstant5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterface, testReadInterfaceConstant6, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterface, testReadInheritanceFromInterfaceConstant6, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/constantsinterfacea.zep.c b/ext/stub/constantsinterfacea.zep.c similarity index 51% rename from ext/test/constantsinterfacea.zep.c rename to ext/stub/constantsinterfacea.zep.c index 4251d7a3f1..556d231c81 100644 --- a/ext/test/constantsinterfacea.zep.c +++ b/ext/stub/constantsinterfacea.zep.c @@ -15,16 +15,16 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_ConstantsInterfaceA) { +ZEPHIR_INIT_CLASS(Stub_ConstantsInterfaceA) { - ZEPHIR_REGISTER_CLASS(Test, ConstantsInterfaceA, test, constantsinterfacea, test_constantsinterfacea_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, ConstantsInterfaceA, stub, constantsinterfacea, stub_constantsinterfacea_method_entry, 0); - zend_class_implements(test_constantsinterfacea_ce, 1, test_testinterface_ce); + zend_class_implements(stub_constantsinterfacea_ce, 1, stub_testinterface_ce); return SUCCESS; } -PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant1) { +PHP_METHOD(Stub_ConstantsInterfaceA, testReadInterfaceConstant1) { zval *this_ptr = getThis(); @@ -33,7 +33,7 @@ PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant1) { } -PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant2) { +PHP_METHOD(Stub_ConstantsInterfaceA, testReadInterfaceConstant2) { zval *this_ptr = getThis(); @@ -42,7 +42,7 @@ PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant2) { } -PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant3) { +PHP_METHOD(Stub_ConstantsInterfaceA, testReadInterfaceConstant3) { zval *this_ptr = getThis(); @@ -51,7 +51,7 @@ PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant3) { } -PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant4) { +PHP_METHOD(Stub_ConstantsInterfaceA, testReadInterfaceConstant4) { zval *this_ptr = getThis(); @@ -60,7 +60,7 @@ PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant4) { } -PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant5) { +PHP_METHOD(Stub_ConstantsInterfaceA, testReadInterfaceConstant5) { zval *this_ptr = getThis(); @@ -69,7 +69,7 @@ PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant5) { } -PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant6) { +PHP_METHOD(Stub_ConstantsInterfaceA, testReadInterfaceConstant6) { zval *this_ptr = getThis(); diff --git a/ext/stub/constantsinterfacea.zep.h b/ext/stub/constantsinterfacea.zep.h new file mode 100644 index 0000000000..19125e8024 --- /dev/null +++ b/ext/stub/constantsinterfacea.zep.h @@ -0,0 +1,21 @@ + +extern zend_class_entry *stub_constantsinterfacea_ce; + +ZEPHIR_INIT_CLASS(Stub_ConstantsInterfaceA); + +PHP_METHOD(Stub_ConstantsInterfaceA, testReadInterfaceConstant1); +PHP_METHOD(Stub_ConstantsInterfaceA, testReadInterfaceConstant2); +PHP_METHOD(Stub_ConstantsInterfaceA, testReadInterfaceConstant3); +PHP_METHOD(Stub_ConstantsInterfaceA, testReadInterfaceConstant4); +PHP_METHOD(Stub_ConstantsInterfaceA, testReadInterfaceConstant5); +PHP_METHOD(Stub_ConstantsInterfaceA, testReadInterfaceConstant6); + +ZEPHIR_INIT_FUNCS(stub_constantsinterfacea_method_entry) { + PHP_ME(Stub_ConstantsInterfaceA, testReadInterfaceConstant1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterfaceA, testReadInterfaceConstant2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterfaceA, testReadInterfaceConstant3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterfaceA, testReadInterfaceConstant4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterfaceA, testReadInterfaceConstant5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterfaceA, testReadInterfaceConstant6, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/constantsinterfaceb.zep.c b/ext/stub/constantsinterfaceb.zep.c similarity index 51% rename from ext/test/constantsinterfaceb.zep.c rename to ext/stub/constantsinterfaceb.zep.c index 8ad54635ab..d0b797eafa 100644 --- a/ext/test/constantsinterfaceb.zep.c +++ b/ext/stub/constantsinterfaceb.zep.c @@ -15,16 +15,16 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_ConstantsInterfaceB) { +ZEPHIR_INIT_CLASS(Stub_ConstantsInterfaceB) { - ZEPHIR_REGISTER_CLASS(Test, ConstantsInterfaceB, test, constantsinterfaceb, test_constantsinterfaceb_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, ConstantsInterfaceB, stub, constantsinterfaceb, stub_constantsinterfaceb_method_entry, 0); - zend_class_implements(test_constantsinterfaceb_ce, 1, test_testinterface_ce); + zend_class_implements(stub_constantsinterfaceb_ce, 1, stub_testinterface_ce); return SUCCESS; } -PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant1) { +PHP_METHOD(Stub_ConstantsInterfaceB, testReadInterfaceConstant1) { zval *this_ptr = getThis(); @@ -33,7 +33,7 @@ PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant1) { } -PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant2) { +PHP_METHOD(Stub_ConstantsInterfaceB, testReadInterfaceConstant2) { zval *this_ptr = getThis(); @@ -42,7 +42,7 @@ PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant2) { } -PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant3) { +PHP_METHOD(Stub_ConstantsInterfaceB, testReadInterfaceConstant3) { zval *this_ptr = getThis(); @@ -51,7 +51,7 @@ PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant3) { } -PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant4) { +PHP_METHOD(Stub_ConstantsInterfaceB, testReadInterfaceConstant4) { zval *this_ptr = getThis(); @@ -60,7 +60,7 @@ PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant4) { } -PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant5) { +PHP_METHOD(Stub_ConstantsInterfaceB, testReadInterfaceConstant5) { zval *this_ptr = getThis(); @@ -69,7 +69,7 @@ PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant5) { } -PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant6) { +PHP_METHOD(Stub_ConstantsInterfaceB, testReadInterfaceConstant6) { zval *this_ptr = getThis(); diff --git a/ext/stub/constantsinterfaceb.zep.h b/ext/stub/constantsinterfaceb.zep.h new file mode 100644 index 0000000000..e7a57fc414 --- /dev/null +++ b/ext/stub/constantsinterfaceb.zep.h @@ -0,0 +1,21 @@ + +extern zend_class_entry *stub_constantsinterfaceb_ce; + +ZEPHIR_INIT_CLASS(Stub_ConstantsInterfaceB); + +PHP_METHOD(Stub_ConstantsInterfaceB, testReadInterfaceConstant1); +PHP_METHOD(Stub_ConstantsInterfaceB, testReadInterfaceConstant2); +PHP_METHOD(Stub_ConstantsInterfaceB, testReadInterfaceConstant3); +PHP_METHOD(Stub_ConstantsInterfaceB, testReadInterfaceConstant4); +PHP_METHOD(Stub_ConstantsInterfaceB, testReadInterfaceConstant5); +PHP_METHOD(Stub_ConstantsInterfaceB, testReadInterfaceConstant6); + +ZEPHIR_INIT_FUNCS(stub_constantsinterfaceb_method_entry) { + PHP_ME(Stub_ConstantsInterfaceB, testReadInterfaceConstant1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterfaceB, testReadInterfaceConstant2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterfaceB, testReadInterfaceConstant3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterfaceB, testReadInterfaceConstant4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterfaceB, testReadInterfaceConstant5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ConstantsInterfaceB, testReadInterfaceConstant6, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/stub/constantsparent.zep.c b/ext/stub/constantsparent.zep.c new file mode 100644 index 0000000000..89cc92b841 --- /dev/null +++ b/ext/stub/constantsparent.zep.c @@ -0,0 +1,36 @@ + +#ifdef HAVE_CONFIG_H +#include "../ext_config.h" +#endif + +#include +#include "../php_ext.h" +#include "../ext.h" + +#include +#include +#include + +#include "kernel/main.h" + + +ZEPHIR_INIT_CLASS(Stub_ConstantsParent) { + + ZEPHIR_REGISTER_CLASS(Stub, ConstantsParent, stub, constantsparent, NULL, 0); + + zephir_declare_class_constant_null(stub_constantsparent_ce, SL("P1")); + + zephir_declare_class_constant_bool(stub_constantsparent_ce, SL("P2"), 0); + + zephir_declare_class_constant_bool(stub_constantsparent_ce, SL("P3"), 1); + + zephir_declare_class_constant_long(stub_constantsparent_ce, SL("P4"), 10); + + zephir_declare_class_constant_double(stub_constantsparent_ce, SL("P5"), 10.25); + + zephir_declare_class_constant_string(stub_constantsparent_ce, SL("P6"), "test"); + + return SUCCESS; + +} + diff --git a/ext/stub/constantsparent.zep.h b/ext/stub/constantsparent.zep.h new file mode 100644 index 0000000000..4b6edc6286 --- /dev/null +++ b/ext/stub/constantsparent.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_constantsparent_ce; + +ZEPHIR_INIT_CLASS(Stub_ConstantsParent); + diff --git a/ext/test/declaretest.zep.c b/ext/stub/declaretest.zep.c similarity index 72% rename from ext/test/declaretest.zep.c rename to ext/stub/declaretest.zep.c index 13b9289caf..5979363a54 100644 --- a/ext/test/declaretest.zep.c +++ b/ext/stub/declaretest.zep.c @@ -20,15 +20,15 @@ /** * Variable declaration */ -ZEPHIR_INIT_CLASS(Test_DeclareTest) { +ZEPHIR_INIT_CLASS(Stub_DeclareTest) { - ZEPHIR_REGISTER_CLASS(Test, DeclareTest, test, declaretest, test_declaretest_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, DeclareTest, stub, declaretest, stub_declaretest_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_DeclareTest, testStringDeclare1) { +PHP_METHOD(Stub_DeclareTest, testStringDeclare1) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -44,7 +44,7 @@ PHP_METHOD(Test_DeclareTest, testStringDeclare1) { } -PHP_METHOD(Test_DeclareTest, testStringDeclare2) { +PHP_METHOD(Stub_DeclareTest, testStringDeclare2) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -60,7 +60,7 @@ PHP_METHOD(Test_DeclareTest, testStringDeclare2) { } -PHP_METHOD(Test_DeclareTest, testDeclare1) { +PHP_METHOD(Stub_DeclareTest, testDeclare1) { zend_long a; zval *this_ptr = getThis(); @@ -72,7 +72,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare1) { } -PHP_METHOD(Test_DeclareTest, testDeclare2) { +PHP_METHOD(Stub_DeclareTest, testDeclare2) { zend_ulong a; zval *this_ptr = getThis(); @@ -84,7 +84,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare2) { } -PHP_METHOD(Test_DeclareTest, testDeclare3) { +PHP_METHOD(Stub_DeclareTest, testDeclare3) { double a; zval *this_ptr = getThis(); @@ -96,7 +96,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare3) { } -PHP_METHOD(Test_DeclareTest, testDeclare4) { +PHP_METHOD(Stub_DeclareTest, testDeclare4) { double a; zval *this_ptr = getThis(); @@ -108,7 +108,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare4) { } -PHP_METHOD(Test_DeclareTest, testDeclare5) { +PHP_METHOD(Stub_DeclareTest, testDeclare5) { char a; zval *this_ptr = getThis(); @@ -120,7 +120,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare5) { } -PHP_METHOD(Test_DeclareTest, testDeclare6) { +PHP_METHOD(Stub_DeclareTest, testDeclare6) { unsigned char a; zval *this_ptr = getThis(); @@ -132,7 +132,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare6) { } -PHP_METHOD(Test_DeclareTest, testDeclare7) { +PHP_METHOD(Stub_DeclareTest, testDeclare7) { long a; zval *this_ptr = getThis(); @@ -144,7 +144,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare7) { } -PHP_METHOD(Test_DeclareTest, testDeclare8) { +PHP_METHOD(Stub_DeclareTest, testDeclare8) { zend_bool a; zval *this_ptr = getThis(); @@ -156,7 +156,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare8) { } -PHP_METHOD(Test_DeclareTest, testDeclare9) { +PHP_METHOD(Stub_DeclareTest, testDeclare9) { zend_bool a; zval *this_ptr = getThis(); @@ -168,7 +168,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare9) { } -PHP_METHOD(Test_DeclareTest, testDeclare10) { +PHP_METHOD(Stub_DeclareTest, testDeclare10) { zend_long a; zval *this_ptr = getThis(); @@ -180,7 +180,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare10) { } -PHP_METHOD(Test_DeclareTest, testDeclare11) { +PHP_METHOD(Stub_DeclareTest, testDeclare11) { double a; zval *this_ptr = getThis(); @@ -192,7 +192,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare11) { } -PHP_METHOD(Test_DeclareTest, testDeclare12) { +PHP_METHOD(Stub_DeclareTest, testDeclare12) { zend_bool a; zval *this_ptr = getThis(); @@ -204,7 +204,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare12) { } -PHP_METHOD(Test_DeclareTest, testDeclare13) { +PHP_METHOD(Stub_DeclareTest, testDeclare13) { zend_bool a; zval *this_ptr = getThis(); @@ -216,7 +216,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare13) { } -PHP_METHOD(Test_DeclareTest, testDeclare14) { +PHP_METHOD(Stub_DeclareTest, testDeclare14) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -232,7 +232,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare14) { } -PHP_METHOD(Test_DeclareTest, testDeclare15) { +PHP_METHOD(Stub_DeclareTest, testDeclare15) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -248,7 +248,7 @@ PHP_METHOD(Test_DeclareTest, testDeclare15) { } -PHP_METHOD(Test_DeclareTest, testDeclareMcallExpression) { +PHP_METHOD(Stub_DeclareTest, testDeclareMcallExpression) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/declaretest.zep.h b/ext/stub/declaretest.zep.h new file mode 100644 index 0000000000..4cba089ffc --- /dev/null +++ b/ext/stub/declaretest.zep.h @@ -0,0 +1,45 @@ + +extern zend_class_entry *stub_declaretest_ce; + +ZEPHIR_INIT_CLASS(Stub_DeclareTest); + +PHP_METHOD(Stub_DeclareTest, testStringDeclare1); +PHP_METHOD(Stub_DeclareTest, testStringDeclare2); +PHP_METHOD(Stub_DeclareTest, testDeclare1); +PHP_METHOD(Stub_DeclareTest, testDeclare2); +PHP_METHOD(Stub_DeclareTest, testDeclare3); +PHP_METHOD(Stub_DeclareTest, testDeclare4); +PHP_METHOD(Stub_DeclareTest, testDeclare5); +PHP_METHOD(Stub_DeclareTest, testDeclare6); +PHP_METHOD(Stub_DeclareTest, testDeclare7); +PHP_METHOD(Stub_DeclareTest, testDeclare8); +PHP_METHOD(Stub_DeclareTest, testDeclare9); +PHP_METHOD(Stub_DeclareTest, testDeclare10); +PHP_METHOD(Stub_DeclareTest, testDeclare11); +PHP_METHOD(Stub_DeclareTest, testDeclare12); +PHP_METHOD(Stub_DeclareTest, testDeclare13); +PHP_METHOD(Stub_DeclareTest, testDeclare14); +PHP_METHOD(Stub_DeclareTest, testDeclare15); +PHP_METHOD(Stub_DeclareTest, testDeclareMcallExpression); + +ZEPHIR_INIT_FUNCS(stub_declaretest_method_entry) { + PHP_ME(Stub_DeclareTest, testStringDeclare1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testStringDeclare2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare6, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare7, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare8, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare9, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare10, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare11, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare12, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare13, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare14, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclare15, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_DeclareTest, testDeclareMcallExpression, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/diinterface.zep.c b/ext/stub/diinterface.zep.c similarity index 52% rename from ext/test/diinterface.zep.c rename to ext/stub/diinterface.zep.c index f09cf67b0f..f82932b46e 100644 --- a/ext/test/diinterface.zep.c +++ b/ext/stub/diinterface.zep.c @@ -12,13 +12,13 @@ #include "kernel/main.h" -ZEPHIR_INIT_CLASS(Test_DiInterface) { +ZEPHIR_INIT_CLASS(Stub_DiInterface) { - ZEPHIR_REGISTER_INTERFACE(Test, DiInterface, test, diinterface, test_diinterface_method_entry); + ZEPHIR_REGISTER_INTERFACE(Stub, DiInterface, stub, diinterface, stub_diinterface_method_entry); return SUCCESS; } -ZEPHIR_DOC_METHOD(Test_DiInterface, getShared); +ZEPHIR_DOC_METHOD(Stub_DiInterface, getShared); diff --git a/ext/stub/diinterface.zep.h b/ext/stub/diinterface.zep.h new file mode 100644 index 0000000000..66a18bbfa7 --- /dev/null +++ b/ext/stub/diinterface.zep.h @@ -0,0 +1,13 @@ + +extern zend_class_entry *stub_diinterface_ce; + +ZEPHIR_INIT_CLASS(Stub_DiInterface); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_diinterface_getshared, 0, 0, 1) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_diinterface_method_entry) { + PHP_ABSTRACT_ME(Stub_DiInterface, getShared, arginfo_stub_diinterface_getshared) + PHP_FE_END +}; diff --git a/ext/test/echoes.zep.c b/ext/stub/echoes.zep.c similarity index 70% rename from ext/test/echoes.zep.c rename to ext/stub/echoes.zep.c index 07e0321cd5..ff752dad7c 100644 --- a/ext/test/echoes.zep.c +++ b/ext/stub/echoes.zep.c @@ -18,15 +18,15 @@ /** * Printing output */ -ZEPHIR_INIT_CLASS(Test_Echoes) { +ZEPHIR_INIT_CLASS(Stub_Echoes) { - ZEPHIR_REGISTER_CLASS(Test, Echoes, test, echoes, test_echoes_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Echoes, stub, echoes, stub_echoes_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Echoes, testEcho1) { +PHP_METHOD(Stub_Echoes, testEcho1) { zval *this_ptr = getThis(); @@ -35,7 +35,7 @@ PHP_METHOD(Test_Echoes, testEcho1) { } -PHP_METHOD(Test_Echoes, testEcho2) { +PHP_METHOD(Stub_Echoes, testEcho2) { zval *this_ptr = getThis(); @@ -44,7 +44,7 @@ PHP_METHOD(Test_Echoes, testEcho2) { } -PHP_METHOD(Test_Echoes, testEcho3) { +PHP_METHOD(Stub_Echoes, testEcho3) { zval *this_ptr = getThis(); @@ -53,7 +53,7 @@ PHP_METHOD(Test_Echoes, testEcho3) { } -PHP_METHOD(Test_Echoes, testEcho4) { +PHP_METHOD(Stub_Echoes, testEcho4) { zval *this_ptr = getThis(); @@ -62,7 +62,7 @@ PHP_METHOD(Test_Echoes, testEcho4) { } -PHP_METHOD(Test_Echoes, testEcho5) { +PHP_METHOD(Stub_Echoes, testEcho5) { zval *this_ptr = getThis(); diff --git a/ext/stub/echoes.zep.h b/ext/stub/echoes.zep.h new file mode 100644 index 0000000000..e3d7790d41 --- /dev/null +++ b/ext/stub/echoes.zep.h @@ -0,0 +1,19 @@ + +extern zend_class_entry *stub_echoes_ce; + +ZEPHIR_INIT_CLASS(Stub_Echoes); + +PHP_METHOD(Stub_Echoes, testEcho1); +PHP_METHOD(Stub_Echoes, testEcho2); +PHP_METHOD(Stub_Echoes, testEcho3); +PHP_METHOD(Stub_Echoes, testEcho4); +PHP_METHOD(Stub_Echoes, testEcho5); + +ZEPHIR_INIT_FUNCS(stub_echoes_method_entry) { + PHP_ME(Stub_Echoes, testEcho1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Echoes, testEcho2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Echoes, testEcho3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Echoes, testEcho4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Echoes, testEcho5, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/emptytest.zep.c b/ext/stub/emptytest.zep.c similarity index 85% rename from ext/test/emptytest.zep.c rename to ext/stub/emptytest.zep.c index a1bbb1fce8..1d7ad671df 100644 --- a/ext/test/emptytest.zep.c +++ b/ext/stub/emptytest.zep.c @@ -24,15 +24,15 @@ /** * @link http://ru2.php.net/empty */ -ZEPHIR_INIT_CLASS(Test_EmptyTest) { +ZEPHIR_INIT_CLASS(Stub_EmptyTest) { - ZEPHIR_REGISTER_CLASS(Test, EmptyTest, test, emptytest, test_emptytest_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, EmptyTest, stub, emptytest, stub_emptytest_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_EmptyTest, testDynamicVarArrayEmpty) { +PHP_METHOD(Stub_EmptyTest, testDynamicVarArrayEmpty) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -48,7 +48,7 @@ PHP_METHOD(Test_EmptyTest, testDynamicVarArrayEmpty) { } -PHP_METHOD(Test_EmptyTest, testDynamicVarArrayNotEmpty) { +PHP_METHOD(Stub_EmptyTest, testDynamicVarArrayNotEmpty) { zval a, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -77,7 +77,7 @@ PHP_METHOD(Test_EmptyTest, testDynamicVarArrayNotEmpty) { } -PHP_METHOD(Test_EmptyTest, testEmptyString) { +PHP_METHOD(Stub_EmptyTest, testEmptyString) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -93,7 +93,7 @@ PHP_METHOD(Test_EmptyTest, testEmptyString) { } -PHP_METHOD(Test_EmptyTest, testNotEmptyString) { +PHP_METHOD(Stub_EmptyTest, testNotEmptyString) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -109,7 +109,7 @@ PHP_METHOD(Test_EmptyTest, testNotEmptyString) { } -PHP_METHOD(Test_EmptyTest, testString) { +PHP_METHOD(Stub_EmptyTest, testString) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a_param = NULL; diff --git a/ext/stub/emptytest.zep.h b/ext/stub/emptytest.zep.h new file mode 100644 index 0000000000..dd2f0f2718 --- /dev/null +++ b/ext/stub/emptytest.zep.h @@ -0,0 +1,27 @@ + +extern zend_class_entry *stub_emptytest_ce; + +ZEPHIR_INIT_CLASS(Stub_EmptyTest); + +PHP_METHOD(Stub_EmptyTest, testDynamicVarArrayEmpty); +PHP_METHOD(Stub_EmptyTest, testDynamicVarArrayNotEmpty); +PHP_METHOD(Stub_EmptyTest, testEmptyString); +PHP_METHOD(Stub_EmptyTest, testNotEmptyString); +PHP_METHOD(Stub_EmptyTest, testString); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_emptytest_teststring, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_emptytest_method_entry) { + PHP_ME(Stub_EmptyTest, testDynamicVarArrayEmpty, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_EmptyTest, testDynamicVarArrayNotEmpty, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_EmptyTest, testEmptyString, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_EmptyTest, testNotEmptyString, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_EmptyTest, testString, arginfo_stub_emptytest_teststring, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/evaltest.zep.c b/ext/stub/evaltest.zep.c similarity index 77% rename from ext/test/evaltest.zep.c rename to ext/stub/evaltest.zep.c index e57a298659..bf47141935 100644 --- a/ext/test/evaltest.zep.c +++ b/ext/stub/evaltest.zep.c @@ -18,15 +18,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_EvalTest) { +ZEPHIR_INIT_CLASS(Stub_EvalTest) { - ZEPHIR_REGISTER_CLASS(Test, EvalTest, test, evaltest, test_evaltest_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, EvalTest, stub, evaltest, stub_evaltest_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_EvalTest, evalCode) { +PHP_METHOD(Stub_EvalTest, evalCode) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *code_param = NULL; @@ -41,7 +41,7 @@ PHP_METHOD(Test_EvalTest, evalCode) { zephir_get_strval(&code, code_param); - zephir_eval_php(&code, return_value, "test/evaltest.zep:7"); + zephir_eval_php(&code, return_value, "stub/evaltest.zep:7"); RETURN_MM(); } diff --git a/ext/stub/evaltest.zep.h b/ext/stub/evaltest.zep.h new file mode 100644 index 0000000000..c8713ca237 --- /dev/null +++ b/ext/stub/evaltest.zep.h @@ -0,0 +1,19 @@ + +extern zend_class_entry *stub_evaltest_ce; + +ZEPHIR_INIT_CLASS(Stub_EvalTest); + +PHP_METHOD(Stub_EvalTest, evalCode); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_evaltest_evalcode, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, code, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, code) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_evaltest_method_entry) { + PHP_ME(Stub_EvalTest, evalCode, arginfo_stub_evaltest_evalcode, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/exception.zep.c b/ext/stub/exception.zep.c similarity index 85% rename from ext/test/exception.zep.c rename to ext/stub/exception.zep.c index 1727db8a22..4a28f103c2 100644 --- a/ext/test/exception.zep.c +++ b/ext/stub/exception.zep.c @@ -22,9 +22,9 @@ /** * Sample exception class */ -ZEPHIR_INIT_CLASS(Test_Exception) { +ZEPHIR_INIT_CLASS(Stub_Exception) { - ZEPHIR_REGISTER_CLASS_EX(Test, Exception, test, exception, zend_exception_get_default(TSRMLS_C), test_exception_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub, Exception, stub, exception, zend_exception_get_default(TSRMLS_C), stub_exception_method_entry, 0); return SUCCESS; @@ -33,7 +33,7 @@ ZEPHIR_INIT_CLASS(Test_Exception) { /** * @link https://github.com/phalcon/zephir/issues/915 */ -PHP_METHOD(Test_Exception, testRuntimePropertyFetch) { +PHP_METHOD(Stub_Exception, testRuntimePropertyFetch) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *message_param = NULL; diff --git a/ext/stub/exception.zep.h b/ext/stub/exception.zep.h new file mode 100644 index 0000000000..26bdfc9d17 --- /dev/null +++ b/ext/stub/exception.zep.h @@ -0,0 +1,19 @@ + +extern zend_class_entry *stub_exception_ce; + +ZEPHIR_INIT_CLASS(Stub_Exception); + +PHP_METHOD(Stub_Exception, testRuntimePropertyFetch); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_exception_testruntimepropertyfetch, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, message) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_exception_method_entry) { + PHP_ME(Stub_Exception, testRuntimePropertyFetch, arginfo_stub_exception_testruntimepropertyfetch, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/exceptions.zep.c b/ext/stub/exceptions.zep.c similarity index 76% rename from ext/test/exceptions.zep.c rename to ext/stub/exceptions.zep.c index a6294d2ef3..9a7ae8a678 100644 --- a/ext/test/exceptions.zep.c +++ b/ext/stub/exceptions.zep.c @@ -20,39 +20,39 @@ #include "kernel/concat.h" -ZEPHIR_INIT_CLASS(Test_Exceptions) { +ZEPHIR_INIT_CLASS(Stub_Exceptions) { - ZEPHIR_REGISTER_CLASS(Test, Exceptions, test, exceptions, test_exceptions_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Exceptions, stub, exceptions, stub_exceptions_method_entry, 0); - zend_declare_property_null(test_exceptions_ce, SL("internalExceptionCallable"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_exceptions_ce, SL("internalExceptionCallable"), ZEND_ACC_PUBLIC); - zend_declare_property_null(test_exceptions_ce, SL("exceptionCallable"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_exceptions_ce, SL("exceptionCallable"), ZEND_ACC_PUBLIC); return SUCCESS; } -PHP_METHOD(Test_Exceptions, testException1) { +PHP_METHOD(Stub_Exceptions, testException1) { zval *this_ptr = getThis(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(test_exception_ce, "hello1", "test/exceptions.zep", 11); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(stub_exception_ce, "hello1", "stub/exceptions.zep", 11); return; } -PHP_METHOD(Test_Exceptions, testExceptionStringEscape) { +PHP_METHOD(Stub_Exceptions, testExceptionStringEscape) { zval *this_ptr = getThis(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(test_exception_ce, "hello \"simple code\" test", "test/exceptions.zep", 16); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(stub_exception_ce, "hello \"simple code\" test", "stub/exceptions.zep", 16); return; } -PHP_METHOD(Test_Exceptions, testException2) { +PHP_METHOD(Stub_Exceptions, testException2) { zval msg, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -67,16 +67,16 @@ PHP_METHOD(Test_Exceptions, testException2) { ZEPHIR_INIT_VAR(&msg); ZVAL_STRING(&msg, "hello2"); ZEPHIR_INIT_VAR(&_0); - object_init_ex(&_0, test_exception_ce); + object_init_ex(&_0, stub_exception_ce); ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 28, &msg); zephir_check_call_status(); - zephir_throw_exception_debug(&_0, "test/exceptions.zep", 23); + zephir_throw_exception_debug(&_0, "stub/exceptions.zep", 23); ZEPHIR_MM_RESTORE(); return; } -PHP_METHOD(Test_Exceptions, testException3) { +PHP_METHOD(Stub_Exceptions, testException3) { zval ex, msg; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -91,16 +91,16 @@ PHP_METHOD(Test_Exceptions, testException3) { ZEPHIR_INIT_VAR(&msg); ZVAL_STRING(&msg, "hello3"); ZEPHIR_INIT_VAR(&ex); - object_init_ex(&ex, test_exception_ce); + object_init_ex(&ex, stub_exception_ce); ZEPHIR_CALL_METHOD(NULL, &ex, "__construct", NULL, 28, &msg); zephir_check_call_status(); - zephir_throw_exception_debug(&ex, "test/exceptions.zep", 31); + zephir_throw_exception_debug(&ex, "stub/exceptions.zep", 31); ZEPHIR_MM_RESTORE(); return; } -PHP_METHOD(Test_Exceptions, getException) { +PHP_METHOD(Stub_Exceptions, getException) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -111,7 +111,7 @@ PHP_METHOD(Test_Exceptions, getException) { ZEPHIR_MM_GROW(); - object_init_ex(return_value, test_exception_ce); + object_init_ex(return_value, stub_exception_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "hello4"); ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 28, &_0); @@ -120,7 +120,7 @@ PHP_METHOD(Test_Exceptions, getException) { } -PHP_METHOD(Test_Exceptions, testException4) { +PHP_METHOD(Stub_Exceptions, testException4) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -133,13 +133,13 @@ PHP_METHOD(Test_Exceptions, testException4) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getexception", NULL, 0); zephir_check_call_status(); - zephir_throw_exception_debug(&_0, "test/exceptions.zep", 41); + zephir_throw_exception_debug(&_0, "stub/exceptions.zep", 41); ZEPHIR_MM_RESTORE(); return; } -PHP_METHOD(Test_Exceptions, testException5) { +PHP_METHOD(Stub_Exceptions, testException5) { zval exception, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -152,18 +152,18 @@ PHP_METHOD(Test_Exceptions, testException5) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&exception); - object_init_ex(&exception, test_exception_ce); + object_init_ex(&exception, stub_exception_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "hello5"); ZEPHIR_CALL_METHOD(NULL, &exception, "__construct", NULL, 28, &_0); zephir_check_call_status(); - zephir_throw_exception_debug(&exception, "test/exceptions.zep", 49); + zephir_throw_exception_debug(&exception, "stub/exceptions.zep", 49); ZEPHIR_MM_RESTORE(); return; } -PHP_METHOD(Test_Exceptions, testExceptionLiteral) { +PHP_METHOD(Stub_Exceptions, testExceptionLiteral) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *type_param = NULL; @@ -180,19 +180,19 @@ PHP_METHOD(Test_Exceptions, testExceptionLiteral) { do { if (ZEPHIR_IS_STRING(&type, "string")) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(zend_exception_get_default(TSRMLS_C), "Test", "test/exceptions.zep", 56); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(zend_exception_get_default(TSRMLS_C), "Test", "stub/exceptions.zep", 56); return; } if (ZEPHIR_IS_STRING(&type, "char")) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(zend_exception_get_default(TSRMLS_C), "t", "test/exceptions.zep", 58); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(zend_exception_get_default(TSRMLS_C), "t", "stub/exceptions.zep", 58); return; } if (ZEPHIR_IS_STRING(&type, "int")) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(zend_exception_get_default(TSRMLS_C), "123", "test/exceptions.zep", 60); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(zend_exception_get_default(TSRMLS_C), "123", "stub/exceptions.zep", 60); return; } if (ZEPHIR_IS_STRING(&type, "double")) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(zend_exception_get_default(TSRMLS_C), "123.123", "test/exceptions.zep", 62); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(zend_exception_get_default(TSRMLS_C), "123.123", "stub/exceptions.zep", 62); return; } } while(0); @@ -201,7 +201,7 @@ PHP_METHOD(Test_Exceptions, testExceptionLiteral) { } -PHP_METHOD(Test_Exceptions, testExceptionSprintf) { +PHP_METHOD(Stub_Exceptions, testExceptionSprintf) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -223,13 +223,13 @@ PHP_METHOD(Test_Exceptions, testExceptionSprintf) { ZVAL_STRING(&_0, "Hello, %s"); ZEPHIR_CALL_FUNCTION(&_1, "sprintf", NULL, 17, &_0, &name); zephir_check_call_status(); - zephir_throw_exception_debug(&_1, "test/exceptions.zep", 68); + zephir_throw_exception_debug(&_1, "stub/exceptions.zep", 68); ZEPHIR_MM_RESTORE(); return; } -PHP_METHOD(Test_Exceptions, testExceptionConcat) { +PHP_METHOD(Stub_Exceptions, testExceptionConcat) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *framework_param = NULL, *language_param = NULL; @@ -249,13 +249,13 @@ PHP_METHOD(Test_Exceptions, testExceptionConcat) { ZEPHIR_INIT_VAR(&_0); ZEPHIR_CONCAT_SVSV(&_0, "Framework ", &framework, " written using ", &language); - zephir_throw_exception_debug(&_0, "test/exceptions.zep", 73); + zephir_throw_exception_debug(&_0, "stub/exceptions.zep", 73); ZEPHIR_MM_RESTORE(); return; } -PHP_METHOD(Test_Exceptions, testExceptionRethrow) { +PHP_METHOD(Stub_Exceptions, testExceptionRethrow) { zval e, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -282,7 +282,7 @@ PHP_METHOD(Test_Exceptions, testExceptionRethrow) { if (zephir_instance_of_ev(&_0, zend_exception_get_default(TSRMLS_C))) { zend_clear_exception(TSRMLS_C); ZEPHIR_CPY_WRT(&e, &_0); - zephir_throw_exception_debug(&e, "test/exceptions.zep", 83); + zephir_throw_exception_debug(&e, "stub/exceptions.zep", 83); ZEPHIR_MM_RESTORE(); return; } @@ -291,7 +291,7 @@ PHP_METHOD(Test_Exceptions, testExceptionRethrow) { } -PHP_METHOD(Test_Exceptions, testMultiException) { +PHP_METHOD(Stub_Exceptions, testMultiException) { zend_bool _1$$4, _3$$7, _5$$10, _7$$13; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -317,13 +317,13 @@ PHP_METHOD(Test_Exceptions, testMultiException) { ZEPHIR_OBS_VAR(&iexc); - zephir_read_property(&iexc, this_ptr, SL("internalExceptionCallable"), PH_NOISY_CC); + zephir_read_property(&iexc, this_ptr, ZEND_STRL("internalExceptionCallable"), PH_NOISY_CC); ZEPHIR_OBS_VAR(&exc); - zephir_read_property(&exc, this_ptr, SL("exceptionCallable"), PH_NOISY_CC); + zephir_read_property(&exc, this_ptr, ZEND_STRL("exceptionCallable"), PH_NOISY_CC); /* try_start_1: */ - zephir_throw_exception_debug(exception, "test/exceptions.zep", 95); + zephir_throw_exception_debug(exception, "stub/exceptions.zep", 95); goto try_end_1; @@ -333,7 +333,7 @@ PHP_METHOD(Test_Exceptions, testMultiException) { ZEPHIR_INIT_VAR(&_0); ZVAL_OBJ(&_0, EG(exception)); Z_ADDREF_P(&_0); - if (zephir_instance_of_ev(&_0, test_exception_ce)) { + if (zephir_instance_of_ev(&_0, stub_exception_ce)) { zend_clear_exception(TSRMLS_C); ZEPHIR_CPY_WRT(&e, &_0); _1$$4 = zephir_is_callable(&iexc); @@ -344,7 +344,7 @@ PHP_METHOD(Test_Exceptions, testMultiException) { } if (_1$$4) { } else { - zephir_throw_exception_debug(&e, "test/exceptions.zep", 101); + zephir_throw_exception_debug(&e, "stub/exceptions.zep", 101); ZEPHIR_MM_RESTORE(); return; } @@ -360,7 +360,7 @@ PHP_METHOD(Test_Exceptions, testMultiException) { } if (_3$$7) { } else { - zephir_throw_exception_debug(&e, "test/exceptions.zep", 108); + zephir_throw_exception_debug(&e, "stub/exceptions.zep", 108); ZEPHIR_MM_RESTORE(); return; } @@ -376,7 +376,7 @@ PHP_METHOD(Test_Exceptions, testMultiException) { } if (_5$$10) { } else { - zephir_throw_exception_debug(&f, "test/exceptions.zep", 115); + zephir_throw_exception_debug(&f, "stub/exceptions.zep", 115); ZEPHIR_MM_RESTORE(); return; } @@ -392,7 +392,7 @@ PHP_METHOD(Test_Exceptions, testMultiException) { } if (_7$$13) { } else { - zephir_throw_exception_debug(&f, "test/exceptions.zep", 115); + zephir_throw_exception_debug(&f, "stub/exceptions.zep", 115); ZEPHIR_MM_RESTORE(); return; } @@ -406,7 +406,7 @@ PHP_METHOD(Test_Exceptions, testMultiException) { } -PHP_METHOD(Test_Exceptions, issue1325) { +PHP_METHOD(Stub_Exceptions, issue1325) { zval e, status, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -442,12 +442,12 @@ PHP_METHOD(Test_Exceptions, issue1325) { } -PHP_METHOD(Test_Exceptions, doNoopException) { +PHP_METHOD(Stub_Exceptions, doNoopException) { zval *this_ptr = getThis(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(zend_exception_get_default(TSRMLS_C), "I am exception", "test/exceptions.zep", 140); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(zend_exception_get_default(TSRMLS_C), "I am exception", "stub/exceptions.zep", 140); return; } diff --git a/ext/stub/exceptions.zep.h b/ext/stub/exceptions.zep.h new file mode 100644 index 0000000000..b0bf2708f7 --- /dev/null +++ b/ext/stub/exceptions.zep.h @@ -0,0 +1,71 @@ + +extern zend_class_entry *stub_exceptions_ce; + +ZEPHIR_INIT_CLASS(Stub_Exceptions); + +PHP_METHOD(Stub_Exceptions, testException1); +PHP_METHOD(Stub_Exceptions, testExceptionStringEscape); +PHP_METHOD(Stub_Exceptions, testException2); +PHP_METHOD(Stub_Exceptions, testException3); +PHP_METHOD(Stub_Exceptions, getException); +PHP_METHOD(Stub_Exceptions, testException4); +PHP_METHOD(Stub_Exceptions, testException5); +PHP_METHOD(Stub_Exceptions, testExceptionLiteral); +PHP_METHOD(Stub_Exceptions, testExceptionSprintf); +PHP_METHOD(Stub_Exceptions, testExceptionConcat); +PHP_METHOD(Stub_Exceptions, testExceptionRethrow); +PHP_METHOD(Stub_Exceptions, testMultiException); +PHP_METHOD(Stub_Exceptions, issue1325); +PHP_METHOD(Stub_Exceptions, doNoopException); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_exceptions_testexceptionliteral, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, type) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_exceptions_testexceptionsprintf, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_exceptions_testexceptionconcat, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, framework, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, framework) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, language, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, language) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_exceptions_testmultiexception, 0, 0, 2) + ZEND_ARG_INFO(0, returnValue) + ZEND_ARG_INFO(0, exception) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_exceptions_method_entry) { + PHP_ME(Stub_Exceptions, testException1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exceptions, testExceptionStringEscape, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exceptions, testException2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exceptions, testException3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exceptions, getException, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Stub_Exceptions, testException4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exceptions, testException5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exceptions, testExceptionLiteral, arginfo_stub_exceptions_testexceptionliteral, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exceptions, testExceptionSprintf, arginfo_stub_exceptions_testexceptionsprintf, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exceptions, testExceptionConcat, arginfo_stub_exceptions_testexceptionconcat, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exceptions, testExceptionRethrow, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exceptions, testMultiException, arginfo_stub_exceptions_testmultiexception, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exceptions, issue1325, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exceptions, doNoopException, NULL, ZEND_ACC_PRIVATE) + PHP_FE_END +}; diff --git a/ext/test/exists.zep.c b/ext/stub/exists.zep.c similarity index 86% rename from ext/test/exists.zep.c rename to ext/stub/exists.zep.c index 4567da7e66..f9403037e3 100644 --- a/ext/test/exists.zep.c +++ b/ext/stub/exists.zep.c @@ -18,15 +18,15 @@ #include "kernel/file.h" -ZEPHIR_INIT_CLASS(Test_Exists) { +ZEPHIR_INIT_CLASS(Stub_Exists) { - ZEPHIR_REGISTER_CLASS(Test, Exists, test, exists, test_exists_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Exists, stub, exists, stub_exists_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Exists, testClassExists) { +PHP_METHOD(Stub_Exists, testClassExists) { zend_bool autoload; zval *className, className_sub, *autoload_param = NULL, _0; @@ -49,7 +49,7 @@ PHP_METHOD(Test_Exists, testClassExists) { } -PHP_METHOD(Test_Exists, testInterfaceExists) { +PHP_METHOD(Stub_Exists, testInterfaceExists) { zend_bool autoload; zval *interfaceName, interfaceName_sub, *autoload_param = NULL, _0; @@ -72,7 +72,7 @@ PHP_METHOD(Test_Exists, testInterfaceExists) { } -PHP_METHOD(Test_Exists, testMethodExists) { +PHP_METHOD(Stub_Exists, testMethodExists) { zval *obj, obj_sub, *methodName, methodName_sub; zval *this_ptr = getThis(); @@ -88,7 +88,7 @@ PHP_METHOD(Test_Exists, testMethodExists) { } -PHP_METHOD(Test_Exists, testFileExists) { +PHP_METHOD(Stub_Exists, testFileExists) { zval *fileName, fileName_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/exists.zep.h b/ext/stub/exists.zep.h new file mode 100644 index 0000000000..e27d3fe1ee --- /dev/null +++ b/ext/stub/exists.zep.h @@ -0,0 +1,60 @@ + +extern zend_class_entry *stub_exists_ce; + +ZEPHIR_INIT_CLASS(Stub_Exists); + +PHP_METHOD(Stub_Exists, testClassExists); +PHP_METHOD(Stub_Exists, testInterfaceExists); +PHP_METHOD(Stub_Exists, testMethodExists); +PHP_METHOD(Stub_Exists, testFileExists); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_exists_testclassexists, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_exists_testclassexists, 0, 1, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_INFO(0, className) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, autoload, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, autoload) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_exists_testinterfaceexists, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_exists_testinterfaceexists, 0, 1, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_INFO(0, interfaceName) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, autoload, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, autoload) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_exists_testmethodexists, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_exists_testmethodexists, 0, 2, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_INFO(0, obj) + ZEND_ARG_INFO(0, methodName) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_exists_testfileexists, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_exists_testfileexists, 0, 1, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_INFO(0, fileName) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_exists_method_entry) { + PHP_ME(Stub_Exists, testClassExists, arginfo_stub_exists_testclassexists, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exists, testInterfaceExists, arginfo_stub_exists_testinterfaceexists, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exists, testMethodExists, arginfo_stub_exists_testmethodexists, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Exists, testFileExists, arginfo_stub_exists_testfileexists, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/exitdie.zep.c b/ext/stub/exitdie.zep.c similarity index 85% rename from ext/test/exitdie.zep.c rename to ext/stub/exitdie.zep.c index 2f70d6fd6a..e004e2dbb6 100644 --- a/ext/test/exitdie.zep.c +++ b/ext/stub/exitdie.zep.c @@ -18,15 +18,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_ExitDie) { +ZEPHIR_INIT_CLASS(Stub_ExitDie) { - ZEPHIR_REGISTER_CLASS(Test, ExitDie, test, exitdie, test_exitdie_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, ExitDie, stub, exitdie, stub_exitdie_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_ExitDie, testExit) { +PHP_METHOD(Stub_ExitDie, testExit) { zval *param = NULL, param_sub, __$null; zval *this_ptr = getThis(); @@ -49,7 +49,7 @@ PHP_METHOD(Test_ExitDie, testExit) { } -PHP_METHOD(Test_ExitDie, testDie) { +PHP_METHOD(Stub_ExitDie, testDie) { zval *param = NULL, param_sub, __$null; zval *this_ptr = getThis(); diff --git a/ext/stub/exitdie.zep.h b/ext/stub/exitdie.zep.h new file mode 100644 index 0000000000..c93020afe3 --- /dev/null +++ b/ext/stub/exitdie.zep.h @@ -0,0 +1,41 @@ + +extern zend_class_entry *stub_exitdie_ce; + +ZEPHIR_INIT_CLASS(Stub_ExitDie); + +PHP_METHOD(Stub_ExitDie, testExit); +PHP_METHOD(Stub_ExitDie, testDie); + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_exitdie_testexit, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_exitdie_testexit, 0, 0, IS_VOID, NULL, 0) +#endif +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_exitdie_testexit, 0, 0, 0) +#define arginfo_stub_exitdie_testexit NULL +#endif + + ZEND_ARG_INFO(0, param) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_exitdie_testdie, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_exitdie_testdie, 0, 0, IS_VOID, NULL, 0) +#endif +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_exitdie_testdie, 0, 0, 0) +#define arginfo_stub_exitdie_testdie NULL +#endif + + ZEND_ARG_INFO(0, param) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_exitdie_method_entry) { + PHP_ME(Stub_ExitDie, testExit, arginfo_stub_exitdie_testexit, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ExitDie, testDie, arginfo_stub_exitdie_testdie, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/extendedinterface.zep.c b/ext/stub/extendedinterface.zep.c similarity index 50% rename from ext/test/extendedinterface.zep.c rename to ext/stub/extendedinterface.zep.c index 5c2257c2fc..e0715a6fc0 100644 --- a/ext/test/extendedinterface.zep.c +++ b/ext/stub/extendedinterface.zep.c @@ -12,12 +12,12 @@ #include "kernel/main.h" -ZEPHIR_INIT_CLASS(Test_ExtendedInterface) { +ZEPHIR_INIT_CLASS(Stub_ExtendedInterface) { - ZEPHIR_REGISTER_INTERFACE(Test, ExtendedInterface, test, extendedinterface, NULL); + ZEPHIR_REGISTER_INTERFACE(Stub, ExtendedInterface, stub, extendedinterface, NULL); - zend_class_implements(test_extendedinterface_ce, 1, zend_ce_aggregate); - zend_class_implements(test_extendedinterface_ce, 1, spl_ce_Countable); + zend_class_implements(stub_extendedinterface_ce, 1, zend_ce_aggregate); + zend_class_implements(stub_extendedinterface_ce, 1, spl_ce_Countable); return SUCCESS; } diff --git a/ext/stub/extendedinterface.zep.h b/ext/stub/extendedinterface.zep.h new file mode 100644 index 0000000000..ce10054f39 --- /dev/null +++ b/ext/stub/extendedinterface.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_extendedinterface_ce; + +ZEPHIR_INIT_CLASS(Stub_ExtendedInterface); + diff --git a/ext/test/factorial.zep.c b/ext/stub/factorial.zep.c similarity index 88% rename from ext/test/factorial.zep.c rename to ext/stub/factorial.zep.c index 37c96bee60..f9376d77de 100644 --- a/ext/test/factorial.zep.c +++ b/ext/stub/factorial.zep.c @@ -18,15 +18,15 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_Factorial) { +ZEPHIR_INIT_CLASS(Stub_Factorial) { - ZEPHIR_REGISTER_CLASS(Test, Factorial, test, factorial, test_factorial_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Factorial, stub, factorial, stub_factorial_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Factorial, intIterativeFactorial) { +PHP_METHOD(Stub_Factorial, intIterativeFactorial) { zend_bool _0; long result, i = 0; @@ -62,7 +62,7 @@ PHP_METHOD(Test_Factorial, intIterativeFactorial) { } -PHP_METHOD(Test_Factorial, intRecursiveFactorial) { +PHP_METHOD(Stub_Factorial, intRecursiveFactorial) { zend_bool _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/factorial.zep.h b/ext/stub/factorial.zep.h new file mode 100644 index 0000000000..778f9fbcd2 --- /dev/null +++ b/ext/stub/factorial.zep.h @@ -0,0 +1,37 @@ + +extern zend_class_entry *stub_factorial_ce; + +ZEPHIR_INIT_CLASS(Stub_Factorial); + +PHP_METHOD(Stub_Factorial, intIterativeFactorial); +PHP_METHOD(Stub_Factorial, intRecursiveFactorial); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_factorial_intiterativefactorial, 0, 1, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_factorial_intiterativefactorial, 0, 1, IS_LONG, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, n) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_factorial_intrecursivefactorial, 0, 1, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_factorial_intrecursivefactorial, 0, 1, IS_LONG, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_factorial_method_entry) { + PHP_ME(Stub_Factorial, intIterativeFactorial, arginfo_stub_factorial_intiterativefactorial, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Factorial, intRecursiveFactorial, arginfo_stub_factorial_intrecursivefactorial, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/fannkuch.zep.c b/ext/stub/fannkuch.zep.c similarity index 91% rename from ext/test/fannkuch.zep.c rename to ext/stub/fannkuch.zep.c index 6571e446cd..fa0cc87e02 100644 --- a/ext/test/fannkuch.zep.c +++ b/ext/stub/fannkuch.zep.c @@ -19,21 +19,21 @@ /** - * Test\Fannkuch + * Stub\Fannkuch * * Fannkuch Redux in Zephir * * @see http://disciple-devel.blogspot.mx/2010/11/shootout-fannkuch-redux.html */ -ZEPHIR_INIT_CLASS(Test_Fannkuch) { +ZEPHIR_INIT_CLASS(Stub_Fannkuch) { - ZEPHIR_REGISTER_CLASS(Test, Fannkuch, test, fannkuch, test_fannkuch_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Fannkuch, stub, fannkuch, stub_fannkuch_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Fannkuch, process) { +PHP_METHOD(Stub_Fannkuch, process) { zend_bool _0, _5$$4, _11$$8; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -120,19 +120,19 @@ PHP_METHOD(Test_Fannkuch, process) { _5$$4 = 1; } i = _6$$4; - zephir_array_fetch_long(&_8$$7, &perm1, i, PH_NOISY | PH_READONLY, "test/fannkuch.zep", 43); + zephir_array_fetch_long(&_8$$7, &perm1, i, PH_NOISY | PH_READONLY, "stub/fannkuch.zep", 43); zephir_array_update_long(&perm, i, &_8$$7, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } } flipsCount = 0; k = 0; while (1) { - zephir_array_fetch_long(&_9$$4, &perm, 0, PH_NOISY | PH_READONLY, "test/fannkuch.zep", 48); + zephir_array_fetch_long(&_9$$4, &perm, 0, PH_NOISY | PH_READONLY, "stub/fannkuch.zep", 48); if (!(!ZEPHIR_IS_LONG(&_9$$4, 0))) { break; } ZEPHIR_OBS_NVAR(&_10$$8); - zephir_array_fetch_long(&_10$$8, &perm, 0, PH_NOISY, "test/fannkuch.zep", 49); + zephir_array_fetch_long(&_10$$8, &perm, 0, PH_NOISY, "stub/fannkuch.zep", 49); k = zephir_get_intval(&_10$$8); k2 = (long) (((zephir_safe_div_long_long(((k + 1)), 2)) - (double) (1))); _13$$8 = k2; @@ -149,8 +149,8 @@ PHP_METHOD(Test_Fannkuch, process) { _11$$8 = 1; } i = _12$$8; - zephir_array_fetch_long(&temp, &perm, i, PH_NOISY | PH_READONLY, "test/fannkuch.zep", 51); - zephir_array_fetch_long(&_14$$9, &perm, (k - i), PH_NOISY | PH_READONLY, "test/fannkuch.zep", 51); + zephir_array_fetch_long(&temp, &perm, i, PH_NOISY | PH_READONLY, "stub/fannkuch.zep", 51); + zephir_array_fetch_long(&_14$$9, &perm, (k - i), PH_NOISY | PH_READONLY, "stub/fannkuch.zep", 51); zephir_array_update_long(&perm, i, &_14$$9, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); zephir_array_update_long(&perm, (k - i), &temp, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); } @@ -179,23 +179,23 @@ PHP_METHOD(Test_Fannkuch, process) { zephir_array_fast_append(return_value, &_15$$14); RETURN_MM(); } - zephir_array_fetch_long(&perm0, &perm1, 0, PH_NOISY | PH_READONLY, "test/fannkuch.zep", 75); + zephir_array_fetch_long(&perm0, &perm1, 0, PH_NOISY | PH_READONLY, "stub/fannkuch.zep", 75); i = 0; while (1) { if (!(i < r)) { break; } j = (i + 1); - zephir_array_fetch_long(&_16$$15, &perm1, j, PH_NOISY | PH_READONLY, "test/fannkuch.zep", 78); + zephir_array_fetch_long(&_16$$15, &perm1, j, PH_NOISY | PH_READONLY, "stub/fannkuch.zep", 78); zephir_array_update_long(&perm1, i, &_16$$15, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); i = j; } zephir_array_update_long(&perm1, r, &perm0, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); - zephir_array_fetch_long(&_17$$13, &count, r, PH_NOISY | PH_READONLY, "test/fannkuch.zep", 82); + zephir_array_fetch_long(&_17$$13, &count, r, PH_NOISY | PH_READONLY, "stub/fannkuch.zep", 82); ZEPHIR_INIT_NVAR(&_18$$13); ZVAL_LONG(&_18$$13, (zephir_get_numberval(&_17$$13) - 1)); zephir_array_update_long(&count, r, &_18$$13, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); - zephir_array_fetch_long(&_19$$13, &count, r, PH_NOISY | PH_READONLY, "test/fannkuch.zep", 83); + zephir_array_fetch_long(&_19$$13, &count, r, PH_NOISY | PH_READONLY, "stub/fannkuch.zep", 83); if (ZEPHIR_GT_LONG(&_19$$13, 0)) { break; } diff --git a/ext/stub/fannkuch.zep.h b/ext/stub/fannkuch.zep.h new file mode 100644 index 0000000000..71d28597ce --- /dev/null +++ b/ext/stub/fannkuch.zep.h @@ -0,0 +1,19 @@ + +extern zend_class_entry *stub_fannkuch_ce; + +ZEPHIR_INIT_CLASS(Stub_Fannkuch); + +PHP_METHOD(Stub_Fannkuch, process); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fannkuch_process, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, n) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_fannkuch_method_entry) { + PHP_ME(Stub_Fannkuch, process, arginfo_stub_fannkuch_process, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/fasta.zep.c b/ext/stub/fasta.zep.c similarity index 95% rename from ext/test/fasta.zep.c rename to ext/stub/fasta.zep.c index 028c72ca51..4c0d21aa10 100644 --- a/ext/test/fasta.zep.c +++ b/ext/stub/fasta.zep.c @@ -22,15 +22,15 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_Fasta) { +ZEPHIR_INIT_CLASS(Stub_Fasta) { - ZEPHIR_REGISTER_CLASS(Test, Fasta, test, fasta, test_fasta_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Fasta, stub, fasta, stub_fasta_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Fasta, fastaRepeat) { +PHP_METHOD(Stub_Fasta, fastaRepeat) { zval _2, _5; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -127,13 +127,13 @@ PHP_METHOD(Test_Fasta, fastaRepeat) { if (!(ZEPHIR_LT(&j, &k))) { break; } - zephir_array_fetch(&_11$$6, &lines, &j, PH_NOISY | PH_READONLY, "test/fasta.zep", 38); + zephir_array_fetch(&_11$$6, &lines, &j, PH_NOISY | PH_READONLY, "stub/fasta.zep", 38); zend_print_zval(&_11$$6, 0); ZEPHIR_SEPARATE(&j); zephir_increment(&j); } if (zephir_safe_mod_zval_long(n, 60) > 0) { - zephir_array_fetch(&_12$$7, &lines, &k, PH_NOISY | PH_READONLY, "test/fasta.zep", 43); + zephir_array_fetch(&_12$$7, &lines, &k, PH_NOISY | PH_READONLY, "stub/fasta.zep", 43); ZVAL_LONG(&_13$$7, 0); ZVAL_DOUBLE(&_14$$7, zephir_safe_mod_zval_long(n, 60)); ZEPHIR_INIT_VAR(&_15$$7); @@ -144,7 +144,7 @@ PHP_METHOD(Test_Fasta, fastaRepeat) { } -PHP_METHOD(Test_Fasta, fastRandom) { +PHP_METHOD(Stub_Fasta, fastRandom) { zval *this_ptr = getThis(); @@ -152,7 +152,7 @@ PHP_METHOD(Test_Fasta, fastRandom) { } -PHP_METHOD(Test_Fasta, main) { +PHP_METHOD(Stub_Fasta, main) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/fasta.zep.h b/ext/stub/fasta.zep.h new file mode 100644 index 0000000000..2e414b004e --- /dev/null +++ b/ext/stub/fasta.zep.h @@ -0,0 +1,28 @@ + +extern zend_class_entry *stub_fasta_ce; + +ZEPHIR_INIT_CLASS(Stub_Fasta); + +PHP_METHOD(Stub_Fasta, fastaRepeat); +PHP_METHOD(Stub_Fasta, fastRandom); +PHP_METHOD(Stub_Fasta, main); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fasta_fastarepeat, 0, 0, 2) + ZEND_ARG_INFO(0, n) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, seq, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, seq) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fasta_main, 0, 0, 1) + ZEND_ARG_INFO(0, n) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_fasta_method_entry) { + PHP_ME(Stub_Fasta, fastaRepeat, arginfo_stub_fasta_fastarepeat, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fasta, fastRandom, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fasta, main, arginfo_stub_fasta_main, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/fcall.zep.c b/ext/stub/fcall.zep.c similarity index 88% rename from ext/test/fcall.zep.c rename to ext/stub/fcall.zep.c index 29c74456c2..5a4110cce5 100644 --- a/ext/test/fcall.zep.c +++ b/ext/stub/fcall.zep.c @@ -31,15 +31,15 @@ /** * Test function declaration in namespace */ -ZEPHIR_INIT_CLASS(Test_Fcall) { +ZEPHIR_INIT_CLASS(Stub_Fcall) { - ZEPHIR_REGISTER_CLASS(Test, Fcall, test, fcall, test_fcall_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Fcall, stub, fcall, stub_fcall_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Fcall, testCall1) { +PHP_METHOD(Stub_Fcall, testCall1) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -59,7 +59,7 @@ PHP_METHOD(Test_Fcall, testCall1) { } -PHP_METHOD(Test_Fcall, testCall2) { +PHP_METHOD(Stub_Fcall, testCall2) { zval _0$$3, _1$$3; zval *this_ptr = getThis(); @@ -76,7 +76,7 @@ PHP_METHOD(Test_Fcall, testCall2) { } -PHP_METHOD(Test_Fcall, testCall3) { +PHP_METHOD(Stub_Fcall, testCall3) { zval handle, handle2, buffer, _0, _1, _3$$4; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -122,7 +122,7 @@ PHP_METHOD(Test_Fcall, testCall3) { } -PHP_METHOD(Test_Fcall, testCall4) { +PHP_METHOD(Stub_Fcall, testCall4) { zval handle, handle2, buffer, _0, _1, _3$$4; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -168,7 +168,7 @@ PHP_METHOD(Test_Fcall, testCall4) { } -PHP_METHOD(Test_Fcall, testCall5) { +PHP_METHOD(Stub_Fcall, testCall5) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -189,7 +189,7 @@ PHP_METHOD(Test_Fcall, testCall5) { } -PHP_METHOD(Test_Fcall, testCall6) { +PHP_METHOD(Stub_Fcall, testCall6) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -204,7 +204,7 @@ PHP_METHOD(Test_Fcall, testCall6) { } -PHP_METHOD(Test_Fcall, testCall7) { +PHP_METHOD(Stub_Fcall, testCall7) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -219,7 +219,7 @@ PHP_METHOD(Test_Fcall, testCall7) { } -PHP_METHOD(Test_Fcall, zvalFcallWith1Parameter) { +PHP_METHOD(Stub_Fcall, zvalFcallWith1Parameter) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -245,7 +245,7 @@ PHP_METHOD(Test_Fcall, zvalFcallWith1Parameter) { } -PHP_METHOD(Test_Fcall, testCall8) { +PHP_METHOD(Stub_Fcall, testCall8) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -267,7 +267,7 @@ PHP_METHOD(Test_Fcall, testCall8) { } -PHP_METHOD(Test_Fcall, testCall1FromVar) { +PHP_METHOD(Stub_Fcall, testCall1FromVar) { zval funcName, _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -292,7 +292,7 @@ PHP_METHOD(Test_Fcall, testCall1FromVar) { } -PHP_METHOD(Test_Fcall, testStrtokFalse) { +PHP_METHOD(Stub_Fcall, testStrtokFalse) { zval *this_ptr = getThis(); @@ -301,7 +301,7 @@ PHP_METHOD(Test_Fcall, testStrtokFalse) { } -PHP_METHOD(Test_Fcall, testStrtokVarBySlash) { +PHP_METHOD(Stub_Fcall, testStrtokVarBySlash) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -324,7 +324,7 @@ PHP_METHOD(Test_Fcall, testStrtokVarBySlash) { } -PHP_METHOD(Test_Fcall, testFunctionGetArgs) { +PHP_METHOD(Stub_Fcall, testFunctionGetArgs) { zval *param1, param1_sub, *param2, param2_sub; zval *this_ptr = getThis(); @@ -341,7 +341,7 @@ PHP_METHOD(Test_Fcall, testFunctionGetArgs) { } -PHP_METHOD(Test_Fcall, testFunctionGetArgsAllExtra) { +PHP_METHOD(Stub_Fcall, testFunctionGetArgsAllExtra) { zval *this_ptr = getThis(); @@ -351,7 +351,7 @@ PHP_METHOD(Test_Fcall, testFunctionGetArgsAllExtra) { } -PHP_METHOD(Test_Fcall, testStaticFunctionGetArgsAllExtra) { +PHP_METHOD(Stub_Fcall, testStaticFunctionGetArgsAllExtra) { zval *this_ptr = getThis(); @@ -361,7 +361,7 @@ PHP_METHOD(Test_Fcall, testStaticFunctionGetArgsAllExtra) { } -PHP_METHOD(Test_Fcall, testFunctionGetArg) { +PHP_METHOD(Stub_Fcall, testFunctionGetArg) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *param1, param1_sub, *param2, param2_sub, _0, _1, _2; @@ -391,7 +391,7 @@ PHP_METHOD(Test_Fcall, testFunctionGetArg) { } -PHP_METHOD(Test_Fcall, testFunctionGetArgAllExtra) { +PHP_METHOD(Stub_Fcall, testFunctionGetArgAllExtra) { zval _0, _1, _2; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -416,7 +416,7 @@ PHP_METHOD(Test_Fcall, testFunctionGetArgAllExtra) { } -PHP_METHOD(Test_Fcall, testStaticFunctionGetArgAllExtra) { +PHP_METHOD(Stub_Fcall, testStaticFunctionGetArgAllExtra) { zval _0, _1, _2; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -441,7 +441,7 @@ PHP_METHOD(Test_Fcall, testStaticFunctionGetArgAllExtra) { } -PHP_METHOD(Test_Fcall, testArrayFill) { +PHP_METHOD(Stub_Fcall, testArrayFill) { zval v1, v2, _0, _1, _2; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -476,7 +476,7 @@ PHP_METHOD(Test_Fcall, testArrayFill) { } -PHP_FUNCTION(g_test_zephir_global_method_test) { +PHP_FUNCTION(g_stub_zephir_global_method_test) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval *str, str_sub, _0; @@ -489,7 +489,7 @@ PHP_FUNCTION(g_test_zephir_global_method_test) { ZEPHIR_INIT_VAR(&_0); - object_init_ex(&_0, test_fcall_ce); + object_init_ex(&_0, stub_fcall_ce); if (zephir_has_constructor(&_0)) { ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0); zephir_check_call_status(); @@ -500,7 +500,7 @@ PHP_FUNCTION(g_test_zephir_global_method_test) { } -PHP_FUNCTION(g_test_zephir_global_method_with_type_casting) { +PHP_FUNCTION(g_stub_zephir_global_method_with_type_casting) { zval *variable, variable_sub; ZVAL_UNDEF(&variable_sub); @@ -513,7 +513,7 @@ PHP_FUNCTION(g_test_zephir_global_method_with_type_casting) { } -PHP_FUNCTION(f_Test_zephir_namespaced_method_test) { +PHP_FUNCTION(f_Stub_zephir_namespaced_method_test) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; zval *str, str_sub, _0, _1; @@ -527,7 +527,7 @@ PHP_FUNCTION(f_Test_zephir_namespaced_method_test) { ZEPHIR_INIT_VAR(&_0); - object_init_ex(&_0, test_fcall_ce); + object_init_ex(&_0, stub_fcall_ce); if (zephir_has_constructor(&_0)) { ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0); zephir_check_call_status(); @@ -539,7 +539,7 @@ PHP_FUNCTION(f_Test_zephir_namespaced_method_test) { } -PHP_FUNCTION(f_Test_test_call_relative_object_hint) { +PHP_FUNCTION(f_Stub_test_call_relative_object_hint) { zval *a, a_sub; ZVAL_UNDEF(&a_sub); @@ -551,7 +551,7 @@ PHP_FUNCTION(f_Test_test_call_relative_object_hint) { } -PHP_FUNCTION(f_Test_zephir_namespaced_method_with_type_casting) { +PHP_FUNCTION(f_Stub_zephir_namespaced_method_with_type_casting) { zval *variable, variable_sub; ZVAL_UNDEF(&variable_sub); @@ -564,7 +564,7 @@ PHP_FUNCTION(f_Test_zephir_namespaced_method_with_type_casting) { } -PHP_FUNCTION(f_Test_test_call_object_hint) { +PHP_FUNCTION(f_Stub_test_call_object_hint) { zval *a, a_sub; ZVAL_UNDEF(&a_sub); diff --git a/ext/stub/fcall.zep.h b/ext/stub/fcall.zep.h new file mode 100644 index 0000000000..63efa2298e --- /dev/null +++ b/ext/stub/fcall.zep.h @@ -0,0 +1,151 @@ + +extern zend_class_entry *stub_fcall_ce; + +ZEPHIR_INIT_CLASS(Stub_Fcall); + +PHP_METHOD(Stub_Fcall, testCall1); +PHP_METHOD(Stub_Fcall, testCall2); +PHP_METHOD(Stub_Fcall, testCall3); +PHP_METHOD(Stub_Fcall, testCall4); +PHP_METHOD(Stub_Fcall, testCall5); +PHP_METHOD(Stub_Fcall, testCall6); +PHP_METHOD(Stub_Fcall, testCall7); +PHP_METHOD(Stub_Fcall, zvalFcallWith1Parameter); +PHP_METHOD(Stub_Fcall, testCall8); +PHP_METHOD(Stub_Fcall, testCall1FromVar); +PHP_METHOD(Stub_Fcall, testStrtokFalse); +PHP_METHOD(Stub_Fcall, testStrtokVarBySlash); +PHP_METHOD(Stub_Fcall, testFunctionGetArgs); +PHP_METHOD(Stub_Fcall, testFunctionGetArgsAllExtra); +PHP_METHOD(Stub_Fcall, testStaticFunctionGetArgsAllExtra); +PHP_METHOD(Stub_Fcall, testFunctionGetArg); +PHP_METHOD(Stub_Fcall, testFunctionGetArgAllExtra); +PHP_METHOD(Stub_Fcall, testStaticFunctionGetArgAllExtra); +PHP_METHOD(Stub_Fcall, testArrayFill); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testcall1, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testcall1, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testcall2, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testcall2, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fcall_testcall5, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fcall_zvalfcallwith1parameter, 0, 0, 1) + ZEND_ARG_INFO(0, callback) + ZEND_ARG_INFO(0, param1) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fcall_testcall8, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testcall1fromvar, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testcall1fromvar, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_teststrtokfalse, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_teststrtokfalse, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_teststrtokvarbyslash, 0, 1, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_teststrtokvarbyslash, 0, 1, IS_STRING, NULL, 0) +#endif + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testfunctiongetargs, 0, 2, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testfunctiongetargs, 0, 2, IS_ARRAY, NULL, 0) +#endif + ZEND_ARG_INFO(0, param1) + ZEND_ARG_INFO(0, param2) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testfunctiongetargsallextra, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testfunctiongetargsallextra, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_teststaticfunctiongetargsallextra, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_teststaticfunctiongetargsallextra, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testfunctiongetarg, 0, 2, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testfunctiongetarg, 0, 2, IS_ARRAY, NULL, 0) +#endif + ZEND_ARG_INFO(0, param1) + ZEND_ARG_INFO(0, param2) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testfunctiongetargallextra, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testfunctiongetargallextra, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_teststaticfunctiongetargallextra, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_teststaticfunctiongetargallextra, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testarrayfill, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fcall_testarrayfill, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_fcall_method_entry) { + PHP_ME(Stub_Fcall, testCall1, arginfo_stub_fcall_testcall1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testCall2, arginfo_stub_fcall_testcall2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testCall3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testCall4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testCall5, arginfo_stub_fcall_testcall5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testCall6, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testCall7, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, zvalFcallWith1Parameter, arginfo_stub_fcall_zvalfcallwith1parameter, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testCall8, arginfo_stub_fcall_testcall8, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testCall1FromVar, arginfo_stub_fcall_testcall1fromvar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testStrtokFalse, arginfo_stub_fcall_teststrtokfalse, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testStrtokVarBySlash, arginfo_stub_fcall_teststrtokvarbyslash, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testFunctionGetArgs, arginfo_stub_fcall_testfunctiongetargs, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testFunctionGetArgsAllExtra, arginfo_stub_fcall_testfunctiongetargsallextra, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testStaticFunctionGetArgsAllExtra, arginfo_stub_fcall_teststaticfunctiongetargsallextra, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Fcall, testFunctionGetArg, arginfo_stub_fcall_testfunctiongetarg, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testFunctionGetArgAllExtra, arginfo_stub_fcall_testfunctiongetargallextra, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fcall, testStaticFunctionGetArgAllExtra, arginfo_stub_fcall_teststaticfunctiongetargallextra, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Fcall, testArrayFill, arginfo_stub_fcall_testarrayfill, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/fetchtest.zep.c b/ext/stub/fetchtest.zep.c similarity index 84% rename from ext/test/fetchtest.zep.c rename to ext/stub/fetchtest.zep.c index 7bc95e6dca..947d635ab0 100644 --- a/ext/test/fetchtest.zep.c +++ b/ext/stub/fetchtest.zep.c @@ -21,17 +21,17 @@ /** * Fetch statement tests */ -ZEPHIR_INIT_CLASS(Test_FetchTest) { +ZEPHIR_INIT_CLASS(Stub_FetchTest) { - ZEPHIR_REGISTER_CLASS(Test, FetchTest, test, fetchtest, test_fetchtest_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, FetchTest, stub, fetchtest, stub_fetchtest_method_entry, 0); - zend_declare_property_null(test_fetchtest_ce, SL("values"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_fetchtest_ce, SL("values"), ZEND_ACC_PROTECTED); return SUCCESS; } -PHP_METHOD(Test_FetchTest, setValues) { +PHP_METHOD(Stub_FetchTest, setValues) { zval *values, values_sub; zval *this_ptr = getThis(); @@ -47,7 +47,7 @@ PHP_METHOD(Test_FetchTest, setValues) { } -PHP_METHOD(Test_FetchTest, getValues) { +PHP_METHOD(Stub_FetchTest, getValues) { zval *this_ptr = getThis(); @@ -56,7 +56,7 @@ PHP_METHOD(Test_FetchTest, getValues) { } -PHP_METHOD(Test_FetchTest, testFetchArray1) { +PHP_METHOD(Stub_FetchTest, testFetchArray1) { zval *a, a_sub, *b, b_sub, c; zval *this_ptr = getThis(); @@ -73,7 +73,7 @@ PHP_METHOD(Test_FetchTest, testFetchArray1) { } -PHP_METHOD(Test_FetchTest, testFetchArray2) { +PHP_METHOD(Stub_FetchTest, testFetchArray2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a = NULL, a_sub, *b, b_sub; @@ -93,7 +93,7 @@ PHP_METHOD(Test_FetchTest, testFetchArray2) { } -PHP_METHOD(Test_FetchTest, testFetchArray3) { +PHP_METHOD(Stub_FetchTest, testFetchArray3) { zend_long b; zval *a, a_sub, *b_param = NULL, c; @@ -111,7 +111,7 @@ PHP_METHOD(Test_FetchTest, testFetchArray3) { } -PHP_METHOD(Test_FetchTest, testFetchArray4) { +PHP_METHOD(Stub_FetchTest, testFetchArray4) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long b; @@ -132,7 +132,7 @@ PHP_METHOD(Test_FetchTest, testFetchArray4) { } -PHP_METHOD(Test_FetchTest, testFetchArray5) { +PHP_METHOD(Stub_FetchTest, testFetchArray5) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval b; @@ -153,7 +153,7 @@ PHP_METHOD(Test_FetchTest, testFetchArray5) { } -PHP_METHOD(Test_FetchTest, testFetchArray6) { +PHP_METHOD(Stub_FetchTest, testFetchArray6) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval b; @@ -175,7 +175,7 @@ PHP_METHOD(Test_FetchTest, testFetchArray6) { } -PHP_METHOD(Test_FetchTest, testFetchObject1) { +PHP_METHOD(Stub_FetchTest, testFetchObject1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a, a_sub, *b, b_sub, c; @@ -195,7 +195,7 @@ PHP_METHOD(Test_FetchTest, testFetchObject1) { } -PHP_METHOD(Test_FetchTest, testFetchObject2) { +PHP_METHOD(Stub_FetchTest, testFetchObject2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a = NULL, a_sub, *b, b_sub; @@ -215,7 +215,7 @@ PHP_METHOD(Test_FetchTest, testFetchObject2) { } -PHP_METHOD(Test_FetchTest, testFetchPost) { +PHP_METHOD(Stub_FetchTest, testFetchPost) { zval *b, b_sub, _POST, c; zval *this_ptr = getThis(); @@ -236,7 +236,7 @@ PHP_METHOD(Test_FetchTest, testFetchPost) { } -PHP_METHOD(Test_FetchTest, hasValue) { +PHP_METHOD(Stub_FetchTest, hasValue) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *name_param = NULL, _POST, _0$$4; @@ -257,7 +257,7 @@ PHP_METHOD(Test_FetchTest, hasValue) { if (zephir_array_isset(&_POST, &name)) { RETURN_MM_BOOL(1); } else { - zephir_read_property(&_0$$4, this_ptr, SL("values"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0$$4, this_ptr, ZEND_STRL("values"), PH_NOISY_CC | PH_READONLY); if (zephir_array_isset(&_0$$4, &name)) { RETURN_MM_BOOL(1); } @@ -266,7 +266,7 @@ PHP_METHOD(Test_FetchTest, hasValue) { } -PHP_METHOD(Test_FetchTest, getValue) { +PHP_METHOD(Stub_FetchTest, getValue) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *name_param = NULL, _POST, value, _0$$3; @@ -288,7 +288,7 @@ PHP_METHOD(Test_FetchTest, getValue) { ZEPHIR_OBS_VAR(&value); if (!(zephir_array_isset_fetch(&value, &_POST, &name, 0))) { ZEPHIR_OBS_NVAR(&value); - zephir_read_property(&_0$$3, this_ptr, SL("values"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0$$3, this_ptr, ZEND_STRL("values"), PH_NOISY_CC | PH_READONLY); if (!(zephir_array_isset_fetch(&value, &_0$$3, &name, 0))) { RETURN_MM_NULL(); } diff --git a/ext/stub/fetchtest.zep.h b/ext/stub/fetchtest.zep.h new file mode 100644 index 0000000000..5cc043a744 --- /dev/null +++ b/ext/stub/fetchtest.zep.h @@ -0,0 +1,119 @@ + +extern zend_class_entry *stub_fetchtest_ce; + +ZEPHIR_INIT_CLASS(Stub_FetchTest); + +PHP_METHOD(Stub_FetchTest, setValues); +PHP_METHOD(Stub_FetchTest, getValues); +PHP_METHOD(Stub_FetchTest, testFetchArray1); +PHP_METHOD(Stub_FetchTest, testFetchArray2); +PHP_METHOD(Stub_FetchTest, testFetchArray3); +PHP_METHOD(Stub_FetchTest, testFetchArray4); +PHP_METHOD(Stub_FetchTest, testFetchArray5); +PHP_METHOD(Stub_FetchTest, testFetchArray6); +PHP_METHOD(Stub_FetchTest, testFetchObject1); +PHP_METHOD(Stub_FetchTest, testFetchObject2); +PHP_METHOD(Stub_FetchTest, testFetchPost); +PHP_METHOD(Stub_FetchTest, hasValue); +PHP_METHOD(Stub_FetchTest, getValue); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fetchtest_setvalues, 0, 0, 1) + ZEND_ARG_INFO(0, values) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fetchtest_testfetcharray1, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fetchtest_testfetcharray2, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fetchtest_testfetcharray3, 0, 0, 2) + ZEND_ARG_INFO(0, a) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fetchtest_testfetcharray4, 0, 0, 2) + ZEND_ARG_INFO(0, a) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fetchtest_testfetcharray5, 0, 0, 2) + ZEND_ARG_INFO(0, a) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fetchtest_testfetcharray6, 0, 0, 2) + ZEND_ARG_INFO(0, a) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fetchtest_testfetchobject1, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fetchtest_testfetchobject2, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fetchtest_testfetchpost, 0, 0, 1) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fetchtest_hasvalue, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fetchtest_hasvalue, 0, 1, _IS_BOOL, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fetchtest_getvalue, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_fetchtest_method_entry) { + PHP_ME(Stub_FetchTest, setValues, arginfo_stub_fetchtest_setvalues, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FetchTest, getValues, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FetchTest, testFetchArray1, arginfo_stub_fetchtest_testfetcharray1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FetchTest, testFetchArray2, arginfo_stub_fetchtest_testfetcharray2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FetchTest, testFetchArray3, arginfo_stub_fetchtest_testfetcharray3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FetchTest, testFetchArray4, arginfo_stub_fetchtest_testfetcharray4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FetchTest, testFetchArray5, arginfo_stub_fetchtest_testfetcharray5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FetchTest, testFetchArray6, arginfo_stub_fetchtest_testfetcharray6, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FetchTest, testFetchObject1, arginfo_stub_fetchtest_testfetchobject1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FetchTest, testFetchObject2, arginfo_stub_fetchtest_testfetchobject2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FetchTest, testFetchPost, arginfo_stub_fetchtest_testfetchpost, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FetchTest, hasValue, arginfo_stub_fetchtest_hasvalue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FetchTest, getValue, arginfo_stub_fetchtest_getvalue, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/fibonnaci.zep.c b/ext/stub/fibonnaci.zep.c similarity index 89% rename from ext/test/fibonnaci.zep.c rename to ext/stub/fibonnaci.zep.c index beaa738ff0..ed978b017d 100644 --- a/ext/test/fibonnaci.zep.c +++ b/ext/stub/fibonnaci.zep.c @@ -19,15 +19,15 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_Fibonnaci) { +ZEPHIR_INIT_CLASS(Stub_Fibonnaci) { - ZEPHIR_REGISTER_CLASS(Test, Fibonnaci, test, fibonnaci, test_fibonnaci_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Fibonnaci, stub, fibonnaci, stub_fibonnaci_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Fibonnaci, fibInt) { +PHP_METHOD(Stub_Fibonnaci, fibInt) { zend_long x = 0, y = 0, n = 0, z = 0; zval *this_ptr = getThis(); @@ -50,7 +50,7 @@ PHP_METHOD(Test_Fibonnaci, fibInt) { } -PHP_METHOD(Test_Fibonnaci, fibDouble) { +PHP_METHOD(Stub_Fibonnaci, fibDouble) { double x = 0, y = 0, n = 0, z = 0; zval *this_ptr = getThis(); @@ -73,7 +73,7 @@ PHP_METHOD(Test_Fibonnaci, fibDouble) { } -PHP_METHOD(Test_Fibonnaci, fibArray) { +PHP_METHOD(Stub_Fibonnaci, fibArray) { zend_long i = 0, n = 0, k = 0, j = 0; zval fib, a, b, c, _0; @@ -104,8 +104,8 @@ PHP_METHOD(Test_Fibonnaci, fibArray) { } k = (i - 1); j = (i - 2); - zephir_array_fetch_long(&a, &fib, k, PH_NOISY | PH_READONLY, "test/fibonnaci.zep", 51); - zephir_array_fetch_long(&b, &fib, j, PH_NOISY | PH_READONLY, "test/fibonnaci.zep", 52); + zephir_array_fetch_long(&a, &fib, k, PH_NOISY | PH_READONLY, "stub/fibonnaci.zep", 51); + zephir_array_fetch_long(&b, &fib, j, PH_NOISY | PH_READONLY, "stub/fibonnaci.zep", 52); ZEPHIR_INIT_NVAR(&c); zephir_add_function(&c, &a, &b); zephir_array_update_long(&fib, i, &c, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); @@ -115,7 +115,7 @@ PHP_METHOD(Test_Fibonnaci, fibArray) { } -PHP_METHOD(Test_Fibonnaci, fibArray2) { +PHP_METHOD(Stub_Fibonnaci, fibArray2) { zend_long i = 0, n = 0; zval fib, _0, _1$$3, _2$$3, _3$$3; @@ -144,8 +144,8 @@ PHP_METHOD(Test_Fibonnaci, fibArray2) { if (!(i < n)) { break; } - zephir_array_fetch_long(&_1$$3, &fib, (i - 1), PH_NOISY | PH_READONLY, "test/fibonnaci.zep", 67); - zephir_array_fetch_long(&_2$$3, &fib, (i - 2), PH_NOISY | PH_READONLY, "test/fibonnaci.zep", 67); + zephir_array_fetch_long(&_1$$3, &fib, (i - 1), PH_NOISY | PH_READONLY, "stub/fibonnaci.zep", 67); + zephir_array_fetch_long(&_2$$3, &fib, (i - 2), PH_NOISY | PH_READONLY, "stub/fibonnaci.zep", 67); ZEPHIR_INIT_NVAR(&_3$$3); zephir_add_function(&_3$$3, &_1$$3, &_2$$3); zephir_array_update_long(&fib, i, &_3$$3, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); @@ -155,7 +155,7 @@ PHP_METHOD(Test_Fibonnaci, fibArray2) { } -PHP_METHOD(Test_Fibonnaci, fibonacciRecursive) { +PHP_METHOD(Stub_Fibonnaci, fibonacciRecursive) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_2 = NULL; @@ -192,7 +192,7 @@ PHP_METHOD(Test_Fibonnaci, fibonacciRecursive) { } -PHP_METHOD(Test_Fibonnaci, fibonacciFinalRecursive) { +PHP_METHOD(Stub_Fibonnaci, fibonacciFinalRecursive) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_2 = NULL; diff --git a/ext/stub/fibonnaci.zep.h b/ext/stub/fibonnaci.zep.h new file mode 100644 index 0000000000..4040d3d054 --- /dev/null +++ b/ext/stub/fibonnaci.zep.h @@ -0,0 +1,37 @@ + +extern zend_class_entry *stub_fibonnaci_ce; + +ZEPHIR_INIT_CLASS(Stub_Fibonnaci); + +PHP_METHOD(Stub_Fibonnaci, fibInt); +PHP_METHOD(Stub_Fibonnaci, fibDouble); +PHP_METHOD(Stub_Fibonnaci, fibArray); +PHP_METHOD(Stub_Fibonnaci, fibArray2); +PHP_METHOD(Stub_Fibonnaci, fibonacciRecursive); +PHP_METHOD(Stub_Fibonnaci, fibonacciFinalRecursive); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fibonnaci_fibonaccirecursive, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, n) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_fibonnaci_fibonaccifinalrecursive, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, n) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_fibonnaci_method_entry) { + PHP_ME(Stub_Fibonnaci, fibInt, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fibonnaci, fibDouble, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fibonnaci, fibArray, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fibonnaci, fibArray2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Fibonnaci, fibonacciRecursive, arginfo_stub_fibonnaci_fibonaccirecursive, ZEND_ACC_PRIVATE) + PHP_ME(Stub_Fibonnaci, fibonacciFinalRecursive, arginfo_stub_fibonnaci_fibonaccifinalrecursive, ZEND_ACC_PRIVATE|ZEND_ACC_FINAL) + PHP_FE_END +}; diff --git a/ext/test/flow.zep.c b/ext/stub/flow.zep.c similarity index 90% rename from ext/test/flow.zep.c rename to ext/stub/flow.zep.c index cb4b78f5a9..955a8ad4c9 100644 --- a/ext/test/flow.zep.c +++ b/ext/stub/flow.zep.c @@ -25,15 +25,15 @@ /** * Control Flow */ -ZEPHIR_INIT_CLASS(Test_Flow) { +ZEPHIR_INIT_CLASS(Stub_Flow) { - ZEPHIR_REGISTER_CLASS(Test, Flow, test, flow, test_flow_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Flow, stub, flow, stub_flow_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Flow, testIf1) { +PHP_METHOD(Stub_Flow, testIf1) { zend_long a = 0; zval *this_ptr = getThis(); @@ -48,7 +48,7 @@ PHP_METHOD(Test_Flow, testIf1) { } -PHP_METHOD(Test_Flow, testIf2) { +PHP_METHOD(Stub_Flow, testIf2) { zend_long a = 0; zval *this_ptr = getThis(); @@ -63,7 +63,7 @@ PHP_METHOD(Test_Flow, testIf2) { } -PHP_METHOD(Test_Flow, testIf3) { +PHP_METHOD(Stub_Flow, testIf3) { double a = 0; zval *this_ptr = getThis(); @@ -78,7 +78,7 @@ PHP_METHOD(Test_Flow, testIf3) { } -PHP_METHOD(Test_Flow, testIf4) { +PHP_METHOD(Stub_Flow, testIf4) { double a = 0; zval *this_ptr = getThis(); @@ -93,7 +93,7 @@ PHP_METHOD(Test_Flow, testIf4) { } -PHP_METHOD(Test_Flow, testIf5) { +PHP_METHOD(Stub_Flow, testIf5) { zend_bool a = 0; zval *this_ptr = getThis(); @@ -108,7 +108,7 @@ PHP_METHOD(Test_Flow, testIf5) { } -PHP_METHOD(Test_Flow, testIf6) { +PHP_METHOD(Stub_Flow, testIf6) { zend_bool a = 0; zval *this_ptr = getThis(); @@ -123,7 +123,7 @@ PHP_METHOD(Test_Flow, testIf6) { } -PHP_METHOD(Test_Flow, testIf7) { +PHP_METHOD(Stub_Flow, testIf7) { zend_long a = 0; zval *this_ptr = getThis(); @@ -139,7 +139,7 @@ PHP_METHOD(Test_Flow, testIf7) { } -PHP_METHOD(Test_Flow, testIf8) { +PHP_METHOD(Stub_Flow, testIf8) { zend_long a = 0; zval *this_ptr = getThis(); @@ -155,7 +155,7 @@ PHP_METHOD(Test_Flow, testIf8) { } -PHP_METHOD(Test_Flow, testIf9) { +PHP_METHOD(Stub_Flow, testIf9) { zend_bool c = 0; double b = 0; @@ -178,7 +178,7 @@ PHP_METHOD(Test_Flow, testIf9) { } -PHP_METHOD(Test_Flow, testIf10) { +PHP_METHOD(Stub_Flow, testIf10) { zend_bool c = 0; double b = 0; @@ -206,7 +206,7 @@ PHP_METHOD(Test_Flow, testIf10) { } -PHP_METHOD(Test_Flow, testIf12) { +PHP_METHOD(Stub_Flow, testIf12) { zend_bool c = 0; double b = 0; @@ -234,7 +234,7 @@ PHP_METHOD(Test_Flow, testIf12) { } -PHP_METHOD(Test_Flow, testIf13) { +PHP_METHOD(Stub_Flow, testIf13) { zend_long a = 0, b = 0; zval *this_ptr = getThis(); @@ -250,7 +250,7 @@ PHP_METHOD(Test_Flow, testIf13) { } -PHP_METHOD(Test_Flow, testIf14) { +PHP_METHOD(Stub_Flow, testIf14) { zend_long a = 0, b = 0; zval *this_ptr = getThis(); @@ -266,7 +266,7 @@ PHP_METHOD(Test_Flow, testIf14) { } -PHP_METHOD(Test_Flow, testIf15) { +PHP_METHOD(Stub_Flow, testIf15) { zend_long a = 0, b = 0, c = 0; zval *this_ptr = getThis(); @@ -283,7 +283,7 @@ PHP_METHOD(Test_Flow, testIf15) { } -PHP_METHOD(Test_Flow, testIf16) { +PHP_METHOD(Stub_Flow, testIf16) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -301,7 +301,7 @@ PHP_METHOD(Test_Flow, testIf16) { } -PHP_METHOD(Test_Flow, testIf17) { +PHP_METHOD(Stub_Flow, testIf17) { zval *b, b_sub; zval *this_ptr = getThis(); @@ -319,7 +319,7 @@ PHP_METHOD(Test_Flow, testIf17) { } -PHP_METHOD(Test_Flow, testLoop1) { +PHP_METHOD(Stub_Flow, testLoop1) { zend_bool a = 0; zval *this_ptr = getThis(); @@ -336,7 +336,7 @@ PHP_METHOD(Test_Flow, testLoop1) { } -PHP_METHOD(Test_Flow, testLoop2) { +PHP_METHOD(Stub_Flow, testLoop2) { zend_long a = 0; zval *this_ptr = getThis(); @@ -354,7 +354,7 @@ PHP_METHOD(Test_Flow, testLoop2) { } -PHP_METHOD(Test_Flow, testLoop3) { +PHP_METHOD(Stub_Flow, testLoop3) { zend_long a = 0; zval *this_ptr = getThis(); @@ -376,7 +376,7 @@ PHP_METHOD(Test_Flow, testLoop3) { } -PHP_METHOD(Test_Flow, testLoop4) { +PHP_METHOD(Stub_Flow, testLoop4) { zend_long a = 0; zval *this_ptr = getThis(); @@ -398,7 +398,7 @@ PHP_METHOD(Test_Flow, testLoop4) { } -PHP_METHOD(Test_Flow, testWhile1) { +PHP_METHOD(Stub_Flow, testWhile1) { zend_long a = 0; zval *this_ptr = getThis(); @@ -416,7 +416,7 @@ PHP_METHOD(Test_Flow, testWhile1) { } -PHP_METHOD(Test_Flow, testWhile2) { +PHP_METHOD(Stub_Flow, testWhile2) { zend_long a = 0; zval *this_ptr = getThis(); @@ -434,7 +434,7 @@ PHP_METHOD(Test_Flow, testWhile2) { } -PHP_METHOD(Test_Flow, testWhile3) { +PHP_METHOD(Stub_Flow, testWhile3) { double c = 0; zend_long a = 0, b = 0; @@ -462,7 +462,7 @@ PHP_METHOD(Test_Flow, testWhile3) { } -PHP_METHOD(Test_Flow, testWhile4) { +PHP_METHOD(Stub_Flow, testWhile4) { double c = 0; zend_long a = 0, b = 0; @@ -490,7 +490,7 @@ PHP_METHOD(Test_Flow, testWhile4) { } -PHP_METHOD(Test_Flow, testWhile5) { +PHP_METHOD(Stub_Flow, testWhile5) { zend_long a = 0; zval *this_ptr = getThis(); @@ -508,7 +508,7 @@ PHP_METHOD(Test_Flow, testWhile5) { } -PHP_METHOD(Test_Flow, testWhile6) { +PHP_METHOD(Stub_Flow, testWhile6) { zend_long a = 0; zval *this_ptr = getThis(); @@ -526,7 +526,7 @@ PHP_METHOD(Test_Flow, testWhile6) { } -PHP_METHOD(Test_Flow, testWhile7) { +PHP_METHOD(Stub_Flow, testWhile7) { double a = 0; zval *this_ptr = getThis(); @@ -544,7 +544,7 @@ PHP_METHOD(Test_Flow, testWhile7) { } -PHP_METHOD(Test_Flow, testWhile8) { +PHP_METHOD(Stub_Flow, testWhile8) { double a = 0; zval *this_ptr = getThis(); @@ -562,7 +562,7 @@ PHP_METHOD(Test_Flow, testWhile8) { } -PHP_METHOD(Test_Flow, testWhile9) { +PHP_METHOD(Stub_Flow, testWhile9) { double c = 0; zend_long a = 0, b = 0; @@ -590,7 +590,7 @@ PHP_METHOD(Test_Flow, testWhile9) { } -PHP_METHOD(Test_Flow, testWhile10) { +PHP_METHOD(Stub_Flow, testWhile10) { double c = 0; zend_long b = 0; @@ -626,7 +626,7 @@ PHP_METHOD(Test_Flow, testWhile10) { } -PHP_METHOD(Test_Flow, testWhile11) { +PHP_METHOD(Stub_Flow, testWhile11) { double c = 0; zend_long b = 0; @@ -663,7 +663,7 @@ PHP_METHOD(Test_Flow, testWhile11) { } -PHP_METHOD(Test_Flow, testWhile12) { +PHP_METHOD(Stub_Flow, testWhile12) { zval _0; zval b; @@ -689,7 +689,7 @@ PHP_METHOD(Test_Flow, testWhile12) { } -PHP_METHOD(Test_Flow, testWhile13) { +PHP_METHOD(Stub_Flow, testWhile13) { zval _0; zend_long a; @@ -717,7 +717,7 @@ PHP_METHOD(Test_Flow, testWhile13) { } -PHP_METHOD(Test_Flow, testDoWhile1) { +PHP_METHOD(Stub_Flow, testDoWhile1) { zval *this_ptr = getThis(); @@ -727,7 +727,7 @@ PHP_METHOD(Test_Flow, testDoWhile1) { } -PHP_METHOD(Test_Flow, testWhileNextTest) { +PHP_METHOD(Stub_Flow, testWhileNextTest) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -757,13 +757,13 @@ PHP_METHOD(Test_Flow, testWhileNextTest) { } ZEPHIR_CALL_FUNCTION(&_2$$3, "current", &_3, 42, variable); zephir_check_call_status(); - zephir_array_append(&returnValue, &_2$$3, PH_SEPARATE, "test/flow.zep", 420); + zephir_array_append(&returnValue, &_2$$3, PH_SEPARATE, "stub/flow.zep", 420); } RETURN_CCTOR(&returnValue); } -PHP_METHOD(Test_Flow, testWhileDoNextTest) { +PHP_METHOD(Stub_Flow, testWhileDoNextTest) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -786,7 +786,7 @@ PHP_METHOD(Test_Flow, testWhileDoNextTest) { do { ZEPHIR_CALL_FUNCTION(&_0$$3, "current", &_1, 42, variable); zephir_check_call_status(); - zephir_array_append(&returnValue, &_0$$3, PH_SEPARATE, "test/flow.zep", 430); + zephir_array_append(&returnValue, &_0$$3, PH_SEPARATE, "stub/flow.zep", 430); ZEPHIR_MAKE_REF(variable); ZEPHIR_CALL_FUNCTION(&_2, "next", &_3, 41, variable); ZEPHIR_UNREF(variable); @@ -796,7 +796,7 @@ PHP_METHOD(Test_Flow, testWhileDoNextTest) { } -PHP_METHOD(Test_Flow, testFor1) { +PHP_METHOD(Stub_Flow, testFor1) { zval v, b, _0, *_1, _2; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -825,7 +825,7 @@ PHP_METHOD(Test_Flow, testFor1) { ZEPHIR_INIT_NVAR(&_0); ZVAL_LONG(&_0, 4); zephir_array_fast_append(&b, &_0); - zephir_is_iterable(&b, 0, "test/flow.zep", 443); + zephir_is_iterable(&b, 0, "stub/flow.zep", 443); if (Z_TYPE_P(&b) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&b), _1) { @@ -854,7 +854,7 @@ PHP_METHOD(Test_Flow, testFor1) { } -PHP_METHOD(Test_Flow, testFor2) { +PHP_METHOD(Stub_Flow, testFor2) { zend_string *_4; zend_ulong _3; @@ -887,7 +887,7 @@ PHP_METHOD(Test_Flow, testFor2) { ZEPHIR_INIT_NVAR(&_0); ZVAL_LONG(&_0, 4); zephir_array_fast_append(&b, &_0); - zephir_is_iterable(&b, 0, "test/flow.zep", 453); + zephir_is_iterable(&b, 0, "stub/flow.zep", 453); if (Z_TYPE_P(&b) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&b), _3, _4, _1) { @@ -925,7 +925,7 @@ PHP_METHOD(Test_Flow, testFor2) { } -PHP_METHOD(Test_Flow, testFor3) { +PHP_METHOD(Stub_Flow, testFor3) { zval v, b, c, _0, *_1, _2; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -956,13 +956,13 @@ PHP_METHOD(Test_Flow, testFor3) { ZEPHIR_INIT_NVAR(&_0); ZVAL_LONG(&_0, 4); zephir_array_fast_append(&b, &_0); - zephir_is_iterable(&b, 0, "test/flow.zep", 464); + zephir_is_iterable(&b, 0, "stub/flow.zep", 464); if (Z_TYPE_P(&b) == IS_ARRAY) { ZEND_HASH_REVERSE_FOREACH_VAL(Z_ARRVAL_P(&b), _1) { ZEPHIR_INIT_NVAR(&v); ZVAL_COPY(&v, _1); - zephir_array_append(&c, &v, PH_SEPARATE, "test/flow.zep", 462); + zephir_array_append(&c, &v, PH_SEPARATE, "stub/flow.zep", 462); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &b, "rewind", NULL, 0); @@ -975,7 +975,7 @@ PHP_METHOD(Test_Flow, testFor3) { } ZEPHIR_CALL_METHOD(&v, &b, "current", NULL, 0); zephir_check_call_status(); - zephir_array_append(&c, &v, PH_SEPARATE, "test/flow.zep", 462); + zephir_array_append(&c, &v, PH_SEPARATE, "stub/flow.zep", 462); ZEPHIR_CALL_METHOD(NULL, &b, "next", NULL, 0); zephir_check_call_status(); } @@ -985,7 +985,7 @@ PHP_METHOD(Test_Flow, testFor3) { } -PHP_METHOD(Test_Flow, testFor4) { +PHP_METHOD(Stub_Flow, testFor4) { zend_long _1, _2; zend_bool _0; @@ -1022,7 +1022,7 @@ PHP_METHOD(Test_Flow, testFor4) { } -PHP_METHOD(Test_Flow, testFor5) { +PHP_METHOD(Stub_Flow, testFor5) { zend_bool _0; zend_long a = 0, b = 0, _1, _2; @@ -1052,7 +1052,7 @@ PHP_METHOD(Test_Flow, testFor5) { } -PHP_METHOD(Test_Flow, testFor6) { +PHP_METHOD(Stub_Flow, testFor6) { zend_long _1, _2; zend_bool _0; @@ -1089,7 +1089,7 @@ PHP_METHOD(Test_Flow, testFor6) { } -PHP_METHOD(Test_Flow, testFor7) { +PHP_METHOD(Stub_Flow, testFor7) { zend_bool _0; zend_long a = 0, b = 0, _1, _2; @@ -1119,7 +1119,7 @@ PHP_METHOD(Test_Flow, testFor7) { } -PHP_METHOD(Test_Flow, testFor8) { +PHP_METHOD(Stub_Flow, testFor8) { zend_bool _0; zend_long a = 0, b = 0, c = 0, d = 0, _1, _2; @@ -1151,7 +1151,7 @@ PHP_METHOD(Test_Flow, testFor8) { } -PHP_METHOD(Test_Flow, testFor9) { +PHP_METHOD(Stub_Flow, testFor9) { zend_bool _0; zend_long a = 0, b = 0, c = 0, d = 0, _1, _2; @@ -1183,7 +1183,7 @@ PHP_METHOD(Test_Flow, testFor9) { } -PHP_METHOD(Test_Flow, testFor10) { +PHP_METHOD(Stub_Flow, testFor10) { zend_bool _0; zend_long c = 0, d = 0, _1, _2; @@ -1222,7 +1222,7 @@ PHP_METHOD(Test_Flow, testFor10) { } -PHP_METHOD(Test_Flow, testFor11) { +PHP_METHOD(Stub_Flow, testFor11) { zend_bool _0; zval b; @@ -1257,7 +1257,7 @@ PHP_METHOD(Test_Flow, testFor11) { } -PHP_METHOD(Test_Flow, testFor12) { +PHP_METHOD(Stub_Flow, testFor12) { zend_bool _0; zval b; @@ -1292,7 +1292,7 @@ PHP_METHOD(Test_Flow, testFor12) { } -PHP_METHOD(Test_Flow, testFor13) { +PHP_METHOD(Stub_Flow, testFor13) { zend_bool _0; zval b; @@ -1327,7 +1327,7 @@ PHP_METHOD(Test_Flow, testFor13) { } -PHP_METHOD(Test_Flow, testFor14) { +PHP_METHOD(Stub_Flow, testFor14) { zend_bool _0; zval b; @@ -1362,7 +1362,7 @@ PHP_METHOD(Test_Flow, testFor14) { } -PHP_METHOD(Test_Flow, testFor15) { +PHP_METHOD(Stub_Flow, testFor15) { zend_bool _0; zval *c_param = NULL, *d_param = NULL; @@ -1398,7 +1398,7 @@ PHP_METHOD(Test_Flow, testFor15) { } -PHP_METHOD(Test_Flow, testFor16) { +PHP_METHOD(Stub_Flow, testFor16) { zend_long _2, _3; zend_bool _1; @@ -1441,7 +1441,7 @@ PHP_METHOD(Test_Flow, testFor16) { } -PHP_METHOD(Test_Flow, testFor17) { +PHP_METHOD(Stub_Flow, testFor17) { zend_long _2, _3; zend_bool _1; @@ -1484,7 +1484,7 @@ PHP_METHOD(Test_Flow, testFor17) { } -PHP_METHOD(Test_Flow, testFor18) { +PHP_METHOD(Stub_Flow, testFor18) { zend_bool _1; long _0; @@ -1526,7 +1526,7 @@ PHP_METHOD(Test_Flow, testFor18) { } -PHP_METHOD(Test_Flow, testFor19) { +PHP_METHOD(Stub_Flow, testFor19) { zend_long _1, _2; zend_bool _0; @@ -1563,7 +1563,7 @@ PHP_METHOD(Test_Flow, testFor19) { } -PHP_METHOD(Test_Flow, testFor20) { +PHP_METHOD(Stub_Flow, testFor20) { zend_long _1, _2; zend_bool _0; @@ -1600,7 +1600,7 @@ PHP_METHOD(Test_Flow, testFor20) { } -PHP_METHOD(Test_Flow, testFor21) { +PHP_METHOD(Stub_Flow, testFor21) { zend_long _1, _2; zend_bool _0; @@ -1637,7 +1637,7 @@ PHP_METHOD(Test_Flow, testFor21) { } -PHP_METHOD(Test_Flow, testFor22) { +PHP_METHOD(Stub_Flow, testFor22) { zend_long _1, _2; zend_bool _0; @@ -1674,7 +1674,7 @@ PHP_METHOD(Test_Flow, testFor22) { } -PHP_METHOD(Test_Flow, testFor23) { +PHP_METHOD(Stub_Flow, testFor23) { char _1, _2, _3$$3; zend_bool _0; @@ -1713,7 +1713,7 @@ PHP_METHOD(Test_Flow, testFor23) { } -PHP_METHOD(Test_Flow, testFor24) { +PHP_METHOD(Stub_Flow, testFor24) { zval _0; zval b; @@ -1746,7 +1746,7 @@ PHP_METHOD(Test_Flow, testFor24) { ZEPHIR_INIT_NVAR(&_1); ZVAL_LONG(&_1, 'd'); zephir_array_fast_append(&_0, &_1); - zephir_is_iterable(&_0, 0, "test/flow.zep", 674); + zephir_is_iterable(&_0, 0, "stub/flow.zep", 674); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _2) { @@ -1775,7 +1775,7 @@ PHP_METHOD(Test_Flow, testFor24) { } -PHP_METHOD(Test_Flow, testFor30) { +PHP_METHOD(Stub_Flow, testFor30) { long _0; zend_long v = 0; @@ -1798,13 +1798,13 @@ PHP_METHOD(Test_Flow, testFor30) { v = ZEPHIR_STRING_OFFSET(&b, _0); ZEPHIR_INIT_NVAR(&_1$$3); ZVAL_LONG(&_1$$3, v); - zephir_array_append(&a, &_1$$3, PH_SEPARATE, "test/flow.zep", 682); + zephir_array_append(&a, &_1$$3, PH_SEPARATE, "stub/flow.zep", 682); } RETURN_CCTOR(&a); } -PHP_METHOD(Test_Flow, testFor31) { +PHP_METHOD(Stub_Flow, testFor31) { long _0; zend_long k = 0, v = 0; @@ -1834,7 +1834,7 @@ PHP_METHOD(Test_Flow, testFor31) { } -PHP_METHOD(Test_Flow, testFor32) { +PHP_METHOD(Stub_Flow, testFor32) { long sum; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1852,7 +1852,7 @@ PHP_METHOD(Test_Flow, testFor32) { sum = 0; - zephir_is_iterable(e, 0, "test/flow.zep", 703); + zephir_is_iterable(e, 0, "stub/flow.zep", 703); if (Z_TYPE_P(e) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(e), _0) { @@ -1881,7 +1881,7 @@ PHP_METHOD(Test_Flow, testFor32) { } -PHP_METHOD(Test_Flow, testFor33) { +PHP_METHOD(Stub_Flow, testFor33) { zend_object_iterator *_0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1905,14 +1905,14 @@ PHP_METHOD(Test_Flow, testFor33) { { ZEPHIR_ITERATOR_COPY(&v, _0); } - zephir_array_append(&result, &v, PH_SEPARATE, "test/flow.zep", 710); + zephir_array_append(&result, &v, PH_SEPARATE, "stub/flow.zep", 710); } zend_iterator_dtor(_0); RETURN_CCTOR(&result); } -PHP_METHOD(Test_Flow, testFor34) { +PHP_METHOD(Stub_Flow, testFor34) { zend_object_iterator *_0$$3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1942,7 +1942,7 @@ PHP_METHOD(Test_Flow, testFor34) { { ZEPHIR_ITERATOR_COPY(&v, _0$$3); } - zephir_array_append(&result, &v, PH_SEPARATE, "test/flow.zep", 720); + zephir_array_append(&result, &v, PH_SEPARATE, "stub/flow.zep", 720); } zend_iterator_dtor(_0$$3); RETURN_CCTOR(&result); @@ -1951,7 +1951,7 @@ PHP_METHOD(Test_Flow, testFor34) { } -PHP_METHOD(Test_Flow, testFor35Aux) { +PHP_METHOD(Stub_Flow, testFor35Aux) { zval *hello, hello_sub; zval *this_ptr = getThis(); @@ -1966,7 +1966,7 @@ PHP_METHOD(Test_Flow, testFor35Aux) { } -PHP_METHOD(Test_Flow, testFor35) { +PHP_METHOD(Stub_Flow, testFor35) { zend_bool _0; zval i, _3$$3; @@ -2005,7 +2005,7 @@ PHP_METHOD(Test_Flow, testFor35) { } -PHP_METHOD(Test_Flow, testFor36Aux) { +PHP_METHOD(Stub_Flow, testFor36Aux) { zval *hello, hello_sub; zval *this_ptr = getThis(); @@ -2022,7 +2022,7 @@ PHP_METHOD(Test_Flow, testFor36Aux) { } -PHP_METHOD(Test_Flow, testFor36) { +PHP_METHOD(Stub_Flow, testFor36) { zend_bool _0; zval i, _3$$3; @@ -2061,7 +2061,7 @@ PHP_METHOD(Test_Flow, testFor36) { } -PHP_METHOD(Test_Flow, testFor37) { +PHP_METHOD(Stub_Flow, testFor37) { zend_bool _0; zend_long i, _1, _2; @@ -2091,7 +2091,7 @@ PHP_METHOD(Test_Flow, testFor37) { } -PHP_METHOD(Test_Flow, testFor38) { +PHP_METHOD(Stub_Flow, testFor38) { zend_bool _1; long _0; @@ -2130,7 +2130,7 @@ PHP_METHOD(Test_Flow, testFor38) { } -PHP_METHOD(Test_Flow, testFor39) { +PHP_METHOD(Stub_Flow, testFor39) { zval _2; long _1; @@ -2154,7 +2154,7 @@ PHP_METHOD(Test_Flow, testFor39) { } -PHP_METHOD(Test_Flow, testFor40) { +PHP_METHOD(Stub_Flow, testFor40) { zend_long _1, _2; zend_bool _0; @@ -2194,7 +2194,7 @@ PHP_METHOD(Test_Flow, testFor40) { } -PHP_METHOD(Test_Flow, testUnrechable1) { +PHP_METHOD(Stub_Flow, testUnrechable1) { char e; zval d; @@ -2233,7 +2233,7 @@ PHP_METHOD(Test_Flow, testUnrechable1) { } -PHP_METHOD(Test_Flow, testUnrechable2) { +PHP_METHOD(Stub_Flow, testUnrechable2) { char e; zval d; @@ -2282,7 +2282,7 @@ PHP_METHOD(Test_Flow, testUnrechable2) { } -PHP_METHOD(Test_Flow, testUnrechable3) { +PHP_METHOD(Stub_Flow, testUnrechable3) { zend_long a = 0; zval *this_ptr = getThis(); diff --git a/ext/stub/flow.zep.h b/ext/stub/flow.zep.h new file mode 100644 index 0000000000..f32b19de5b --- /dev/null +++ b/ext/stub/flow.zep.h @@ -0,0 +1,219 @@ + +extern zend_class_entry *stub_flow_ce; + +ZEPHIR_INIT_CLASS(Stub_Flow); + +PHP_METHOD(Stub_Flow, testIf1); +PHP_METHOD(Stub_Flow, testIf2); +PHP_METHOD(Stub_Flow, testIf3); +PHP_METHOD(Stub_Flow, testIf4); +PHP_METHOD(Stub_Flow, testIf5); +PHP_METHOD(Stub_Flow, testIf6); +PHP_METHOD(Stub_Flow, testIf7); +PHP_METHOD(Stub_Flow, testIf8); +PHP_METHOD(Stub_Flow, testIf9); +PHP_METHOD(Stub_Flow, testIf10); +PHP_METHOD(Stub_Flow, testIf12); +PHP_METHOD(Stub_Flow, testIf13); +PHP_METHOD(Stub_Flow, testIf14); +PHP_METHOD(Stub_Flow, testIf15); +PHP_METHOD(Stub_Flow, testIf16); +PHP_METHOD(Stub_Flow, testIf17); +PHP_METHOD(Stub_Flow, testLoop1); +PHP_METHOD(Stub_Flow, testLoop2); +PHP_METHOD(Stub_Flow, testLoop3); +PHP_METHOD(Stub_Flow, testLoop4); +PHP_METHOD(Stub_Flow, testWhile1); +PHP_METHOD(Stub_Flow, testWhile2); +PHP_METHOD(Stub_Flow, testWhile3); +PHP_METHOD(Stub_Flow, testWhile4); +PHP_METHOD(Stub_Flow, testWhile5); +PHP_METHOD(Stub_Flow, testWhile6); +PHP_METHOD(Stub_Flow, testWhile7); +PHP_METHOD(Stub_Flow, testWhile8); +PHP_METHOD(Stub_Flow, testWhile9); +PHP_METHOD(Stub_Flow, testWhile10); +PHP_METHOD(Stub_Flow, testWhile11); +PHP_METHOD(Stub_Flow, testWhile12); +PHP_METHOD(Stub_Flow, testWhile13); +PHP_METHOD(Stub_Flow, testDoWhile1); +PHP_METHOD(Stub_Flow, testWhileNextTest); +PHP_METHOD(Stub_Flow, testWhileDoNextTest); +PHP_METHOD(Stub_Flow, testFor1); +PHP_METHOD(Stub_Flow, testFor2); +PHP_METHOD(Stub_Flow, testFor3); +PHP_METHOD(Stub_Flow, testFor4); +PHP_METHOD(Stub_Flow, testFor5); +PHP_METHOD(Stub_Flow, testFor6); +PHP_METHOD(Stub_Flow, testFor7); +PHP_METHOD(Stub_Flow, testFor8); +PHP_METHOD(Stub_Flow, testFor9); +PHP_METHOD(Stub_Flow, testFor10); +PHP_METHOD(Stub_Flow, testFor11); +PHP_METHOD(Stub_Flow, testFor12); +PHP_METHOD(Stub_Flow, testFor13); +PHP_METHOD(Stub_Flow, testFor14); +PHP_METHOD(Stub_Flow, testFor15); +PHP_METHOD(Stub_Flow, testFor16); +PHP_METHOD(Stub_Flow, testFor17); +PHP_METHOD(Stub_Flow, testFor18); +PHP_METHOD(Stub_Flow, testFor19); +PHP_METHOD(Stub_Flow, testFor20); +PHP_METHOD(Stub_Flow, testFor21); +PHP_METHOD(Stub_Flow, testFor22); +PHP_METHOD(Stub_Flow, testFor23); +PHP_METHOD(Stub_Flow, testFor24); +PHP_METHOD(Stub_Flow, testFor30); +PHP_METHOD(Stub_Flow, testFor31); +PHP_METHOD(Stub_Flow, testFor32); +PHP_METHOD(Stub_Flow, testFor33); +PHP_METHOD(Stub_Flow, testFor34); +PHP_METHOD(Stub_Flow, testFor35Aux); +PHP_METHOD(Stub_Flow, testFor35); +PHP_METHOD(Stub_Flow, testFor36Aux); +PHP_METHOD(Stub_Flow, testFor36); +PHP_METHOD(Stub_Flow, testFor37); +PHP_METHOD(Stub_Flow, testFor38); +PHP_METHOD(Stub_Flow, testFor39); +PHP_METHOD(Stub_Flow, testFor40); +PHP_METHOD(Stub_Flow, testUnrechable1); +PHP_METHOD(Stub_Flow, testUnrechable2); +PHP_METHOD(Stub_Flow, testUnrechable3); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_testif16, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_testif17, 0, 0, 1) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_testwhile10, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_testwhile11, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, d) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_testwhilenexttest, 0, 0, 1) + ZEND_ARG_INFO(0, variable) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_testwhiledonexttest, 0, 0, 1) + ZEND_ARG_INFO(0, variable) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_testfor15, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, c, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, c) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, d, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, d) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_testfor32, 0, 0, 1) + ZEND_ARG_INFO(0, e) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_testfor33, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, e, Iterator, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_testfor34, 0, 0, 0) + ZEND_ARG_OBJ_INFO(0, e, Iterator, 1) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_testfor35aux, 0, 0, 1) + ZEND_ARG_INFO(0, hello) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_testfor36aux, 0, 0, 1) + ZEND_ARG_INFO(0, hello) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_flow_method_entry) { + PHP_ME(Stub_Flow, testIf1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf6, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf7, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf8, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf9, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf10, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf12, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf13, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf14, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf15, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf16, arginfo_stub_flow_testif16, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testIf17, arginfo_stub_flow_testif17, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testLoop1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testLoop2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testLoop3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testLoop4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhile1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhile2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhile3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhile4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhile5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhile6, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhile7, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhile8, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhile9, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhile10, arginfo_stub_flow_testwhile10, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhile11, arginfo_stub_flow_testwhile11, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhile12, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhile13, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testDoWhile1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhileNextTest, arginfo_stub_flow_testwhilenexttest, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testWhileDoNextTest, arginfo_stub_flow_testwhiledonexttest, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor6, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor7, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor8, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor9, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor10, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor11, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor12, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor13, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor14, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor15, arginfo_stub_flow_testfor15, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor16, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor17, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor18, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor19, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor20, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor21, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor22, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor23, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor24, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor30, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor31, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor32, arginfo_stub_flow_testfor32, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor33, arginfo_stub_flow_testfor33, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor34, arginfo_stub_flow_testfor34, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor35Aux, arginfo_stub_flow_testfor35aux, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor35, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor36Aux, arginfo_stub_flow_testfor36aux, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor36, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor37, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor38, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor39, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testFor40, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testUnrechable1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testUnrechable2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow, testUnrechable3, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/flow/switchflow.zep.c b/ext/stub/flow/switchflow.zep.c similarity index 81% rename from ext/test/flow/switchflow.zep.c rename to ext/stub/flow/switchflow.zep.c index 4640c05ffc..a8556f239a 100644 --- a/ext/test/flow/switchflow.zep.c +++ b/ext/stub/flow/switchflow.zep.c @@ -18,15 +18,15 @@ #include "kernel/math.h" -ZEPHIR_INIT_CLASS(Test_Flow_SwitchFlow) { +ZEPHIR_INIT_CLASS(Stub_Flow_SwitchFlow) { - ZEPHIR_REGISTER_CLASS(Test\\Flow, SwitchFlow, test, flow_switchflow, test_flow_switchflow_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Flow, SwitchFlow, stub, flow_switchflow, stub_flow_switchflow_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch1) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch1) { zend_long a = 0; zval *this_ptr = getThis(); @@ -38,7 +38,7 @@ PHP_METHOD(Test_Flow_SwitchFlow, testSwitch1) { } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch2) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch2) { zend_long a = 0; zval *this_ptr = getThis(); @@ -56,7 +56,7 @@ PHP_METHOD(Test_Flow_SwitchFlow, testSwitch2) { } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch3) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch3) { zend_long a = 0; zval *this_ptr = getThis(); @@ -74,7 +74,7 @@ PHP_METHOD(Test_Flow_SwitchFlow, testSwitch3) { } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch4) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch4) { zend_long a = 0; zval *this_ptr = getThis(); @@ -93,7 +93,7 @@ PHP_METHOD(Test_Flow_SwitchFlow, testSwitch4) { } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch5) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch5) { zend_long a = 0; zval *this_ptr = getThis(); @@ -112,7 +112,7 @@ PHP_METHOD(Test_Flow_SwitchFlow, testSwitch5) { } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch6) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch6) { zend_long a = 0; zval *this_ptr = getThis(); @@ -130,7 +130,7 @@ PHP_METHOD(Test_Flow_SwitchFlow, testSwitch6) { } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch7) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch7) { zend_long a = 0; zval *this_ptr = getThis(); @@ -148,7 +148,7 @@ PHP_METHOD(Test_Flow_SwitchFlow, testSwitch7) { } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch8) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch8) { zend_long a = 0; zval *this_ptr = getThis(); @@ -166,7 +166,7 @@ PHP_METHOD(Test_Flow_SwitchFlow, testSwitch8) { } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch9) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch9) { zend_long a = 0; zval *this_ptr = getThis(); @@ -187,7 +187,7 @@ PHP_METHOD(Test_Flow_SwitchFlow, testSwitch9) { } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch10) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch10) { zend_long a = 0; zval *this_ptr = getThis(); @@ -208,7 +208,7 @@ PHP_METHOD(Test_Flow_SwitchFlow, testSwitch10) { } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch11) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch11) { zend_long a = 0; zval *this_ptr = getThis(); @@ -226,7 +226,7 @@ PHP_METHOD(Test_Flow_SwitchFlow, testSwitch11) { } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch12) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch12) { zend_bool _0, _1, _2; zval *var1, var1_sub, *var2, var2_sub; @@ -261,7 +261,7 @@ PHP_METHOD(Test_Flow_SwitchFlow, testSwitch12) { } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch13) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch13) { zval *a_param = NULL, _0, _1; long a, _2; @@ -288,7 +288,7 @@ PHP_METHOD(Test_Flow_SwitchFlow, testSwitch13) { } -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch14) { +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch14) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *result_type = NULL, result_type_sub, ret, _0; diff --git a/ext/stub/flow/switchflow.zep.h b/ext/stub/flow/switchflow.zep.h new file mode 100644 index 0000000000..a604269fd0 --- /dev/null +++ b/ext/stub/flow/switchflow.zep.h @@ -0,0 +1,124 @@ + +extern zend_class_entry *stub_flow_switchflow_ce; + +ZEPHIR_INIT_CLASS(Stub_Flow_SwitchFlow); + +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch1); +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch2); +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch3); +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch4); +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch5); +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch6); +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch7); +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch8); +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch9); +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch10); +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch11); +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch12); +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch13); +PHP_METHOD(Stub_Flow_SwitchFlow, testSwitch14); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch1, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch1, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch2, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch2, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch3, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch3, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch4, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch4, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch5, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch5, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch6, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch6, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch7, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch7, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch8, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch8, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch9, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch9, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch10, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_flow_switchflow_testswitch10, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_switchflow_testswitch12, 0, 0, 2) + ZEND_ARG_INFO(0, var1) + ZEND_ARG_INFO(0, var2) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_switchflow_testswitch13, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_flow_switchflow_testswitch14, 0, 0, 0) + ZEND_ARG_INFO(0, result_type) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_flow_switchflow_method_entry) { + PHP_ME(Stub_Flow_SwitchFlow, testSwitch1, arginfo_stub_flow_switchflow_testswitch1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow_SwitchFlow, testSwitch2, arginfo_stub_flow_switchflow_testswitch2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow_SwitchFlow, testSwitch3, arginfo_stub_flow_switchflow_testswitch3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow_SwitchFlow, testSwitch4, arginfo_stub_flow_switchflow_testswitch4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow_SwitchFlow, testSwitch5, arginfo_stub_flow_switchflow_testswitch5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow_SwitchFlow, testSwitch6, arginfo_stub_flow_switchflow_testswitch6, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow_SwitchFlow, testSwitch7, arginfo_stub_flow_switchflow_testswitch7, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow_SwitchFlow, testSwitch8, arginfo_stub_flow_switchflow_testswitch8, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow_SwitchFlow, testSwitch9, arginfo_stub_flow_switchflow_testswitch9, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow_SwitchFlow, testSwitch10, arginfo_stub_flow_switchflow_testswitch10, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow_SwitchFlow, testSwitch11, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow_SwitchFlow, testSwitch12, arginfo_stub_flow_switchflow_testswitch12, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow_SwitchFlow, testSwitch13, arginfo_stub_flow_switchflow_testswitch13, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Flow_SwitchFlow, testSwitch14, arginfo_stub_flow_switchflow_testswitch14, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/fortytwo.zep.c b/ext/stub/fortytwo.zep.c similarity index 94% rename from ext/test/fortytwo.zep.c rename to ext/stub/fortytwo.zep.c index 169fa77d3b..236216eaca 100644 --- a/ext/test/fortytwo.zep.c +++ b/ext/stub/fortytwo.zep.c @@ -23,15 +23,15 @@ /** * FortyTwo */ -ZEPHIR_INIT_CLASS(Test_FortyTwo) { +ZEPHIR_INIT_CLASS(Stub_FortyTwo) { - ZEPHIR_REGISTER_CLASS(Test, FortyTwo, test, fortytwo, test_fortytwo_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, FortyTwo, stub, fortytwo, stub_fortytwo_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_FortyTwo, proof) { +PHP_METHOD(Stub_FortyTwo, proof) { zend_bool _4$$3, _8$$6; zval _0; @@ -232,7 +232,7 @@ PHP_METHOD(Test_FortyTwo, proof) { ZVAL_LONG(&_1, 4); zephir_array_fast_append(&_0, &_1); zephir_array_fast_append(&box, &_0); - zephir_is_iterable(&box, 0, "test/fortytwo.zep", 32); + zephir_is_iterable(&box, 0, "stub/fortytwo.zep", 32); if (Z_TYPE_P(&box) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&box), _2) { @@ -253,12 +253,12 @@ PHP_METHOD(Test_FortyTwo, proof) { _4$$3 = 1; } i = _5$$3; - zephir_array_fetch_long(&_7$$4, &side, i, PH_NOISY | PH_READONLY, "test/fortytwo.zep", 26); + zephir_array_fetch_long(&_7$$4, &side, i, PH_NOISY | PH_READONLY, "stub/fortytwo.zep", 26); j += zephir_get_numberval(&_7$$4); } } if (j != 42) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_exception_ce, "not true", "test/fortytwo.zep", 29); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_exception_ce, "not true", "stub/fortytwo.zep", 29); return; } } ZEND_HASH_FOREACH_END(); @@ -288,12 +288,12 @@ PHP_METHOD(Test_FortyTwo, proof) { _8$$6 = 1; } i = _9$$6; - zephir_array_fetch_long(&_11$$7, &side, i, PH_NOISY | PH_READONLY, "test/fortytwo.zep", 26); + zephir_array_fetch_long(&_11$$7, &side, i, PH_NOISY | PH_READONLY, "stub/fortytwo.zep", 26); j += zephir_get_numberval(&_11$$7); } } if (j != 42) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_exception_ce, "not true", "test/fortytwo.zep", 29); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_exception_ce, "not true", "stub/fortytwo.zep", 29); return; } ZEPHIR_CALL_METHOD(NULL, &box, "next", NULL, 0); diff --git a/ext/stub/fortytwo.zep.h b/ext/stub/fortytwo.zep.h new file mode 100644 index 0000000000..ce3bb51f8f --- /dev/null +++ b/ext/stub/fortytwo.zep.h @@ -0,0 +1,22 @@ + +extern zend_class_entry *stub_fortytwo_ce; + +ZEPHIR_INIT_CLASS(Stub_FortyTwo); + +PHP_METHOD(Stub_FortyTwo, proof); + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fortytwo_proof, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_fortytwo_proof, 0, 0, IS_VOID, NULL, 0) +#endif +ZEND_END_ARG_INFO() +#else +#define arginfo_stub_fortytwo_proof NULL +#endif + +ZEPHIR_INIT_FUNCS(stub_fortytwo_method_entry) { + PHP_ME(Stub_FortyTwo, proof, arginfo_stub_fortytwo_proof, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/functional.zep.c b/ext/stub/functional.zep.c similarity index 84% rename from ext/test/functional.zep.c rename to ext/stub/functional.zep.c index 0fb0dc2ee4..38cc8ee92d 100644 --- a/ext/test/functional.zep.c +++ b/ext/stub/functional.zep.c @@ -18,15 +18,15 @@ #include "kernel/operators.h" -ZEPHIR_INIT_CLASS(Test_Functional) { +ZEPHIR_INIT_CLASS(Stub_Functional) { - ZEPHIR_REGISTER_CLASS(Test, Functional, test, functional, test_functional_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Functional, stub, functional, stub_functional_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Functional, map1) { +PHP_METHOD(Stub_Functional, map1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -46,14 +46,14 @@ PHP_METHOD(Test_Functional, map1) { ZEPHIR_INIT_VAR(&_0); ZEPHIR_INIT_NVAR(&_0); - zephir_create_closure_ex(&_0, NULL, test_10__closure_ce, SL("__invoke")); + zephir_create_closure_ex(&_0, NULL, stub_10__closure_ce, SL("__invoke")); ZEPHIR_CALL_FUNCTION(&_1, "array_map", NULL, 7, &_0, &a); zephir_check_call_status(); RETURN_CCTOR(&_1); } -PHP_METHOD(Test_Functional, map2) { +PHP_METHOD(Stub_Functional, map2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; diff --git a/ext/stub/functional.zep.h b/ext/stub/functional.zep.h new file mode 100644 index 0000000000..451a8855f2 --- /dev/null +++ b/ext/stub/functional.zep.h @@ -0,0 +1,22 @@ + +extern zend_class_entry *stub_functional_ce; + +ZEPHIR_INIT_CLASS(Stub_Functional); + +PHP_METHOD(Stub_Functional, map1); +PHP_METHOD(Stub_Functional, map2); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_functional_map1, 0, 0, 1) + ZEND_ARG_ARRAY_INFO(0, a, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_functional_map2, 0, 0, 2) + ZEND_ARG_ARRAY_INFO(0, a, 0) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_functional_method_entry) { + PHP_ME(Stub_Functional, map1, arginfo_stub_functional_map1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Functional, map2, arginfo_stub_functional_map2, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/functionexists.zep.c b/ext/stub/functionexists.zep.c similarity index 89% rename from ext/test/functionexists.zep.c rename to ext/stub/functionexists.zep.c index 62a4184fc4..9a09bea43a 100644 --- a/ext/test/functionexists.zep.c +++ b/ext/stub/functionexists.zep.c @@ -19,15 +19,15 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_FunctionExists) { +ZEPHIR_INIT_CLASS(Stub_FunctionExists) { - ZEPHIR_REGISTER_CLASS(Test, FunctionExists, test, functionexists, test_functionexists_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, FunctionExists, stub, functionexists, stub_functionexists_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_FunctionExists, testWithPassedName) { +PHP_METHOD(Stub_FunctionExists, testWithPassedName) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *func_param = NULL; @@ -46,7 +46,7 @@ PHP_METHOD(Test_FunctionExists, testWithPassedName) { } -PHP_METHOD(Test_FunctionExists, testBuiltInFunctions) { +PHP_METHOD(Stub_FunctionExists, testBuiltInFunctions) { zval result, functions; zval func, _0, *_1, _2, _3$$3, _4$$4; @@ -92,7 +92,7 @@ PHP_METHOD(Test_FunctionExists, testBuiltInFunctions) { ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "prim"); zephir_array_fast_append(&functions, &_0); - zephir_is_iterable(&functions, 0, "test/functionexists.zep", 31); + zephir_is_iterable(&functions, 0, "stub/functionexists.zep", 31); if (Z_TYPE_P(&functions) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&functions), _1) { @@ -125,7 +125,7 @@ PHP_METHOD(Test_FunctionExists, testBuiltInFunctions) { } -PHP_METHOD(Test_FunctionExists, testWithString) { +PHP_METHOD(Stub_FunctionExists, testWithString) { zval *this_ptr = getThis(); diff --git a/ext/stub/functionexists.zep.h b/ext/stub/functionexists.zep.h new file mode 100644 index 0000000000..526842cb57 --- /dev/null +++ b/ext/stub/functionexists.zep.h @@ -0,0 +1,41 @@ + +extern zend_class_entry *stub_functionexists_ce; + +ZEPHIR_INIT_CLASS(Stub_FunctionExists); + +PHP_METHOD(Stub_FunctionExists, testWithPassedName); +PHP_METHOD(Stub_FunctionExists, testBuiltInFunctions); +PHP_METHOD(Stub_FunctionExists, testWithString); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_functionexists_testwithpassedname, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_functionexists_testwithpassedname, 0, 1, _IS_BOOL, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, func, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, func) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_functionexists_testbuiltinfunctions, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_functionexists_testbuiltinfunctions, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_functionexists_testwithstring, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_functionexists_testwithstring, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_functionexists_method_entry) { + PHP_ME(Stub_FunctionExists, testWithPassedName, arginfo_stub_functionexists_testwithpassedname, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FunctionExists, testBuiltInFunctions, arginfo_stub_functionexists_testbuiltinfunctions, ZEND_ACC_PUBLIC) + PHP_ME(Stub_FunctionExists, testWithString, arginfo_stub_functionexists_testwithstring, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/geometry.zep.c b/ext/stub/geometry.zep.c similarity index 84% rename from ext/test/geometry.zep.c rename to ext/stub/geometry.zep.c index 79d58c83fc..198fb74c42 100644 --- a/ext/test/geometry.zep.c +++ b/ext/stub/geometry.zep.c @@ -20,15 +20,15 @@ #include "math.h" -ZEPHIR_INIT_CLASS(Test_Geometry) { +ZEPHIR_INIT_CLASS(Stub_Geometry) { - ZEPHIR_REGISTER_CLASS(Test, Geometry, test, geometry, test_geometry_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Geometry, stub, geometry, stub_geometry_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Geometry, run) { +PHP_METHOD(Stub_Geometry, run) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_0 = NULL; @@ -59,14 +59,14 @@ PHP_METHOD(Test_Geometry, run) { if (!(i < count)) { break; } - zephir_array_fetch_long(&_1$$3, &list, i, PH_NOISY | PH_READONLY, "test/geometry.zep", 11); - zephir_array_fetch_long(&_2$$3, &_1$$3, 0, PH_NOISY | PH_READONLY, "test/geometry.zep", 11); - zephir_array_fetch_long(&_3$$3, &list, i, PH_NOISY | PH_READONLY, "test/geometry.zep", 11); - zephir_array_fetch_long(&_4$$3, &_3$$3, 1, PH_NOISY | PH_READONLY, "test/geometry.zep", 11); - zephir_array_fetch_long(&_5$$3, &list, i, PH_NOISY | PH_READONLY, "test/geometry.zep", 11); - zephir_array_fetch_long(&_6$$3, &_5$$3, 2, PH_NOISY | PH_READONLY, "test/geometry.zep", 11); - zephir_array_fetch_long(&_7$$3, &list, i, PH_NOISY | PH_READONLY, "test/geometry.zep", 11); - zephir_array_fetch_long(&_8$$3, &_7$$3, 3, PH_NOISY | PH_READONLY, "test/geometry.zep", 11); + zephir_array_fetch_long(&_1$$3, &list, i, PH_NOISY | PH_READONLY, "stub/geometry.zep", 11); + zephir_array_fetch_long(&_2$$3, &_1$$3, 0, PH_NOISY | PH_READONLY, "stub/geometry.zep", 11); + zephir_array_fetch_long(&_3$$3, &list, i, PH_NOISY | PH_READONLY, "stub/geometry.zep", 11); + zephir_array_fetch_long(&_4$$3, &_3$$3, 1, PH_NOISY | PH_READONLY, "stub/geometry.zep", 11); + zephir_array_fetch_long(&_5$$3, &list, i, PH_NOISY | PH_READONLY, "stub/geometry.zep", 11); + zephir_array_fetch_long(&_6$$3, &_5$$3, 2, PH_NOISY | PH_READONLY, "stub/geometry.zep", 11); + zephir_array_fetch_long(&_7$$3, &list, i, PH_NOISY | PH_READONLY, "stub/geometry.zep", 11); + zephir_array_fetch_long(&_8$$3, &_7$$3, 3, PH_NOISY | PH_READONLY, "stub/geometry.zep", 11); ZEPHIR_CALL_STATIC(NULL, "distancestatic", &_0, 0, &_2$$3, &_4$$3, &_6$$3, &_8$$3); zephir_check_call_status(); i = (i + 1); @@ -75,7 +75,7 @@ PHP_METHOD(Test_Geometry, run) { } -PHP_METHOD(Test_Geometry, runOptimize) { +PHP_METHOD(Stub_Geometry, runOptimize) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_0 = NULL; @@ -104,11 +104,11 @@ PHP_METHOD(Test_Geometry, runOptimize) { break; } ZEPHIR_OBS_NVAR(&item); - zephir_array_fetch_long(&item, &list, i, PH_NOISY, "test/geometry.zep", 22); - zephir_array_fetch_long(&_1$$3, &item, 0, PH_NOISY | PH_READONLY, "test/geometry.zep", 24); - zephir_array_fetch_long(&_2$$3, &item, 1, PH_NOISY | PH_READONLY, "test/geometry.zep", 24); - zephir_array_fetch_long(&_3$$3, &item, 2, PH_NOISY | PH_READONLY, "test/geometry.zep", 24); - zephir_array_fetch_long(&_4$$3, &item, 3, PH_NOISY | PH_READONLY, "test/geometry.zep", 24); + zephir_array_fetch_long(&item, &list, i, PH_NOISY, "stub/geometry.zep", 22); + zephir_array_fetch_long(&_1$$3, &item, 0, PH_NOISY | PH_READONLY, "stub/geometry.zep", 24); + zephir_array_fetch_long(&_2$$3, &item, 1, PH_NOISY | PH_READONLY, "stub/geometry.zep", 24); + zephir_array_fetch_long(&_3$$3, &item, 2, PH_NOISY | PH_READONLY, "stub/geometry.zep", 24); + zephir_array_fetch_long(&_4$$3, &item, 3, PH_NOISY | PH_READONLY, "stub/geometry.zep", 24); ZEPHIR_CALL_STATIC(NULL, "distancestatic", &_0, 0, &_1$$3, &_2$$3, &_3$$3, &_4$$3); zephir_check_call_status(); i++; @@ -117,7 +117,7 @@ PHP_METHOD(Test_Geometry, runOptimize) { } -PHP_METHOD(Test_Geometry, distanceStatic) { +PHP_METHOD(Stub_Geometry, distanceStatic) { zval *x1_param = NULL, *y1_param = NULL, *x2_param = NULL, *y2_param = NULL, _0; double x1, y1, x2, y2; diff --git a/ext/test/geometry.zep.h b/ext/stub/geometry.zep.h similarity index 55% rename from ext/test/geometry.zep.h rename to ext/stub/geometry.zep.h index 9736104499..19acd1f1c5 100644 --- a/ext/test/geometry.zep.h +++ b/ext/stub/geometry.zep.h @@ -1,21 +1,21 @@ -extern zend_class_entry *test_geometry_ce; +extern zend_class_entry *stub_geometry_ce; -ZEPHIR_INIT_CLASS(Test_Geometry); +ZEPHIR_INIT_CLASS(Stub_Geometry); -PHP_METHOD(Test_Geometry, run); -PHP_METHOD(Test_Geometry, runOptimize); -PHP_METHOD(Test_Geometry, distanceStatic); +PHP_METHOD(Stub_Geometry, run); +PHP_METHOD(Stub_Geometry, runOptimize); +PHP_METHOD(Stub_Geometry, distanceStatic); #if PHP_VERSION_ID >= 70100 #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_geometry_run, 0, 2, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_geometry_run, 0, 2, IS_VOID, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_geometry_run, 0, 2, IS_VOID, NULL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_geometry_run, 0, 2, IS_VOID, NULL, 0) #endif #else -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_geometry_run, 0, 0, 2) -#define arginfo_test_geometry_run NULL +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_geometry_run, 0, 0, 2) +#define arginfo_stub_geometry_run NULL #endif ZEND_ARG_ARRAY_INFO(0, list, 0) @@ -28,13 +28,13 @@ ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70100 #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_geometry_runoptimize, 0, 2, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_geometry_runoptimize, 0, 2, IS_VOID, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_geometry_runoptimize, 0, 2, IS_VOID, NULL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_geometry_runoptimize, 0, 2, IS_VOID, NULL, 0) #endif #else -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_geometry_runoptimize, 0, 0, 2) -#define arginfo_test_geometry_runoptimize NULL +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_geometry_runoptimize, 0, 0, 2) +#define arginfo_stub_geometry_runoptimize NULL #endif ZEND_ARG_ARRAY_INFO(0, list, 0) @@ -46,9 +46,9 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_geometry_runoptimize, 0, 0, 2) ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_geometry_distancestatic, 0, 4, IS_DOUBLE, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_geometry_distancestatic, 0, 4, IS_DOUBLE, 0) #else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_geometry_distancestatic, 0, 4, IS_DOUBLE, NULL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_geometry_distancestatic, 0, 4, IS_DOUBLE, NULL, 0) #endif #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, x1, IS_DOUBLE, 0) @@ -72,9 +72,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_geometry_distancestatic, 0, #endif ZEND_END_ARG_INFO() -ZEPHIR_INIT_FUNCS(test_geometry_method_entry) { - PHP_ME(Test_Geometry, run, arginfo_test_geometry_run, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Geometry, runOptimize, arginfo_test_geometry_runoptimize, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Geometry, distanceStatic, arginfo_test_geometry_distancestatic, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) +ZEPHIR_INIT_FUNCS(stub_geometry_method_entry) { + PHP_ME(Stub_Geometry, run, arginfo_stub_geometry_run, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Geometry, runOptimize, arginfo_stub_geometry_runoptimize, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Geometry, distanceStatic, arginfo_stub_geometry_distancestatic, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) PHP_FE_END }; diff --git a/ext/test/globals.zep.c b/ext/stub/globals.zep.c similarity index 75% rename from ext/test/globals.zep.c rename to ext/stub/globals.zep.c index c6e9510c26..b31238e9e3 100644 --- a/ext/test/globals.zep.c +++ b/ext/stub/globals.zep.c @@ -16,15 +16,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Globals) { +ZEPHIR_INIT_CLASS(Stub_Globals) { - ZEPHIR_REGISTER_CLASS(Test, Globals, test, globals, test_globals_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Globals, stub, globals, stub_globals_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Globals, setBoolValueUsingDotNotation) { +PHP_METHOD(Stub_Globals, setBoolValueUsingDotNotation) { zval *value, value_sub; zval *this_ptr = getThis(); @@ -39,7 +39,7 @@ PHP_METHOD(Test_Globals, setBoolValueUsingDotNotation) { } -PHP_METHOD(Test_Globals, setIntValueUsingDotNotation) { +PHP_METHOD(Stub_Globals, setIntValueUsingDotNotation) { zval *value, value_sub; zval *this_ptr = getThis(); @@ -54,7 +54,7 @@ PHP_METHOD(Test_Globals, setIntValueUsingDotNotation) { } -PHP_METHOD(Test_Globals, setCharValue) { +PHP_METHOD(Stub_Globals, setCharValue) { zval *value, value_sub; zval *this_ptr = getThis(); @@ -69,7 +69,7 @@ PHP_METHOD(Test_Globals, setCharValue) { } -PHP_METHOD(Test_Globals, setBoolValue) { +PHP_METHOD(Stub_Globals, setBoolValue) { zval *value, value_sub; zval *this_ptr = getThis(); @@ -84,7 +84,7 @@ PHP_METHOD(Test_Globals, setBoolValue) { } -PHP_METHOD(Test_Globals, setDefaultGlobalsOrmCacheLevel) { +PHP_METHOD(Stub_Globals, setDefaultGlobalsOrmCacheLevel) { zval *value, value_sub; zval *this_ptr = getThis(); @@ -102,7 +102,7 @@ PHP_METHOD(Test_Globals, setDefaultGlobalsOrmCacheLevel) { /** * @return mixed */ -PHP_METHOD(Test_Globals, getDefaultGlobals1) { +PHP_METHOD(Stub_Globals, getDefaultGlobals1) { zval *this_ptr = getThis(); @@ -114,7 +114,7 @@ PHP_METHOD(Test_Globals, getDefaultGlobals1) { /** * @return mixed */ -PHP_METHOD(Test_Globals, getDefaultGlobals2) { +PHP_METHOD(Stub_Globals, getDefaultGlobals2) { zval *this_ptr = getThis(); @@ -126,7 +126,7 @@ PHP_METHOD(Test_Globals, getDefaultGlobals2) { /** * @return mixed */ -PHP_METHOD(Test_Globals, getDefaultGlobals3) { +PHP_METHOD(Stub_Globals, getDefaultGlobals3) { zval *this_ptr = getThis(); @@ -138,7 +138,7 @@ PHP_METHOD(Test_Globals, getDefaultGlobals3) { /** * @return mixed */ -PHP_METHOD(Test_Globals, getDefaultGlobals4) { +PHP_METHOD(Stub_Globals, getDefaultGlobals4) { zval *this_ptr = getThis(); @@ -150,7 +150,7 @@ PHP_METHOD(Test_Globals, getDefaultGlobals4) { /** * @return mixed */ -PHP_METHOD(Test_Globals, getDefaultGlobals5) { +PHP_METHOD(Stub_Globals, getDefaultGlobals5) { zval *this_ptr = getThis(); @@ -162,7 +162,7 @@ PHP_METHOD(Test_Globals, getDefaultGlobals5) { /** * @return mixed */ -PHP_METHOD(Test_Globals, getDefaultGlobals6) { +PHP_METHOD(Stub_Globals, getDefaultGlobals6) { zval *this_ptr = getThis(); @@ -174,7 +174,7 @@ PHP_METHOD(Test_Globals, getDefaultGlobals6) { /** * @return mixed */ -PHP_METHOD(Test_Globals, getDefaultGlobals7) { +PHP_METHOD(Stub_Globals, getDefaultGlobals7) { zval *this_ptr = getThis(); @@ -186,7 +186,7 @@ PHP_METHOD(Test_Globals, getDefaultGlobals7) { /** * @return mixed */ -PHP_METHOD(Test_Globals, getDefaultGlobalsOrmCacheLevel) { +PHP_METHOD(Stub_Globals, getDefaultGlobalsOrmCacheLevel) { zval *this_ptr = getThis(); diff --git a/ext/stub/globals.zep.h b/ext/stub/globals.zep.h new file mode 100644 index 0000000000..a112acb736 --- /dev/null +++ b/ext/stub/globals.zep.h @@ -0,0 +1,105 @@ + +extern zend_class_entry *stub_globals_ce; + +ZEPHIR_INIT_CLASS(Stub_Globals); + +PHP_METHOD(Stub_Globals, setBoolValueUsingDotNotation); +PHP_METHOD(Stub_Globals, setIntValueUsingDotNotation); +PHP_METHOD(Stub_Globals, setCharValue); +PHP_METHOD(Stub_Globals, setBoolValue); +PHP_METHOD(Stub_Globals, setDefaultGlobalsOrmCacheLevel); +PHP_METHOD(Stub_Globals, getDefaultGlobals1); +PHP_METHOD(Stub_Globals, getDefaultGlobals2); +PHP_METHOD(Stub_Globals, getDefaultGlobals3); +PHP_METHOD(Stub_Globals, getDefaultGlobals4); +PHP_METHOD(Stub_Globals, getDefaultGlobals5); +PHP_METHOD(Stub_Globals, getDefaultGlobals6); +PHP_METHOD(Stub_Globals, getDefaultGlobals7); +PHP_METHOD(Stub_Globals, getDefaultGlobalsOrmCacheLevel); + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_setboolvalueusingdotnotation, 0, 1, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_setboolvalueusingdotnotation, 0, 1, IS_VOID, NULL, 0) +#endif +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_globals_setboolvalueusingdotnotation, 0, 0, 1) +#define arginfo_stub_globals_setboolvalueusingdotnotation NULL +#endif + + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_setintvalueusingdotnotation, 0, 1, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_setintvalueusingdotnotation, 0, 1, IS_VOID, NULL, 0) +#endif +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_globals_setintvalueusingdotnotation, 0, 0, 1) +#define arginfo_stub_globals_setintvalueusingdotnotation NULL +#endif + + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_setcharvalue, 0, 1, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_setcharvalue, 0, 1, IS_VOID, NULL, 0) +#endif +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_globals_setcharvalue, 0, 0, 1) +#define arginfo_stub_globals_setcharvalue NULL +#endif + + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_setboolvalue, 0, 1, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_setboolvalue, 0, 1, IS_VOID, NULL, 0) +#endif +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_globals_setboolvalue, 0, 0, 1) +#define arginfo_stub_globals_setboolvalue NULL +#endif + + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_setdefaultglobalsormcachelevel, 0, 1, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_setdefaultglobalsormcachelevel, 0, 1, IS_VOID, NULL, 0) +#endif +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_globals_setdefaultglobalsormcachelevel, 0, 0, 1) +#define arginfo_stub_globals_setdefaultglobalsormcachelevel NULL +#endif + + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_globals_method_entry) { + PHP_ME(Stub_Globals, setBoolValueUsingDotNotation, arginfo_stub_globals_setboolvalueusingdotnotation, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals, setIntValueUsingDotNotation, arginfo_stub_globals_setintvalueusingdotnotation, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals, setCharValue, arginfo_stub_globals_setcharvalue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals, setBoolValue, arginfo_stub_globals_setboolvalue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals, setDefaultGlobalsOrmCacheLevel, arginfo_stub_globals_setdefaultglobalsormcachelevel, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals, getDefaultGlobals1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals, getDefaultGlobals2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals, getDefaultGlobals3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals, getDefaultGlobals4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals, getDefaultGlobals5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals, getDefaultGlobals6, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals, getDefaultGlobals7, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals, getDefaultGlobalsOrmCacheLevel, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/globals/env.zep.c b/ext/stub/globals/env.zep.c similarity index 80% rename from ext/test/globals/env.zep.c rename to ext/stub/globals/env.zep.c index c6d28c7184..6702953965 100644 --- a/ext/test/globals/env.zep.c +++ b/ext/stub/globals/env.zep.c @@ -18,15 +18,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Globals_Env) { +ZEPHIR_INIT_CLASS(Stub_Globals_Env) { - ZEPHIR_REGISTER_CLASS(Test\\Globals, Env, test, globals_env, test_globals_env_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Globals, Env, stub, globals_env, stub_globals_env_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Globals_Env, read) { +PHP_METHOD(Stub_Globals_Env, read) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *name_param = NULL, _ENV, _0; @@ -44,7 +44,7 @@ PHP_METHOD(Test_Globals_Env, read) { zephir_get_strval(&name, name_param); - zephir_array_fetch(&_0, &_ENV, &name, PH_NOISY | PH_READONLY, "test/globals/env.zep", 8); + zephir_array_fetch(&_0, &_ENV, &name, PH_NOISY | PH_READONLY, "stub/globals/env.zep", 8); RETURN_CTOR(&_0); } diff --git a/ext/stub/globals/env.zep.h b/ext/stub/globals/env.zep.h new file mode 100644 index 0000000000..bc332428fb --- /dev/null +++ b/ext/stub/globals/env.zep.h @@ -0,0 +1,19 @@ + +extern zend_class_entry *stub_globals_env_ce; + +ZEPHIR_INIT_CLASS(Stub_Globals_Env); + +PHP_METHOD(Stub_Globals_Env, read); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_globals_env_read, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_globals_env_method_entry) { + PHP_ME(Stub_Globals_Env, read, arginfo_stub_globals_env_read, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/globals/post.zep.c b/ext/stub/globals/post.zep.c similarity index 82% rename from ext/test/globals/post.zep.c rename to ext/stub/globals/post.zep.c index 798782e60a..9e2ad3c1c6 100644 --- a/ext/test/globals/post.zep.c +++ b/ext/stub/globals/post.zep.c @@ -18,9 +18,9 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Globals_Post) { +ZEPHIR_INIT_CLASS(Stub_Globals_Post) { - ZEPHIR_REGISTER_CLASS(Test\\Globals, Post, test, globals_post, test_globals_post_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Globals, Post, stub, globals_post, stub_globals_post_method_entry, 0); return SUCCESS; @@ -31,7 +31,7 @@ ZEPHIR_INIT_CLASS(Test_Globals_Post) { * * @issue https://github.com/phalcon/zephir/issues/1623 */ -PHP_METHOD(Test_Globals_Post, hasValue) { +PHP_METHOD(Stub_Globals_Post, hasValue) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *name_param = NULL, _POST; diff --git a/ext/stub/globals/post.zep.h b/ext/stub/globals/post.zep.h new file mode 100644 index 0000000000..89b3fa5842 --- /dev/null +++ b/ext/stub/globals/post.zep.h @@ -0,0 +1,23 @@ + +extern zend_class_entry *stub_globals_post_ce; + +ZEPHIR_INIT_CLASS(Stub_Globals_Post); + +PHP_METHOD(Stub_Globals_Post, hasValue); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_post_hasvalue, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_post_hasvalue, 0, 1, _IS_BOOL, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_globals_post_method_entry) { + PHP_ME(Stub_Globals_Post, hasValue, arginfo_stub_globals_post_hasvalue, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/globals/server.zep.c b/ext/stub/globals/server.zep.c similarity index 76% rename from ext/test/globals/server.zep.c rename to ext/stub/globals/server.zep.c index 25156f6303..0107420078 100644 --- a/ext/test/globals/server.zep.c +++ b/ext/stub/globals/server.zep.c @@ -18,9 +18,9 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Globals_Server) { +ZEPHIR_INIT_CLASS(Stub_Globals_Server) { - ZEPHIR_REGISTER_CLASS(Test\\Globals, Server, test, globals_server, test_globals_server_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Globals, Server, stub, globals_server, stub_globals_server_method_entry, 0); return SUCCESS; @@ -29,7 +29,7 @@ ZEPHIR_INIT_CLASS(Test_Globals_Server) { /** * @see https://github.com/phalcon/zephir/issues/1961 */ -PHP_METHOD(Test_Globals_Server, f1) { +PHP_METHOD(Stub_Globals_Server, f1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -43,17 +43,17 @@ PHP_METHOD(Test_Globals_Server, f1) { ZEPHIR_MM_GROW(); zephir_get_global(&_SERVER, SL("_SERVER")); - zephir_array_fetch_string(&_0, &_SERVER, SL("PHP_SELF"), PH_NOISY | PH_READONLY, "test/globals/server.zep", 10); + zephir_array_fetch_string(&_0, &_SERVER, SL("PHP_SELF"), PH_NOISY | PH_READONLY, "stub/globals/server.zep", 10); zend_print_zval(&_0, 0); ZEPHIR_CALL_METHOD(NULL, this_ptr, "f2", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_1, &_SERVER, SL("PHP_SELF"), PH_NOISY | PH_READONLY, "test/globals/server.zep", 12); + zephir_array_fetch_string(&_1, &_SERVER, SL("PHP_SELF"), PH_NOISY | PH_READONLY, "stub/globals/server.zep", 12); zend_print_zval(&_1, 0); ZEPHIR_MM_RESTORE(); } -PHP_METHOD(Test_Globals_Server, f2) { +PHP_METHOD(Stub_Globals_Server, f2) { zval _SERVER, _0; zval *this_ptr = getThis(); @@ -63,7 +63,7 @@ PHP_METHOD(Test_Globals_Server, f2) { zephir_get_global(&_SERVER, SL("_SERVER")); - zephir_array_fetch_string(&_0, &_SERVER, SL("SCRIPT_NAME"), PH_NOISY | PH_READONLY, "test/globals/server.zep", 17); + zephir_array_fetch_string(&_0, &_SERVER, SL("SCRIPT_NAME"), PH_NOISY | PH_READONLY, "stub/globals/server.zep", 17); zend_print_zval(&_0, 0); } @@ -71,7 +71,7 @@ PHP_METHOD(Test_Globals_Server, f2) { /** * @see https://github.com/phalcon/zephir/issues/1970 */ -PHP_METHOD(Test_Globals_Server, check) { +PHP_METHOD(Stub_Globals_Server, check) { zval _SERVER, _0; zval *this_ptr = getThis(); @@ -81,7 +81,7 @@ PHP_METHOD(Test_Globals_Server, check) { zephir_get_global(&_SERVER, SL("_SERVER")); - zephir_array_fetch_string(&_0, &_SERVER, SL("HTTP_USER_AGENT"), PH_NOISY | PH_READONLY, "test/globals/server.zep", 25); + zephir_array_fetch_string(&_0, &_SERVER, SL("HTTP_USER_AGENT"), PH_NOISY | PH_READONLY, "stub/globals/server.zep", 25); RETURN_CTORW(&_0); } diff --git a/ext/stub/globals/server.zep.h b/ext/stub/globals/server.zep.h new file mode 100644 index 0000000000..696e368011 --- /dev/null +++ b/ext/stub/globals/server.zep.h @@ -0,0 +1,37 @@ + +extern zend_class_entry *stub_globals_server_ce; + +ZEPHIR_INIT_CLASS(Stub_Globals_Server); + +PHP_METHOD(Stub_Globals_Server, f1); +PHP_METHOD(Stub_Globals_Server, f2); +PHP_METHOD(Stub_Globals_Server, check); + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_server_f1, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_server_f1, 0, 0, IS_VOID, NULL, 0) +#endif +ZEND_END_ARG_INFO() +#else +#define arginfo_stub_globals_server_f1 NULL +#endif + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_server_f2, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_server_f2, 0, 0, IS_VOID, NULL, 0) +#endif +ZEND_END_ARG_INFO() +#else +#define arginfo_stub_globals_server_f2 NULL +#endif + +ZEPHIR_INIT_FUNCS(stub_globals_server_method_entry) { + PHP_ME(Stub_Globals_Server, f1, arginfo_stub_globals_server_f1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals_Server, f2, arginfo_stub_globals_server_f2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals_Server, check, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/globals/serverrequestfactory.zep.c b/ext/stub/globals/serverrequestfactory.zep.c similarity index 94% rename from ext/test/globals/serverrequestfactory.zep.c rename to ext/stub/globals/serverrequestfactory.zep.c index 3a4f8965a9..859e9698e9 100644 --- a/ext/test/globals/serverrequestfactory.zep.c +++ b/ext/stub/globals/serverrequestfactory.zep.c @@ -19,9 +19,9 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Globals_ServerRequestFactory) { +ZEPHIR_INIT_CLASS(Stub_Globals_ServerRequestFactory) { - ZEPHIR_REGISTER_CLASS(Test\\Globals, ServerRequestFactory, test, globals_serverrequestfactory, test_globals_serverrequestfactory_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Globals, ServerRequestFactory, stub, globals_serverrequestfactory, stub_globals_serverrequestfactory_method_entry, 0); return SUCCESS; @@ -30,7 +30,7 @@ ZEPHIR_INIT_CLASS(Test_Globals_ServerRequestFactory) { /** * @link https://github.com/phalcon/zephir/issues/1934 */ -PHP_METHOD(Test_Globals_ServerRequestFactory, load) { +PHP_METHOD(Stub_Globals_ServerRequestFactory, load) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_1 = NULL; @@ -154,7 +154,7 @@ PHP_METHOD(Test_Globals_ServerRequestFactory, load) { * Checks the source if it null and returns the super, otherwise the source * array */ -PHP_METHOD(Test_Globals_ServerRequestFactory, checkNullArray) { +PHP_METHOD(Stub_Globals_ServerRequestFactory, checkNullArray) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval super; diff --git a/ext/stub/globals/serverrequestfactory.zep.h b/ext/stub/globals/serverrequestfactory.zep.h new file mode 100644 index 0000000000..6e193eda79 --- /dev/null +++ b/ext/stub/globals/serverrequestfactory.zep.h @@ -0,0 +1,34 @@ + +extern zend_class_entry *stub_globals_serverrequestfactory_ce; + +ZEPHIR_INIT_CLASS(Stub_Globals_ServerRequestFactory); + +PHP_METHOD(Stub_Globals_ServerRequestFactory, load); +PHP_METHOD(Stub_Globals_ServerRequestFactory, checkNullArray); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_serverrequestfactory_load, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_serverrequestfactory_load, 0, 0, IS_ARRAY, NULL, 0) +#endif + ZEND_ARG_ARRAY_INFO(0, server, 1) + ZEND_ARG_ARRAY_INFO(0, get, 1) + ZEND_ARG_ARRAY_INFO(0, post, 1) + ZEND_ARG_ARRAY_INFO(0, cookies, 1) + ZEND_ARG_ARRAY_INFO(0, files, 1) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_serverrequestfactory_checknullarray, 0, 2, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_globals_serverrequestfactory_checknullarray, 0, 2, IS_ARRAY, NULL, 0) +#endif + ZEND_ARG_INFO(0, source) + ZEND_ARG_ARRAY_INFO(0, super, 0) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_globals_serverrequestfactory_method_entry) { + PHP_ME(Stub_Globals_ServerRequestFactory, load, arginfo_stub_globals_serverrequestfactory_load, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals_ServerRequestFactory, checkNullArray, arginfo_stub_globals_serverrequestfactory_checknullarray, ZEND_ACC_PRIVATE) + PHP_FE_END +}; diff --git a/ext/test/globals/session/base.zep.c b/ext/stub/globals/session/base.zep.c similarity index 88% rename from ext/test/globals/session/base.zep.c rename to ext/stub/globals/session/base.zep.c index 644310c0cc..68cc0a81ed 100644 --- a/ext/test/globals/session/base.zep.c +++ b/ext/stub/globals/session/base.zep.c @@ -19,15 +19,15 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_Globals_Session_Base) { +ZEPHIR_INIT_CLASS(Stub_Globals_Session_Base) { - ZEPHIR_REGISTER_CLASS(Test\\Globals\\Session, Base, test, globals_session_base, test_globals_session_base_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Globals\\Session, Base, stub, globals_session_base, stub_globals_session_base_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Globals_Session_Base, set) { +PHP_METHOD(Stub_Globals_Session_Base, set) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index_param = NULL, *value, value_sub, _SESSION; @@ -51,7 +51,7 @@ PHP_METHOD(Test_Globals_Session_Base, set) { } -PHP_METHOD(Test_Globals_Session_Base, remove) { +PHP_METHOD(Stub_Globals_Session_Base, remove) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *index_param = NULL, _SESSION; @@ -73,7 +73,7 @@ PHP_METHOD(Test_Globals_Session_Base, remove) { } -PHP_METHOD(Test_Globals_Session_Base, __set) { +PHP_METHOD(Stub_Globals_Session_Base, __set) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -96,7 +96,7 @@ PHP_METHOD(Test_Globals_Session_Base, __set) { } -PHP_METHOD(Test_Globals_Session_Base, __unset) { +PHP_METHOD(Stub_Globals_Session_Base, __unset) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -118,7 +118,7 @@ PHP_METHOD(Test_Globals_Session_Base, __unset) { } -PHP_METHOD(Test_Globals_Session_Base, removeSessionData) { +PHP_METHOD(Stub_Globals_Session_Base, removeSessionData) { zend_string *_4; zend_ulong _3; @@ -136,7 +136,7 @@ PHP_METHOD(Test_Globals_Session_Base, removeSessionData) { zephir_get_global(&_SESSION, SL("_SESSION")); ZEPHIR_INIT_VAR(&_0); - zephir_is_iterable(&_SESSION, 1, "test/globals/session/base.zep", 36); + zephir_is_iterable(&_SESSION, 1, "stub/globals/session/base.zep", 36); if (Z_TYPE_P(&_SESSION) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_SESSION), _3, _4, _1) { diff --git a/ext/stub/globals/session/base.zep.h b/ext/stub/globals/session/base.zep.h new file mode 100644 index 0000000000..71d076410f --- /dev/null +++ b/ext/stub/globals/session/base.zep.h @@ -0,0 +1,53 @@ + +extern zend_class_entry *stub_globals_session_base_ce; + +ZEPHIR_INIT_CLASS(Stub_Globals_Session_Base); + +PHP_METHOD(Stub_Globals_Session_Base, set); +PHP_METHOD(Stub_Globals_Session_Base, remove); +PHP_METHOD(Stub_Globals_Session_Base, __set); +PHP_METHOD(Stub_Globals_Session_Base, __unset); +PHP_METHOD(Stub_Globals_Session_Base, removeSessionData); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_globals_session_base_set, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, index, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, index) +#endif + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_globals_session_base_remove, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, index, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, index) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_globals_session_base___set, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, index, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, index) +#endif + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_globals_session_base___unset, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, index, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, index) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_globals_session_base_method_entry) { + PHP_ME(Stub_Globals_Session_Base, set, arginfo_stub_globals_session_base_set, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals_Session_Base, remove, arginfo_stub_globals_session_base_remove, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals_Session_Base, __set, arginfo_stub_globals_session_base___set, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals_Session_Base, __unset, arginfo_stub_globals_session_base___unset, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Globals_Session_Base, removeSessionData, NULL, ZEND_ACC_PROTECTED) + PHP_FE_END +}; diff --git a/ext/test/globals/session/child.zep.c b/ext/stub/globals/session/child.zep.c similarity index 74% rename from ext/test/globals/session/child.zep.c rename to ext/stub/globals/session/child.zep.c index da78134737..56d58570e8 100644 --- a/ext/test/globals/session/child.zep.c +++ b/ext/stub/globals/session/child.zep.c @@ -17,15 +17,15 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Globals_Session_Child) { +ZEPHIR_INIT_CLASS(Stub_Globals_Session_Child) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Globals\\Session, Child, test, globals_session_child, test_globals_session_base_ce, test_globals_session_child_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Globals\\Session, Child, stub, globals_session_child, stub_globals_session_base_ce, stub_globals_session_child_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Globals_Session_Child, destroy) { +PHP_METHOD(Stub_Globals_Session_Child, destroy) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; diff --git a/ext/stub/globals/session/child.zep.h b/ext/stub/globals/session/child.zep.h new file mode 100644 index 0000000000..57777ceaed --- /dev/null +++ b/ext/stub/globals/session/child.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_globals_session_child_ce; + +ZEPHIR_INIT_CLASS(Stub_Globals_Session_Child); + +PHP_METHOD(Stub_Globals_Session_Child, destroy); + +ZEPHIR_INIT_FUNCS(stub_globals_session_child_method_entry) { + PHP_ME(Stub_Globals_Session_Child, destroy, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/instance.zep.c b/ext/stub/instance.zep.c similarity index 84% rename from ext/test/instance.zep.c rename to ext/stub/instance.zep.c index 33086bbde6..a153bbeb2f 100644 --- a/ext/test/instance.zep.c +++ b/ext/stub/instance.zep.c @@ -22,15 +22,15 @@ /** * Instance operations */ -ZEPHIR_INIT_CLASS(Test_Instance) { +ZEPHIR_INIT_CLASS(Stub_Instance) { - ZEPHIR_REGISTER_CLASS(Test, Instance, test, instance, test_instance_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Instance, stub, instance, stub_instance_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Instance, __construct) { +PHP_METHOD(Stub_Instance, __construct) { zval *a1, a1_sub, *a2, a2_sub, *a3, a3_sub, *a4, a4_sub, *a5, a5_sub, *a6, a6_sub, *a7, a7_sub, *a8, a8_sub, *a9, a9_sub, *a10, a10_sub, *a11, a11_sub; zval *this_ptr = getThis(); @@ -54,7 +54,7 @@ PHP_METHOD(Test_Instance, __construct) { } -PHP_METHOD(Test_Instance, testIssue1339) { +PHP_METHOD(Stub_Instance, testIssue1339) { zval parameters, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -69,89 +69,89 @@ PHP_METHOD(Test_Instance, testIssue1339) { ZEPHIR_INIT_VAR(¶meters); zephir_create_array(¶meters, 11, 0); ZEPHIR_INIT_VAR(&_0); - object_init_ex(&_0, test_arithmetic_ce); + object_init_ex(&_0, stub_arithmetic_ce); if (zephir_has_constructor(&_0)) { ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0); zephir_check_call_status(); } zephir_array_fast_append(¶meters, &_0); ZEPHIR_INIT_NVAR(&_0); - object_init_ex(&_0, test_arrayobject_ce); + object_init_ex(&_0, stub_arrayobject_ce); ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 44); zephir_check_call_status(); zephir_array_fast_append(¶meters, &_0); ZEPHIR_INIT_NVAR(&_0); - object_init_ex(&_0, test_assign_ce); + object_init_ex(&_0, stub_assign_ce); if (zephir_has_constructor(&_0)) { ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0); zephir_check_call_status(); } zephir_array_fast_append(¶meters, &_0); ZEPHIR_INIT_NVAR(&_0); - object_init_ex(&_0, test_bitwise_ce); + object_init_ex(&_0, stub_bitwise_ce); if (zephir_has_constructor(&_0)) { ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0); zephir_check_call_status(); } zephir_array_fast_append(¶meters, &_0); ZEPHIR_INIT_NVAR(&_0); - object_init_ex(&_0, test_branchprediction_ce); + object_init_ex(&_0, stub_branchprediction_ce); if (zephir_has_constructor(&_0)) { ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0); zephir_check_call_status(); } zephir_array_fast_append(¶meters, &_0); ZEPHIR_INIT_NVAR(&_0); - object_init_ex(&_0, test_cast_ce); + object_init_ex(&_0, stub_cast_ce); if (zephir_has_constructor(&_0)) { ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0); zephir_check_call_status(); } zephir_array_fast_append(¶meters, &_0); ZEPHIR_INIT_NVAR(&_0); - object_init_ex(&_0, test_cblock_ce); + object_init_ex(&_0, stub_cblock_ce); if (zephir_has_constructor(&_0)) { ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0); zephir_check_call_status(); } zephir_array_fast_append(¶meters, &_0); ZEPHIR_INIT_NVAR(&_0); - object_init_ex(&_0, test_chars_ce); + object_init_ex(&_0, stub_chars_ce); if (zephir_has_constructor(&_0)) { ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0); zephir_check_call_status(); } zephir_array_fast_append(¶meters, &_0); ZEPHIR_INIT_NVAR(&_0); - object_init_ex(&_0, test_closures_ce); + object_init_ex(&_0, stub_closures_ce); if (zephir_has_constructor(&_0)) { ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0); zephir_check_call_status(); } zephir_array_fast_append(¶meters, &_0); ZEPHIR_INIT_NVAR(&_0); - object_init_ex(&_0, test_compare_ce); + object_init_ex(&_0, stub_compare_ce); if (zephir_has_constructor(&_0)) { ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0); zephir_check_call_status(); } zephir_array_fast_append(¶meters, &_0); ZEPHIR_INIT_NVAR(&_0); - object_init_ex(&_0, test_concat_ce); + object_init_ex(&_0, stub_concat_ce); if (zephir_has_constructor(&_0)) { ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0); zephir_check_call_status(); } zephir_array_fast_append(¶meters, &_0); ZEPHIR_INIT_NVAR(&_0); - ZVAL_STRING(&_0, "Test\\Instance"); + ZVAL_STRING(&_0, "Stub\\Instance"); ZEPHIR_LAST_CALL_STATUS = zephir_create_instance_params(return_value, &_0, ¶meters); zephir_check_call_status(); RETURN_MM(); } -PHP_METHOD(Test_Instance, testInstanceCreate) { +PHP_METHOD(Stub_Instance, testInstanceCreate) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; diff --git a/ext/stub/instance.zep.h b/ext/stub/instance.zep.h new file mode 100644 index 0000000000..0eecff8187 --- /dev/null +++ b/ext/stub/instance.zep.h @@ -0,0 +1,48 @@ + +extern zend_class_entry *stub_instance_ce; + +ZEPHIR_INIT_CLASS(Stub_Instance); + +PHP_METHOD(Stub_Instance, __construct); +PHP_METHOD(Stub_Instance, testIssue1339); +PHP_METHOD(Stub_Instance, testInstanceCreate); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_instance___construct, 0, 0, 11) + ZEND_ARG_OBJ_INFO(0, a1, Stub\\Arithmetic, 0) + ZEND_ARG_OBJ_INFO(0, a2, Stub\\ArrayObject, 0) + ZEND_ARG_OBJ_INFO(0, a3, Stub\\Assign, 0) + ZEND_ARG_OBJ_INFO(0, a4, Stub\\Bitwise, 0) + ZEND_ARG_OBJ_INFO(0, a5, Stub\\BranchPrediction, 0) + ZEND_ARG_OBJ_INFO(0, a6, Stub\\Cast, 0) + ZEND_ARG_OBJ_INFO(0, a7, Stub\\Cblock, 0) + ZEND_ARG_OBJ_INFO(0, a8, Stub\\Chars, 0) + ZEND_ARG_OBJ_INFO(0, a9, Stub\\Closures, 0) + ZEND_ARG_OBJ_INFO(0, a10, Stub\\Compare, 0) + ZEND_ARG_OBJ_INFO(0, a11, Stub\\Concat, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_stub_instance_testissue1339, 0, 0, Stub\\Instance, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instance_testissue1339, 0, 0, IS_OBJECT, "Stub\\Instance", 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_stub_instance_testinstancecreate, 0, 1, Stub\\Instance, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instance_testinstancecreate, 0, 1, IS_OBJECT, "Stub\\Instance", 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, className, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, className) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_instance_method_entry) { + PHP_ME(Stub_Instance, __construct, arginfo_stub_instance___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Stub_Instance, testIssue1339, arginfo_stub_instance_testissue1339, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Instance, testInstanceCreate, arginfo_stub_instance_testinstancecreate, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/instanceoff.zep.c b/ext/stub/instanceoff.zep.c similarity index 74% rename from ext/test/instanceoff.zep.c rename to ext/stub/instanceoff.zep.c index ef2d0b7508..c635de740d 100644 --- a/ext/test/instanceoff.zep.c +++ b/ext/stub/instanceoff.zep.c @@ -21,15 +21,15 @@ /** * OO operations */ -ZEPHIR_INIT_CLASS(Test_Instanceoff) { +ZEPHIR_INIT_CLASS(Stub_Instanceoff) { - ZEPHIR_REGISTER_CLASS(Test, Instanceoff, test, instanceoff, test_instanceoff_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Instanceoff, stub, instanceoff, stub_instanceoff_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Instanceoff, testInstanceOf1) { +PHP_METHOD(Stub_Instanceoff, testInstanceOf1) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -45,7 +45,7 @@ PHP_METHOD(Test_Instanceoff, testInstanceOf1) { } -PHP_METHOD(Test_Instanceoff, testInstanceOf2) { +PHP_METHOD(Stub_Instanceoff, testInstanceOf2) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -57,16 +57,16 @@ PHP_METHOD(Test_Instanceoff, testInstanceOf2) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&a); - object_init_ex(&a, test_instanceoff_ce); + object_init_ex(&a, stub_instanceoff_ce); if (zephir_has_constructor(&a)) { ZEPHIR_CALL_METHOD(NULL, &a, "__construct", NULL, 0); zephir_check_call_status(); } - RETURN_MM_BOOL(zephir_instance_of_ev(&a, test_instanceoff_ce)); + RETURN_MM_BOOL(zephir_instance_of_ev(&a, stub_instanceoff_ce)); } -PHP_METHOD(Test_Instanceoff, testInstanceOf3) { +PHP_METHOD(Stub_Instanceoff, testInstanceOf3) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -78,11 +78,11 @@ PHP_METHOD(Test_Instanceoff, testInstanceOf3) { ZEPHIR_INIT_VAR(&a); object_init(&a); - RETURN_MM_BOOL(zephir_instance_of_ev(&a, test_unknownclass_ce)); + RETURN_MM_BOOL(zephir_instance_of_ev(&a, stub_unknownclass_ce)); } -PHP_METHOD(Test_Instanceoff, testInstanceOf4) { +PHP_METHOD(Stub_Instanceoff, testInstanceOf4) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -100,7 +100,7 @@ PHP_METHOD(Test_Instanceoff, testInstanceOf4) { } -PHP_METHOD(Test_Instanceoff, testInstanceOf5) { +PHP_METHOD(Stub_Instanceoff, testInstanceOf5) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -111,14 +111,14 @@ PHP_METHOD(Test_Instanceoff, testInstanceOf5) { - if (zephir_instance_of_ev(a, test_instanceoff_ce)) { + if (zephir_instance_of_ev(a, stub_instanceoff_ce)) { RETURN_BOOL(1); } RETURN_BOOL(0); } -PHP_METHOD(Test_Instanceoff, testInstanceOf6) { +PHP_METHOD(Stub_Instanceoff, testInstanceOf6) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -130,16 +130,16 @@ PHP_METHOD(Test_Instanceoff, testInstanceOf6) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&a); - object_init_ex(&a, test_instanceoff_ce); + object_init_ex(&a, stub_instanceoff_ce); if (zephir_has_constructor(&a)) { ZEPHIR_CALL_METHOD(NULL, &a, "__construct", NULL, 0); zephir_check_call_status(); } - RETURN_MM_BOOL(zephir_instance_of_ev(&a, test_instanceoff_ce)); + RETURN_MM_BOOL(zephir_instance_of_ev(&a, stub_instanceoff_ce)); } -PHP_METHOD(Test_Instanceoff, testInstanceOf7) { +PHP_METHOD(Stub_Instanceoff, testInstanceOf7) { zval *test, test_sub; zval *this_ptr = getThis(); @@ -150,11 +150,11 @@ PHP_METHOD(Test_Instanceoff, testInstanceOf7) { - RETURN_BOOL(zephir_instance_of_ev(test, test_instanceoff_ce)); + RETURN_BOOL(zephir_instance_of_ev(test, stub_instanceoff_ce)); } -PHP_METHOD(Test_Instanceoff, testInstanceOf8) { +PHP_METHOD(Stub_Instanceoff, testInstanceOf8) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -172,7 +172,7 @@ PHP_METHOD(Test_Instanceoff, testInstanceOf8) { ZEPHIR_INIT_VAR(&a); - object_init_ex(&a, test_instanceoff_ce); + object_init_ex(&a, stub_instanceoff_ce); if (zephir_has_constructor(&a)) { ZEPHIR_CALL_METHOD(NULL, &a, "__construct", NULL, 0); zephir_check_call_status(); @@ -181,7 +181,7 @@ PHP_METHOD(Test_Instanceoff, testInstanceOf8) { } -PHP_METHOD(Test_Instanceoff, testInstanceOf9) { +PHP_METHOD(Stub_Instanceoff, testInstanceOf9) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval test; diff --git a/ext/stub/instanceoff.zep.h b/ext/stub/instanceoff.zep.h new file mode 100644 index 0000000000..56f7f4ff7f --- /dev/null +++ b/ext/stub/instanceoff.zep.h @@ -0,0 +1,104 @@ + +extern zend_class_entry *stub_instanceoff_ce; + +ZEPHIR_INIT_CLASS(Stub_Instanceoff); + +PHP_METHOD(Stub_Instanceoff, testInstanceOf1); +PHP_METHOD(Stub_Instanceoff, testInstanceOf2); +PHP_METHOD(Stub_Instanceoff, testInstanceOf3); +PHP_METHOD(Stub_Instanceoff, testInstanceOf4); +PHP_METHOD(Stub_Instanceoff, testInstanceOf5); +PHP_METHOD(Stub_Instanceoff, testInstanceOf6); +PHP_METHOD(Stub_Instanceoff, testInstanceOf7); +PHP_METHOD(Stub_Instanceoff, testInstanceOf8); +PHP_METHOD(Stub_Instanceoff, testInstanceOf9); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof1, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof1, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof2, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof2, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof3, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof3, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof4, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof4, 0, 1, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof5, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof5, 0, 1, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof6, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof6, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof7, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof7, 0, 1, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_INFO(0, test) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof8, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof8, 0, 1, _IS_BOOL, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, test, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, test) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof9, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_instanceoff_testinstanceof9, 0, 2, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_INFO(0, a) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, test, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, test) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_instanceoff_method_entry) { + PHP_ME(Stub_Instanceoff, testInstanceOf1, arginfo_stub_instanceoff_testinstanceof1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Instanceoff, testInstanceOf2, arginfo_stub_instanceoff_testinstanceof2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Instanceoff, testInstanceOf3, arginfo_stub_instanceoff_testinstanceof3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Instanceoff, testInstanceOf4, arginfo_stub_instanceoff_testinstanceof4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Instanceoff, testInstanceOf5, arginfo_stub_instanceoff_testinstanceof5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Instanceoff, testInstanceOf6, arginfo_stub_instanceoff_testinstanceof6, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Instanceoff, testInstanceOf7, arginfo_stub_instanceoff_testinstanceof7, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Instanceoff, testInstanceOf8, arginfo_stub_instanceoff_testinstanceof8, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Instanceoff, testInstanceOf9, arginfo_stub_instanceoff_testinstanceof9, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/integration/psr/http/message/messageinterfaceex.zep.c b/ext/stub/integration/psr/http/message/messageinterfaceex.zep.c similarity index 58% rename from ext/test/integration/psr/http/message/messageinterfaceex.zep.c rename to ext/stub/integration/psr/http/message/messageinterfaceex.zep.c index 19b95adc91..56583d51f0 100644 --- a/ext/test/integration/psr/http/message/messageinterfaceex.zep.c +++ b/ext/stub/integration/psr/http/message/messageinterfaceex.zep.c @@ -12,11 +12,11 @@ #include "kernel/main.h" -ZEPHIR_INIT_CLASS(Test_Integration_Psr_Http_Message_MessageInterfaceEx) { +ZEPHIR_INIT_CLASS(Stub_Integration_Psr_Http_Message_MessageInterfaceEx) { - ZEPHIR_REGISTER_INTERFACE(Test\\Integration\\Psr\\Http\\Message, MessageInterfaceEx, test, integration_psr_http_message_messageinterfaceex, NULL); + ZEPHIR_REGISTER_INTERFACE(Stub\\Integration\\Psr\\Http\\Message, MessageInterfaceEx, stub, integration_psr_http_message_messageinterfaceex, NULL); - zend_class_implements(test_integration_psr_http_message_messageinterfaceex_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\messageinterface"))); + zend_class_implements(stub_integration_psr_http_message_messageinterfaceex_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\messageinterface"))); return SUCCESS; } diff --git a/ext/stub/integration/psr/http/message/messageinterfaceex.zep.h b/ext/stub/integration/psr/http/message/messageinterfaceex.zep.h new file mode 100644 index 0000000000..dc83aeb742 --- /dev/null +++ b/ext/stub/integration/psr/http/message/messageinterfaceex.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_integration_psr_http_message_messageinterfaceex_ce; + +ZEPHIR_INIT_CLASS(Stub_Integration_Psr_Http_Message_MessageInterfaceEx); + diff --git a/ext/test/internalclasses.zep.c b/ext/stub/internalclasses.zep.c similarity index 74% rename from ext/test/internalclasses.zep.c rename to ext/stub/internalclasses.zep.c index a074bf7434..4c0a6ffabe 100644 --- a/ext/test/internalclasses.zep.c +++ b/ext/stub/internalclasses.zep.c @@ -17,15 +17,15 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_InternalClasses) { +ZEPHIR_INIT_CLASS(Stub_InternalClasses) { - ZEPHIR_REGISTER_CLASS(Test, InternalClasses, test, internalclasses, test_internalclasses_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, InternalClasses, stub, internalclasses, stub_internalclasses_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_InternalClasses, testStaticCall) { +PHP_METHOD(Stub_InternalClasses, testStaticCall) { zend_class_entry *_0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -42,7 +42,7 @@ PHP_METHOD(Test_InternalClasses, testStaticCall) { } -PHP_METHOD(Test_InternalClasses, testStaticPropertyFetch) { +PHP_METHOD(Stub_InternalClasses, testStaticPropertyFetch) { zval *this_ptr = getThis(); diff --git a/ext/stub/internalclasses.zep.h b/ext/stub/internalclasses.zep.h new file mode 100644 index 0000000000..7829348999 --- /dev/null +++ b/ext/stub/internalclasses.zep.h @@ -0,0 +1,13 @@ + +extern zend_class_entry *stub_internalclasses_ce; + +ZEPHIR_INIT_CLASS(Stub_InternalClasses); + +PHP_METHOD(Stub_InternalClasses, testStaticCall); +PHP_METHOD(Stub_InternalClasses, testStaticPropertyFetch); + +ZEPHIR_INIT_FUNCS(stub_internalclasses_method_entry) { + PHP_ME(Stub_InternalClasses, testStaticCall, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_InternalClasses, testStaticPropertyFetch, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/internalinterfaces.zep.c b/ext/stub/internalinterfaces.zep.c similarity index 58% rename from ext/test/internalinterfaces.zep.c rename to ext/stub/internalinterfaces.zep.c index 8c3671bd1c..8379e5e31e 100644 --- a/ext/test/internalinterfaces.zep.c +++ b/ext/stub/internalinterfaces.zep.c @@ -16,16 +16,16 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_InternalInterfaces) { +ZEPHIR_INIT_CLASS(Stub_InternalInterfaces) { - ZEPHIR_REGISTER_CLASS(Test, InternalInterfaces, test, internalinterfaces, test_internalinterfaces_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, InternalInterfaces, stub, internalinterfaces, stub_internalinterfaces_method_entry, 0); - zend_class_implements(test_internalinterfaces_ce, 1, spl_ce_Countable); + zend_class_implements(stub_internalinterfaces_ce, 1, spl_ce_Countable); return SUCCESS; } -PHP_METHOD(Test_InternalInterfaces, count) { +PHP_METHOD(Stub_InternalInterfaces, count) { zval *this_ptr = getThis(); diff --git a/ext/stub/internalinterfaces.zep.h b/ext/stub/internalinterfaces.zep.h new file mode 100644 index 0000000000..d265bf3f4f --- /dev/null +++ b/ext/stub/internalinterfaces.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_internalinterfaces_ce; + +ZEPHIR_INIT_CLASS(Stub_InternalInterfaces); + +PHP_METHOD(Stub_InternalInterfaces, count); + +ZEPHIR_INIT_FUNCS(stub_internalinterfaces_method_entry) { + PHP_ME(Stub_InternalInterfaces, count, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/invoke.zep.c b/ext/stub/invoke.zep.c similarity index 75% rename from ext/test/invoke.zep.c rename to ext/stub/invoke.zep.c index 35b242ea4e..7aa2f69d60 100644 --- a/ext/test/invoke.zep.c +++ b/ext/stub/invoke.zep.c @@ -17,17 +17,17 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_Invoke) { +ZEPHIR_INIT_CLASS(Stub_Invoke) { - ZEPHIR_REGISTER_CLASS(Test, Invoke, test, invoke, test_invoke_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Invoke, stub, invoke, stub_invoke_method_entry, 0); - zend_declare_property_null(test_invoke_ce, SL("a"), ZEND_ACC_PRIVATE); + zend_declare_property_null(stub_invoke_ce, SL("a"), ZEND_ACC_PRIVATE); return SUCCESS; } -PHP_METHOD(Test_Invoke, __construct) { +PHP_METHOD(Stub_Invoke, __construct) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -45,7 +45,7 @@ PHP_METHOD(Test_Invoke, __construct) { } -PHP_METHOD(Test_Invoke, __invoke) { +PHP_METHOD(Stub_Invoke, __invoke) { zval _0; zval *this_ptr = getThis(); @@ -53,13 +53,13 @@ PHP_METHOD(Test_Invoke, __invoke) { ZVAL_UNDEF(&_0); - zephir_read_property(&_0, this_ptr, SL("a"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("a"), PH_NOISY_CC | PH_READONLY); zephir_gettype(return_value, &_0); return; } -PHP_METHOD(Test_Invoke, test) { +PHP_METHOD(Stub_Invoke, test) { zval func; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -71,7 +71,7 @@ PHP_METHOD(Test_Invoke, test) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&func); - object_init_ex(&func, test_invoke_ce); + object_init_ex(&func, stub_invoke_ce); ZEPHIR_CALL_METHOD(NULL, &func, "__construct", NULL, 45); zephir_check_call_status(); ZEPHIR_RETURN_CALL_ZVAL_FUNCTION(&func, NULL, 0); diff --git a/ext/stub/invoke.zep.h b/ext/stub/invoke.zep.h new file mode 100644 index 0000000000..1047e2ba6a --- /dev/null +++ b/ext/stub/invoke.zep.h @@ -0,0 +1,29 @@ + +extern zend_class_entry *stub_invoke_ce; + +ZEPHIR_INIT_CLASS(Stub_Invoke); + +PHP_METHOD(Stub_Invoke, __construct); +PHP_METHOD(Stub_Invoke, __invoke); +PHP_METHOD(Stub_Invoke, test); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_invoke___invoke, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_invoke___invoke, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_invoke_test, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_invoke_test, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_invoke_method_entry) { + PHP_ME(Stub_Invoke, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Stub_Invoke, __invoke, arginfo_stub_invoke___invoke, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Invoke, test, arginfo_stub_invoke_test, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/issettest.zep.c b/ext/stub/issettest.zep.c similarity index 75% rename from ext/test/issettest.zep.c rename to ext/stub/issettest.zep.c index c75eb2d4d4..65695159c0 100644 --- a/ext/test/issettest.zep.c +++ b/ext/stub/issettest.zep.c @@ -21,18 +21,18 @@ /** * Unset statement tests */ -ZEPHIR_INIT_CLASS(Test_IssetTest) { +ZEPHIR_INIT_CLASS(Stub_IssetTest) { - ZEPHIR_REGISTER_CLASS(Test, IssetTest, test, issettest, test_issettest_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, IssetTest, stub, issettest, stub_issettest_method_entry, 0); - zend_declare_property_null(test_issettest_ce, SL("s"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_issettest_ce, SL("s"), ZEND_ACC_PUBLIC); - test_issettest_ce->create_object = zephir_init_properties_Test_IssetTest; + stub_issettest_ce->create_object = zephir_init_properties_Stub_IssetTest; return SUCCESS; } -PHP_METHOD(Test_IssetTest, testIssetArray1) { +PHP_METHOD(Stub_IssetTest, testIssetArray1) { zval *a, a_sub, *b, b_sub; zval *this_ptr = getThis(); @@ -48,7 +48,7 @@ PHP_METHOD(Test_IssetTest, testIssetArray1) { } -PHP_METHOD(Test_IssetTest, testIssetArray2) { +PHP_METHOD(Stub_IssetTest, testIssetArray2) { zend_long b; zval *a, a_sub, *b_param = NULL; @@ -65,7 +65,7 @@ PHP_METHOD(Test_IssetTest, testIssetArray2) { } -PHP_METHOD(Test_IssetTest, testIssetArray3) { +PHP_METHOD(Stub_IssetTest, testIssetArray3) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval b; @@ -85,7 +85,7 @@ PHP_METHOD(Test_IssetTest, testIssetArray3) { } -PHP_METHOD(Test_IssetTest, testIssetArray4) { +PHP_METHOD(Stub_IssetTest, testIssetArray4) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -100,7 +100,7 @@ PHP_METHOD(Test_IssetTest, testIssetArray4) { } -PHP_METHOD(Test_IssetTest, testIssetArray5) { +PHP_METHOD(Stub_IssetTest, testIssetArray5) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -115,7 +115,7 @@ PHP_METHOD(Test_IssetTest, testIssetArray5) { } -PHP_METHOD(Test_IssetTest, testIssetProperty1) { +PHP_METHOD(Stub_IssetTest, testIssetProperty1) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -130,7 +130,7 @@ PHP_METHOD(Test_IssetTest, testIssetProperty1) { } -PHP_METHOD(Test_IssetTest, testIssetProperty2) { +PHP_METHOD(Stub_IssetTest, testIssetProperty2) { zval *a, a_sub, *b, b_sub; zval *this_ptr = getThis(); @@ -146,7 +146,7 @@ PHP_METHOD(Test_IssetTest, testIssetProperty2) { } -PHP_METHOD(Test_IssetTest, testIssetProperty3) { +PHP_METHOD(Stub_IssetTest, testIssetProperty3) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -161,7 +161,7 @@ PHP_METHOD(Test_IssetTest, testIssetProperty3) { } -PHP_METHOD(Test_IssetTest, testIssetDynamicProperty1) { +PHP_METHOD(Stub_IssetTest, testIssetDynamicProperty1) { zval g; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -172,7 +172,7 @@ PHP_METHOD(Test_IssetTest, testIssetDynamicProperty1) { ZEPHIR_MM_GROW(); ZEPHIR_OBS_VAR(&g); - zephir_read_property(&g, this_ptr, SL("s"), PH_NOISY_CC); + zephir_read_property(&g, this_ptr, ZEND_STRL("s"), PH_NOISY_CC); if (zephir_array_isset_string(&g, SL("a"))) { RETURN_MM_BOOL(1); } @@ -180,7 +180,7 @@ PHP_METHOD(Test_IssetTest, testIssetDynamicProperty1) { } -PHP_METHOD(Test_IssetTest, testIssetDynamicProperty2) { +PHP_METHOD(Stub_IssetTest, testIssetDynamicProperty2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *inp, inp_sub, g; @@ -195,7 +195,7 @@ PHP_METHOD(Test_IssetTest, testIssetDynamicProperty2) { ZEPHIR_OBS_VAR(&g); - zephir_read_property(&g, inp, SL("s"), PH_NOISY_CC); + zephir_read_property(&g, inp, ZEND_STRL("s"), PH_NOISY_CC); if (zephir_array_isset_string(&g, SL("a"))) { RETURN_MM_BOOL(1); } @@ -203,7 +203,7 @@ PHP_METHOD(Test_IssetTest, testIssetDynamicProperty2) { } -zend_object *zephir_init_properties_Test_IssetTest(zend_class_entry *class_type TSRMLS_DC) { +zend_object *zephir_init_properties_Stub_IssetTest(zend_class_entry *class_type TSRMLS_DC) { zval _1$$3; zval _0; @@ -216,12 +216,12 @@ zend_object *zephir_init_properties_Test_IssetTest(zend_class_entry *class_type { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); - zephir_read_property(&_0, this_ptr, SL("s"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_0, this_ptr, ZEND_STRL("s"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_0) == IS_NULL) { ZEPHIR_INIT_VAR(&_1$$3); zephir_create_array(&_1$$3, 1, 0); add_assoc_stringl_ex(&_1$$3, SL("a"), SL("true")); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("s"), &_1$$3); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("s"), &_1$$3); } ZEPHIR_MM_RESTORE(); return Z_OBJ_P(this_ptr); diff --git a/ext/stub/issettest.zep.h b/ext/stub/issettest.zep.h new file mode 100644 index 0000000000..29ede6f321 --- /dev/null +++ b/ext/stub/issettest.zep.h @@ -0,0 +1,78 @@ + +extern zend_class_entry *stub_issettest_ce; + +ZEPHIR_INIT_CLASS(Stub_IssetTest); + +PHP_METHOD(Stub_IssetTest, testIssetArray1); +PHP_METHOD(Stub_IssetTest, testIssetArray2); +PHP_METHOD(Stub_IssetTest, testIssetArray3); +PHP_METHOD(Stub_IssetTest, testIssetArray4); +PHP_METHOD(Stub_IssetTest, testIssetArray5); +PHP_METHOD(Stub_IssetTest, testIssetProperty1); +PHP_METHOD(Stub_IssetTest, testIssetProperty2); +PHP_METHOD(Stub_IssetTest, testIssetProperty3); +PHP_METHOD(Stub_IssetTest, testIssetDynamicProperty1); +PHP_METHOD(Stub_IssetTest, testIssetDynamicProperty2); +zend_object *zephir_init_properties_Stub_IssetTest(zend_class_entry *class_type TSRMLS_DC); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_issettest_testissetarray1, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_issettest_testissetarray2, 0, 0, 2) + ZEND_ARG_INFO(0, a) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_issettest_testissetarray3, 0, 0, 2) + ZEND_ARG_INFO(0, a) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_issettest_testissetarray4, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_issettest_testissetarray5, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_issettest_testissetproperty1, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_issettest_testissetproperty2, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_issettest_testissetproperty3, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_issettest_testissetdynamicproperty2, 0, 0, 1) + ZEND_ARG_INFO(0, inp) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_issettest_method_entry) { + PHP_ME(Stub_IssetTest, testIssetArray1, arginfo_stub_issettest_testissetarray1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_IssetTest, testIssetArray2, arginfo_stub_issettest_testissetarray2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_IssetTest, testIssetArray3, arginfo_stub_issettest_testissetarray3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_IssetTest, testIssetArray4, arginfo_stub_issettest_testissetarray4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_IssetTest, testIssetArray5, arginfo_stub_issettest_testissetarray5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_IssetTest, testIssetProperty1, arginfo_stub_issettest_testissetproperty1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_IssetTest, testIssetProperty2, arginfo_stub_issettest_testissetproperty2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_IssetTest, testIssetProperty3, arginfo_stub_issettest_testissetproperty3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_IssetTest, testIssetDynamicProperty1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_IssetTest, testIssetDynamicProperty2, arginfo_stub_issettest_testissetdynamicproperty2, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/issue1404.zep.c b/ext/stub/issue1404.zep.c similarity index 59% rename from ext/test/issue1404.zep.c rename to ext/stub/issue1404.zep.c index efcd349c5e..782798a0cd 100644 --- a/ext/test/issue1404.zep.c +++ b/ext/stub/issue1404.zep.c @@ -15,15 +15,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Issue1404) { +ZEPHIR_INIT_CLASS(Stub_Issue1404) { - ZEPHIR_REGISTER_CLASS(Test, Issue1404, test, issue1404, test_issue1404_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Issue1404, stub, issue1404, stub_issue1404_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingInteger70000) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsingInteger70000) { zval *this_ptr = getThis(); @@ -32,7 +32,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingInteger70000) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingDouble70100) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsingDouble70100) { zval *this_ptr = getThis(); @@ -41,7 +41,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingDouble70100) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingLong70000) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsingLong70000) { zval *this_ptr = getThis(); @@ -50,7 +50,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingLong70000) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingString70000) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsingString70000) { zval *this_ptr = getThis(); @@ -59,7 +59,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingString70000) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingZero) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsingZero) { zval *this_ptr = getThis(); @@ -68,7 +68,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingZero) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing50000) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing50000) { zval *this_ptr = getThis(); @@ -77,7 +77,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing50000) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing50500) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing50500) { zval *this_ptr = getThis(); @@ -86,7 +86,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing50500) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing50600) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing50600) { zval *this_ptr = getThis(); @@ -95,7 +95,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing50600) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70101) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70101) { zval *this_ptr = getThis(); @@ -104,7 +104,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70101) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70102) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70102) { zval *this_ptr = getThis(); @@ -113,7 +113,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70102) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70103) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70103) { zval *this_ptr = getThis(); @@ -122,7 +122,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70103) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70104) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70104) { zval *this_ptr = getThis(); @@ -131,7 +131,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70104) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70105) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70105) { zval *this_ptr = getThis(); @@ -140,7 +140,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70105) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70106) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70106) { zval *this_ptr = getThis(); @@ -149,7 +149,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70106) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70107) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70107) { zval *this_ptr = getThis(); @@ -158,7 +158,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70107) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70108) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70108) { zval *this_ptr = getThis(); @@ -167,7 +167,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70108) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70109) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70109) { zval *this_ptr = getThis(); @@ -176,7 +176,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70109) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70110) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70110) { zval *this_ptr = getThis(); @@ -185,7 +185,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70110) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70111) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70111) { zval *this_ptr = getThis(); @@ -194,7 +194,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70111) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70112) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70112) { zval *this_ptr = getThis(); @@ -203,7 +203,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70112) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70113) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70113) { zval *this_ptr = getThis(); @@ -212,7 +212,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70113) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70114) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70114) { zval *this_ptr = getThis(); @@ -221,7 +221,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70114) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70115) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70115) { zval *this_ptr = getThis(); @@ -230,7 +230,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70115) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70116) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70116) { zval *this_ptr = getThis(); @@ -239,7 +239,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70116) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70117) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70117) { zval *this_ptr = getThis(); @@ -248,7 +248,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70117) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70100) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70100) { zval *this_ptr = getThis(); @@ -257,7 +257,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70100) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70200) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70200) { zval *this_ptr = getThis(); @@ -266,7 +266,7 @@ PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70200) { } -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70300) { +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70300) { zval *this_ptr = getThis(); diff --git a/ext/stub/issue1404.zep.h b/ext/stub/issue1404.zep.h new file mode 100644 index 0000000000..30cc14d183 --- /dev/null +++ b/ext/stub/issue1404.zep.h @@ -0,0 +1,261 @@ + +extern zend_class_entry *stub_issue1404_ce; + +ZEPHIR_INIT_CLASS(Stub_Issue1404); + +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsingInteger70000); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsingDouble70100); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsingLong70000); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsingString70000); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsingZero); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing50000); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing50500); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing50600); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70101); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70102); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70103); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70104); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70105); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70106); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70107); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70108); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70109); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70110); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70111); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70112); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70113); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70114); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70115); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70116); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70117); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70100); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70200); +PHP_METHOD(Stub_Issue1404, testIsPhpVersionUsing70300); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusinginteger70000, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusinginteger70000, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusingdouble70100, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusingdouble70100, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusinglong70000, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusinglong70000, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusingstring70000, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusingstring70000, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusingzero, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusingzero, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing50000, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing50000, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing50500, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing50500, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing50600, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing50600, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70101, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70101, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70102, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70102, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70103, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70103, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70104, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70104, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70105, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70105, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70106, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70106, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70107, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70107, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70108, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70108, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70109, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70109, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70110, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70110, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70111, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70111, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70112, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70112, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70113, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70113, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70114, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70114, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70115, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70115, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70116, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70116, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70117, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70117, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70100, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70100, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70200, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70200, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70300, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_issue1404_testisphpversionusing70300, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_issue1404_method_entry) { + PHP_ME(Stub_Issue1404, testIsPhpVersionUsingInteger70000, arginfo_stub_issue1404_testisphpversionusinginteger70000, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsingDouble70100, arginfo_stub_issue1404_testisphpversionusingdouble70100, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsingLong70000, arginfo_stub_issue1404_testisphpversionusinglong70000, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsingString70000, arginfo_stub_issue1404_testisphpversionusingstring70000, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsingZero, arginfo_stub_issue1404_testisphpversionusingzero, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing50000, arginfo_stub_issue1404_testisphpversionusing50000, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing50500, arginfo_stub_issue1404_testisphpversionusing50500, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing50600, arginfo_stub_issue1404_testisphpversionusing50600, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70101, arginfo_stub_issue1404_testisphpversionusing70101, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70102, arginfo_stub_issue1404_testisphpversionusing70102, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70103, arginfo_stub_issue1404_testisphpversionusing70103, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70104, arginfo_stub_issue1404_testisphpversionusing70104, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70105, arginfo_stub_issue1404_testisphpversionusing70105, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70106, arginfo_stub_issue1404_testisphpversionusing70106, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70107, arginfo_stub_issue1404_testisphpversionusing70107, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70108, arginfo_stub_issue1404_testisphpversionusing70108, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70109, arginfo_stub_issue1404_testisphpversionusing70109, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70110, arginfo_stub_issue1404_testisphpversionusing70110, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70111, arginfo_stub_issue1404_testisphpversionusing70111, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70112, arginfo_stub_issue1404_testisphpversionusing70112, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70113, arginfo_stub_issue1404_testisphpversionusing70113, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70114, arginfo_stub_issue1404_testisphpversionusing70114, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70115, arginfo_stub_issue1404_testisphpversionusing70115, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70116, arginfo_stub_issue1404_testisphpversionusing70116, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70117, arginfo_stub_issue1404_testisphpversionusing70117, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70100, arginfo_stub_issue1404_testisphpversionusing70100, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70200, arginfo_stub_issue1404_testisphpversionusing70200, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issue1404, testIsPhpVersionUsing70300, arginfo_stub_issue1404_testisphpversionusing70300, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/issue1521.zep.c b/ext/stub/issue1521.zep.c similarity index 80% rename from ext/test/issue1521.zep.c rename to ext/stub/issue1521.zep.c index 41efacea7c..ae8b179fa3 100644 --- a/ext/test/issue1521.zep.c +++ b/ext/stub/issue1521.zep.c @@ -17,17 +17,17 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Issue1521) { +ZEPHIR_INIT_CLASS(Stub_Issue1521) { - ZEPHIR_REGISTER_CLASS(Test, Issue1521, test, issue1521, test_issue1521_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Issue1521, stub, issue1521, stub_issue1521_method_entry, 0); - zend_declare_property_null(test_issue1521_ce, SL("params"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_issue1521_ce, SL("params"), ZEND_ACC_PUBLIC); return SUCCESS; } -PHP_METHOD(Test_Issue1521, test) { +PHP_METHOD(Stub_Issue1521, test) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/issue1521.zep.h b/ext/stub/issue1521.zep.h new file mode 100644 index 0000000000..ce88a3366d --- /dev/null +++ b/ext/stub/issue1521.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_issue1521_ce; + +ZEPHIR_INIT_CLASS(Stub_Issue1521); + +PHP_METHOD(Stub_Issue1521, test); + +ZEPHIR_INIT_FUNCS(stub_issue1521_method_entry) { + PHP_ME(Stub_Issue1521, test, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/issues.zep.c b/ext/stub/issues.zep.c similarity index 74% rename from ext/test/issues.zep.c rename to ext/stub/issues.zep.c index e796af90b9..74bbe6d1bb 100644 --- a/ext/test/issues.zep.c +++ b/ext/stub/issues.zep.c @@ -17,17 +17,17 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_Issues) { +ZEPHIR_INIT_CLASS(Stub_Issues) { - ZEPHIR_REGISTER_CLASS(Test, Issues, test, issues, test_issues_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Issues, stub, issues, stub_issues_method_entry, 0); - zend_declare_property_null(test_issues_ce, SL("adapter"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_issues_ce, SL("adapter"), ZEND_ACC_PROTECTED); return SUCCESS; } -PHP_METHOD(Test_Issues, setAdapter) { +PHP_METHOD(Stub_Issues, setAdapter) { zval *adapter, adapter_sub; zval *this_ptr = getThis(); @@ -42,7 +42,7 @@ PHP_METHOD(Test_Issues, setAdapter) { } -PHP_METHOD(Test_Issues, someMethod) { +PHP_METHOD(Stub_Issues, someMethod) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -57,14 +57,14 @@ PHP_METHOD(Test_Issues, someMethod) { - zephir_read_property(&_0, this_ptr, SL("adapter"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("adapter"), PH_NOISY_CC | PH_READONLY); ZEPHIR_RETURN_CALL_METHOD_ZVAL(&_0, methodName, NULL, 0); zephir_check_call_status(); RETURN_MM(); } -PHP_METHOD(Test_Issues, test) { +PHP_METHOD(Stub_Issues, test) { zval *this_ptr = getThis(); diff --git a/ext/stub/issues.zep.h b/ext/stub/issues.zep.h new file mode 100644 index 0000000000..b02ee1a43e --- /dev/null +++ b/ext/stub/issues.zep.h @@ -0,0 +1,23 @@ + +extern zend_class_entry *stub_issues_ce; + +ZEPHIR_INIT_CLASS(Stub_Issues); + +PHP_METHOD(Stub_Issues, setAdapter); +PHP_METHOD(Stub_Issues, someMethod); +PHP_METHOD(Stub_Issues, test); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_issues_setadapter, 0, 0, 1) + ZEND_ARG_INFO(0, adapter) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_issues_somemethod, 0, 0, 1) + ZEND_ARG_INFO(0, methodName) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_issues_method_entry) { + PHP_ME(Stub_Issues, setAdapter, arginfo_stub_issues_setadapter, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issues, someMethod, arginfo_stub_issues_somemethod, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Issues, test, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/json.zep.c b/ext/stub/json.zep.c similarity index 89% rename from ext/test/json.zep.c rename to ext/stub/json.zep.c index e9c86b97f9..9fefdd191c 100644 --- a/ext/test/json.zep.c +++ b/ext/stub/json.zep.c @@ -19,15 +19,15 @@ #include "kernel/operators.h" -ZEPHIR_INIT_CLASS(Test_Json) { +ZEPHIR_INIT_CLASS(Stub_Json) { - ZEPHIR_REGISTER_CLASS(Test, Json, test, json, test_json_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Json, stub, json, stub_json_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Json, testEncodeObject) { +PHP_METHOD(Stub_Json, testEncodeObject) { zval obj; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -47,7 +47,7 @@ PHP_METHOD(Test_Json, testEncodeObject) { } -PHP_METHOD(Test_Json, testEncodeArray) { +PHP_METHOD(Stub_Json, testEncodeArray) { zval arr, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -74,7 +74,7 @@ PHP_METHOD(Test_Json, testEncodeArray) { } -PHP_METHOD(Test_Json, testEncodeOptions) { +PHP_METHOD(Stub_Json, testEncodeOptions) { zval arr, _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -106,7 +106,7 @@ PHP_METHOD(Test_Json, testEncodeOptions) { } -PHP_METHOD(Test_Json, testDecodeObject) { +PHP_METHOD(Stub_Json, testDecodeObject) { zval obj; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -123,7 +123,7 @@ PHP_METHOD(Test_Json, testDecodeObject) { } -PHP_METHOD(Test_Json, testDecodeObject2) { +PHP_METHOD(Stub_Json, testDecodeObject2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$true, obj; @@ -141,7 +141,7 @@ PHP_METHOD(Test_Json, testDecodeObject2) { } -PHP_METHOD(Test_Json, testDecodeArray) { +PHP_METHOD(Stub_Json, testDecodeArray) { zval arr; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/json.zep.h b/ext/stub/json.zep.h new file mode 100644 index 0000000000..dc268fe3ac --- /dev/null +++ b/ext/stub/json.zep.h @@ -0,0 +1,21 @@ + +extern zend_class_entry *stub_json_ce; + +ZEPHIR_INIT_CLASS(Stub_Json); + +PHP_METHOD(Stub_Json, testEncodeObject); +PHP_METHOD(Stub_Json, testEncodeArray); +PHP_METHOD(Stub_Json, testEncodeOptions); +PHP_METHOD(Stub_Json, testDecodeObject); +PHP_METHOD(Stub_Json, testDecodeObject2); +PHP_METHOD(Stub_Json, testDecodeArray); + +ZEPHIR_INIT_FUNCS(stub_json_method_entry) { + PHP_ME(Stub_Json, testEncodeObject, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Json, testEncodeArray, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Json, testEncodeOptions, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Json, testDecodeObject, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Json, testDecodeObject2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Json, testDecodeArray, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/logical.zep.c b/ext/stub/logical.zep.c similarity index 85% rename from ext/test/logical.zep.c rename to ext/stub/logical.zep.c index f7589d4f86..876993b0ea 100644 --- a/ext/test/logical.zep.c +++ b/ext/stub/logical.zep.c @@ -22,15 +22,15 @@ /** * Arithmetic operations */ -ZEPHIR_INIT_CLASS(Test_Logical) { +ZEPHIR_INIT_CLASS(Stub_Logical) { - ZEPHIR_REGISTER_CLASS(Test, Logical, test, logical, test_logical_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Logical, stub, logical, stub_logical_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Logical, testAnd1) { +PHP_METHOD(Stub_Logical, testAnd1) { zend_bool _0; zval *this_ptr = getThis(); @@ -45,7 +45,7 @@ PHP_METHOD(Test_Logical, testAnd1) { } -PHP_METHOD(Test_Logical, testAnd2) { +PHP_METHOD(Stub_Logical, testAnd2) { zend_bool _0; zval *this_ptr = getThis(); @@ -60,7 +60,7 @@ PHP_METHOD(Test_Logical, testAnd2) { } -PHP_METHOD(Test_Logical, testAnd3) { +PHP_METHOD(Stub_Logical, testAnd3) { zend_bool _0, _1; zval *this_ptr = getThis(); @@ -79,7 +79,7 @@ PHP_METHOD(Test_Logical, testAnd3) { } -PHP_METHOD(Test_Logical, testAnd4) { +PHP_METHOD(Stub_Logical, testAnd4) { zend_bool _0, _1; zval *this_ptr = getThis(); @@ -98,7 +98,7 @@ PHP_METHOD(Test_Logical, testAnd4) { } -PHP_METHOD(Test_Logical, testAnd9) { +PHP_METHOD(Stub_Logical, testAnd9) { zend_bool _0; zend_long b; @@ -118,14 +118,14 @@ PHP_METHOD(Test_Logical, testAnd9) { _0 = zephir_array_isset_long(a, b); } if (_0) { - zephir_array_fetch_long(&_1$$3, a, b, PH_NOISY | PH_READONLY, "test/logical.zep", 35); + zephir_array_fetch_long(&_1$$3, a, b, PH_NOISY | PH_READONLY, "stub/logical.zep", 35); RETURN_CTORW(&_1$$3); } RETURN_NULL(); } -PHP_METHOD(Test_Logical, testOr1) { +PHP_METHOD(Stub_Logical, testOr1) { zend_bool _0; zval *this_ptr = getThis(); @@ -140,7 +140,7 @@ PHP_METHOD(Test_Logical, testOr1) { } -PHP_METHOD(Test_Logical, testOr2) { +PHP_METHOD(Stub_Logical, testOr2) { zend_bool _0; zval *this_ptr = getThis(); @@ -155,7 +155,7 @@ PHP_METHOD(Test_Logical, testOr2) { } -PHP_METHOD(Test_Logical, testMixed1) { +PHP_METHOD(Stub_Logical, testMixed1) { zend_bool _0, _1; zend_long first = 0, second = 0; @@ -181,7 +181,7 @@ PHP_METHOD(Test_Logical, testMixed1) { } -PHP_METHOD(Test_Logical, testMixed2) { +PHP_METHOD(Stub_Logical, testMixed2) { zend_bool _0, _1; zval *match, match_sub, *minLength, minLength_sub, _2; @@ -201,7 +201,7 @@ PHP_METHOD(Test_Logical, testMixed2) { } _1 = _0; if (_1) { - zephir_array_fetch_long(&_2, match, 0, PH_NOISY | PH_READONLY, "test/logical.zep", 65); + zephir_array_fetch_long(&_2, match, 0, PH_NOISY | PH_READONLY, "stub/logical.zep", 65); _1 = ZEPHIR_LE_LONG(minLength, zephir_fast_strlen_ev(&_2)); } if (_1) { @@ -211,7 +211,7 @@ PHP_METHOD(Test_Logical, testMixed2) { } -PHP_METHOD(Test_Logical, testMixed3) { +PHP_METHOD(Stub_Logical, testMixed3) { zend_bool a = 0, b = 0, _0, _1, _2, _3; zval *this_ptr = getThis(); @@ -240,7 +240,7 @@ PHP_METHOD(Test_Logical, testMixed3) { } -PHP_METHOD(Test_Logical, testMixed4) { +PHP_METHOD(Stub_Logical, testMixed4) { zval *a_param = NULL, *b_param = NULL; zend_bool a, b, _0, _1, _2; diff --git a/ext/stub/logical.zep.h b/ext/stub/logical.zep.h new file mode 100644 index 0000000000..5eae6e749f --- /dev/null +++ b/ext/stub/logical.zep.h @@ -0,0 +1,58 @@ + +extern zend_class_entry *stub_logical_ce; + +ZEPHIR_INIT_CLASS(Stub_Logical); + +PHP_METHOD(Stub_Logical, testAnd1); +PHP_METHOD(Stub_Logical, testAnd2); +PHP_METHOD(Stub_Logical, testAnd3); +PHP_METHOD(Stub_Logical, testAnd4); +PHP_METHOD(Stub_Logical, testAnd9); +PHP_METHOD(Stub_Logical, testOr1); +PHP_METHOD(Stub_Logical, testOr2); +PHP_METHOD(Stub_Logical, testMixed1); +PHP_METHOD(Stub_Logical, testMixed2); +PHP_METHOD(Stub_Logical, testMixed3); +PHP_METHOD(Stub_Logical, testMixed4); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_logical_testand9, 0, 0, 2) + ZEND_ARG_INFO(0, a) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_logical_testmixed2, 0, 0, 2) + ZEND_ARG_INFO(0, match) + ZEND_ARG_INFO(0, minLength) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_logical_testmixed4, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_logical_method_entry) { + PHP_ME(Stub_Logical, testAnd1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Logical, testAnd2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Logical, testAnd3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Logical, testAnd4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Logical, testAnd9, arginfo_stub_logical_testand9, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Logical, testOr1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Logical, testOr2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Logical, testMixed1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Logical, testMixed2, arginfo_stub_logical_testmixed2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Logical, testMixed3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Logical, testMixed4, arginfo_stub_logical_testmixed4, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/mcall.zep.c b/ext/stub/mcall.zep.c similarity index 88% rename from ext/test/mcall.zep.c rename to ext/stub/mcall.zep.c index 57a59db265..2bcdd10f03 100644 --- a/ext/test/mcall.zep.c +++ b/ext/stub/mcall.zep.c @@ -24,15 +24,15 @@ /** * Method calls */ -ZEPHIR_INIT_CLASS(Test_Mcall) { +ZEPHIR_INIT_CLASS(Stub_Mcall) { - ZEPHIR_REGISTER_CLASS(Test, Mcall, test, mcall, test_mcall_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Mcall, stub, mcall, stub_mcall_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Mcall, testMethod1) { +PHP_METHOD(Stub_Mcall, testMethod1) { zval *this_ptr = getThis(); @@ -41,7 +41,7 @@ PHP_METHOD(Test_Mcall, testMethod1) { } -PHP_METHOD(Test_Mcall, testMethod2) { +PHP_METHOD(Stub_Mcall, testMethod2) { zval *this_ptr = getThis(); @@ -50,7 +50,7 @@ PHP_METHOD(Test_Mcall, testMethod2) { } -PHP_METHOD(Test_Mcall, testMethod3) { +PHP_METHOD(Stub_Mcall, testMethod3) { zval *this_ptr = getThis(); @@ -59,7 +59,7 @@ PHP_METHOD(Test_Mcall, testMethod3) { } -PHP_METHOD(Test_Mcall, testMethod4) { +PHP_METHOD(Stub_Mcall, testMethod4) { zval *a, a_sub, *b, b_sub; zval *this_ptr = getThis(); @@ -76,7 +76,7 @@ PHP_METHOD(Test_Mcall, testMethod4) { } -PHP_METHOD(Test_Mcall, testMethod5) { +PHP_METHOD(Stub_Mcall, testMethod5) { zval *a, a_sub, *b, b_sub; zval *this_ptr = getThis(); @@ -93,7 +93,7 @@ PHP_METHOD(Test_Mcall, testMethod5) { } -PHP_METHOD(Test_Mcall, testMethod6) { +PHP_METHOD(Stub_Mcall, testMethod6) { zval *a, a_sub, *b, b_sub; zval *this_ptr = getThis(); @@ -110,7 +110,7 @@ PHP_METHOD(Test_Mcall, testMethod6) { } -PHP_METHOD(Test_Mcall, testMethod7) { +PHP_METHOD(Stub_Mcall, testMethod7) { zval *this_ptr = getThis(); @@ -120,7 +120,7 @@ PHP_METHOD(Test_Mcall, testMethod7) { } -PHP_METHOD(Test_Mcall, testCall1) { +PHP_METHOD(Stub_Mcall, testCall1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -135,7 +135,7 @@ PHP_METHOD(Test_Mcall, testCall1) { } -PHP_METHOD(Test_Mcall, testCall2) { +PHP_METHOD(Stub_Mcall, testCall2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -150,7 +150,7 @@ PHP_METHOD(Test_Mcall, testCall2) { } -PHP_METHOD(Test_Mcall, testCall3) { +PHP_METHOD(Stub_Mcall, testCall3) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -165,7 +165,7 @@ PHP_METHOD(Test_Mcall, testCall3) { } -PHP_METHOD(Test_Mcall, testCall4) { +PHP_METHOD(Stub_Mcall, testCall4) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -186,7 +186,7 @@ PHP_METHOD(Test_Mcall, testCall4) { } -PHP_METHOD(Test_Mcall, testCall5) { +PHP_METHOD(Stub_Mcall, testCall5) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -207,7 +207,7 @@ PHP_METHOD(Test_Mcall, testCall5) { } -PHP_METHOD(Test_Mcall, testCall6) { +PHP_METHOD(Stub_Mcall, testCall6) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -228,7 +228,7 @@ PHP_METHOD(Test_Mcall, testCall6) { } -PHP_METHOD(Test_Mcall, testCall7) { +PHP_METHOD(Stub_Mcall, testCall7) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_1 = NULL; @@ -255,7 +255,7 @@ PHP_METHOD(Test_Mcall, testCall7) { } -PHP_METHOD(Test_Mcall, testCall8) { +PHP_METHOD(Stub_Mcall, testCall8) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_1 = NULL; @@ -282,7 +282,7 @@ PHP_METHOD(Test_Mcall, testCall8) { } -PHP_METHOD(Test_Mcall, testCall9) { +PHP_METHOD(Stub_Mcall, testCall9) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -308,7 +308,7 @@ PHP_METHOD(Test_Mcall, testCall9) { } -PHP_METHOD(Test_Mcall, testCall10) { +PHP_METHOD(Stub_Mcall, testCall10) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -323,7 +323,7 @@ PHP_METHOD(Test_Mcall, testCall10) { } -PHP_METHOD(Test_Mcall, testCall11) { +PHP_METHOD(Stub_Mcall, testCall11) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -338,7 +338,7 @@ PHP_METHOD(Test_Mcall, testCall11) { } -PHP_METHOD(Test_Mcall, testCall12) { +PHP_METHOD(Stub_Mcall, testCall12) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -353,7 +353,7 @@ PHP_METHOD(Test_Mcall, testCall12) { } -PHP_METHOD(Test_Mcall, testCall13) { +PHP_METHOD(Stub_Mcall, testCall13) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -374,7 +374,7 @@ PHP_METHOD(Test_Mcall, testCall13) { } -PHP_METHOD(Test_Mcall, testCall14) { +PHP_METHOD(Stub_Mcall, testCall14) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -395,7 +395,7 @@ PHP_METHOD(Test_Mcall, testCall14) { } -PHP_METHOD(Test_Mcall, testCall15) { +PHP_METHOD(Stub_Mcall, testCall15) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -416,7 +416,7 @@ PHP_METHOD(Test_Mcall, testCall15) { } -PHP_METHOD(Test_Mcall, testCall16) { +PHP_METHOD(Stub_Mcall, testCall16) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -437,7 +437,7 @@ PHP_METHOD(Test_Mcall, testCall16) { } -PHP_METHOD(Test_Mcall, testCall17) { +PHP_METHOD(Stub_Mcall, testCall17) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -458,7 +458,7 @@ PHP_METHOD(Test_Mcall, testCall17) { } -PHP_METHOD(Test_Mcall, testCall18) { +PHP_METHOD(Stub_Mcall, testCall18) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -473,7 +473,7 @@ PHP_METHOD(Test_Mcall, testCall18) { } -PHP_METHOD(Test_Mcall, testMethod19) { +PHP_METHOD(Stub_Mcall, testMethod19) { zval *a_param = NULL, *b_param = NULL; long a, b; @@ -490,7 +490,7 @@ PHP_METHOD(Test_Mcall, testMethod19) { } -PHP_METHOD(Test_Mcall, testCall20) { +PHP_METHOD(Stub_Mcall, testCall20) { zend_bool _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -533,7 +533,7 @@ PHP_METHOD(Test_Mcall, testCall20) { } -PHP_METHOD(Test_Mcall, testMethod21) { +PHP_METHOD(Stub_Mcall, testMethod21) { zval *a_param = NULL, *b_param = NULL; long a, b; @@ -550,7 +550,7 @@ PHP_METHOD(Test_Mcall, testMethod21) { } -PHP_METHOD(Test_Mcall, testCall22) { +PHP_METHOD(Stub_Mcall, testCall22) { zend_bool _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -593,7 +593,7 @@ PHP_METHOD(Test_Mcall, testCall22) { } -PHP_METHOD(Test_Mcall, optionalRequereString) { +PHP_METHOD(Stub_Mcall, optionalRequereString) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *param_param = NULL; @@ -621,7 +621,7 @@ PHP_METHOD(Test_Mcall, optionalRequereString) { } -PHP_METHOD(Test_Mcall, optionalParameterString) { +PHP_METHOD(Stub_Mcall, optionalParameterString) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *param_param = NULL; @@ -645,7 +645,7 @@ PHP_METHOD(Test_Mcall, optionalParameterString) { } -PHP_METHOD(Test_Mcall, optionalParameterStringNull) { +PHP_METHOD(Stub_Mcall, optionalParameterStringNull) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *param_param = NULL; @@ -669,7 +669,7 @@ PHP_METHOD(Test_Mcall, optionalParameterStringNull) { } -PHP_METHOD(Test_Mcall, optionalParameterInt) { +PHP_METHOD(Stub_Mcall, optionalParameterInt) { zval *param_param = NULL; zend_long param; @@ -689,7 +689,7 @@ PHP_METHOD(Test_Mcall, optionalParameterInt) { } -PHP_METHOD(Test_Mcall, optionalParameterVar) { +PHP_METHOD(Stub_Mcall, optionalParameterVar) { zval *param = NULL, param_sub, __$null; zval *this_ptr = getThis(); @@ -710,7 +710,7 @@ PHP_METHOD(Test_Mcall, optionalParameterVar) { } -PHP_METHOD(Test_Mcall, optionalParameterBoolTrue) { +PHP_METHOD(Stub_Mcall, optionalParameterBoolTrue) { zval *param_param = NULL; zend_bool param; @@ -730,7 +730,7 @@ PHP_METHOD(Test_Mcall, optionalParameterBoolTrue) { } -PHP_METHOD(Test_Mcall, optionalParameterBoolFalse) { +PHP_METHOD(Stub_Mcall, optionalParameterBoolFalse) { zval *param_param = NULL; zend_bool param; @@ -750,7 +750,7 @@ PHP_METHOD(Test_Mcall, optionalParameterBoolFalse) { } -PHP_METHOD(Test_Mcall, optionalParameterBoolean) { +PHP_METHOD(Stub_Mcall, optionalParameterBoolean) { zval *start_param = NULL; zend_bool start; @@ -774,7 +774,7 @@ PHP_METHOD(Test_Mcall, optionalParameterBoolean) { } -PHP_METHOD(Test_Mcall, optionalParameterBooleanNull) { +PHP_METHOD(Stub_Mcall, optionalParameterBooleanNull) { zval *value_param = NULL; zend_bool value; @@ -801,7 +801,7 @@ PHP_METHOD(Test_Mcall, optionalParameterBooleanNull) { /** * @link https://github.com/phalcon/zephir/issues/142 */ -PHP_METHOD(Test_Mcall, arrayParamWithDefaultEmptyArray) { +PHP_METHOD(Stub_Mcall, arrayParamWithDefaultEmptyArray) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *driverOptions_param = NULL; @@ -825,7 +825,7 @@ PHP_METHOD(Test_Mcall, arrayParamWithDefaultEmptyArray) { } -PHP_METHOD(Test_Mcall, arrayParamWithDefaultNullValue) { +PHP_METHOD(Stub_Mcall, arrayParamWithDefaultNullValue) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *driverOptions_param = NULL; @@ -849,7 +849,7 @@ PHP_METHOD(Test_Mcall, arrayParamWithDefaultNullValue) { } -PHP_METHOD(Test_Mcall, arrayParam) { +PHP_METHOD(Stub_Mcall, arrayParam) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *driverOptions_param = NULL; @@ -868,7 +868,7 @@ PHP_METHOD(Test_Mcall, arrayParam) { } -PHP_METHOD(Test_Mcall, objectParamCastStdClass) { +PHP_METHOD(Stub_Mcall, objectParamCastStdClass) { zval *param, param_sub; zval *this_ptr = getThis(); @@ -884,7 +884,7 @@ PHP_METHOD(Test_Mcall, objectParamCastStdClass) { } -PHP_METHOD(Test_Mcall, objectParamCastOoParam) { +PHP_METHOD(Stub_Mcall, objectParamCastOoParam) { zval *param, param_sub; zval *this_ptr = getThis(); @@ -900,7 +900,7 @@ PHP_METHOD(Test_Mcall, objectParamCastOoParam) { } -PHP_METHOD(Test_Mcall, bb) { +PHP_METHOD(Stub_Mcall, bb) { zval *this_ptr = getThis(); @@ -909,7 +909,7 @@ PHP_METHOD(Test_Mcall, bb) { } -PHP_METHOD(Test_Mcall, testCallablePass) { +PHP_METHOD(Stub_Mcall, testCallablePass) { zval a, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -922,21 +922,21 @@ PHP_METHOD(Test_Mcall, testCallablePass) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&a); - object_init_ex(&a, test_oo_ooparams_ce); + object_init_ex(&a, stub_oo_ooparams_ce); if (zephir_has_constructor(&a)) { ZEPHIR_CALL_METHOD(NULL, &a, "__construct", NULL, 0); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_0); ZEPHIR_INIT_NVAR(&_0); - zephir_create_closure_ex(&_0, NULL, test_11__closure_ce, SL("__invoke")); + zephir_create_closure_ex(&_0, NULL, stub_11__closure_ce, SL("__invoke")); ZEPHIR_RETURN_CALL_METHOD(&a, "setcallable", NULL, 50, &_0); zephir_check_call_status(); RETURN_MM(); } -PHP_METHOD(Test_Mcall, testCallableArrayThisMethodPass) { +PHP_METHOD(Stub_Mcall, testCallableArrayThisMethodPass) { zval _0; zval a, _1; @@ -951,7 +951,7 @@ PHP_METHOD(Test_Mcall, testCallableArrayThisMethodPass) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&a); - object_init_ex(&a, test_oo_ooparams_ce); + object_init_ex(&a, stub_oo_ooparams_ce); if (zephir_has_constructor(&a)) { ZEPHIR_CALL_METHOD(NULL, &a, "__construct", NULL, 0); zephir_check_call_status(); @@ -968,7 +968,7 @@ PHP_METHOD(Test_Mcall, testCallableArrayThisMethodPass) { } -PHP_METHOD(Test_Mcall, aa) { +PHP_METHOD(Stub_Mcall, aa) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -980,7 +980,7 @@ PHP_METHOD(Test_Mcall, aa) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&a); - object_init_ex(&a, test_mcall_ce); + object_init_ex(&a, stub_mcall_ce); if (zephir_has_constructor(&a)) { ZEPHIR_CALL_METHOD(NULL, &a, "__construct", NULL, 0); zephir_check_call_status(); diff --git a/ext/stub/mcall.zep.h b/ext/stub/mcall.zep.h new file mode 100644 index 0000000000..6c305b2b43 --- /dev/null +++ b/ext/stub/mcall.zep.h @@ -0,0 +1,312 @@ + +extern zend_class_entry *stub_mcall_ce; + +ZEPHIR_INIT_CLASS(Stub_Mcall); + +PHP_METHOD(Stub_Mcall, testMethod1); +PHP_METHOD(Stub_Mcall, testMethod2); +PHP_METHOD(Stub_Mcall, testMethod3); +PHP_METHOD(Stub_Mcall, testMethod4); +PHP_METHOD(Stub_Mcall, testMethod5); +PHP_METHOD(Stub_Mcall, testMethod6); +PHP_METHOD(Stub_Mcall, testMethod7); +PHP_METHOD(Stub_Mcall, testCall1); +PHP_METHOD(Stub_Mcall, testCall2); +PHP_METHOD(Stub_Mcall, testCall3); +PHP_METHOD(Stub_Mcall, testCall4); +PHP_METHOD(Stub_Mcall, testCall5); +PHP_METHOD(Stub_Mcall, testCall6); +PHP_METHOD(Stub_Mcall, testCall7); +PHP_METHOD(Stub_Mcall, testCall8); +PHP_METHOD(Stub_Mcall, testCall9); +PHP_METHOD(Stub_Mcall, testCall10); +PHP_METHOD(Stub_Mcall, testCall11); +PHP_METHOD(Stub_Mcall, testCall12); +PHP_METHOD(Stub_Mcall, testCall13); +PHP_METHOD(Stub_Mcall, testCall14); +PHP_METHOD(Stub_Mcall, testCall15); +PHP_METHOD(Stub_Mcall, testCall16); +PHP_METHOD(Stub_Mcall, testCall17); +PHP_METHOD(Stub_Mcall, testCall18); +PHP_METHOD(Stub_Mcall, testMethod19); +PHP_METHOD(Stub_Mcall, testCall20); +PHP_METHOD(Stub_Mcall, testMethod21); +PHP_METHOD(Stub_Mcall, testCall22); +PHP_METHOD(Stub_Mcall, optionalRequereString); +PHP_METHOD(Stub_Mcall, optionalParameterString); +PHP_METHOD(Stub_Mcall, optionalParameterStringNull); +PHP_METHOD(Stub_Mcall, optionalParameterInt); +PHP_METHOD(Stub_Mcall, optionalParameterVar); +PHP_METHOD(Stub_Mcall, optionalParameterBoolTrue); +PHP_METHOD(Stub_Mcall, optionalParameterBoolFalse); +PHP_METHOD(Stub_Mcall, optionalParameterBoolean); +PHP_METHOD(Stub_Mcall, optionalParameterBooleanNull); +PHP_METHOD(Stub_Mcall, arrayParamWithDefaultEmptyArray); +PHP_METHOD(Stub_Mcall, arrayParamWithDefaultNullValue); +PHP_METHOD(Stub_Mcall, arrayParam); +PHP_METHOD(Stub_Mcall, objectParamCastStdClass); +PHP_METHOD(Stub_Mcall, objectParamCastOoParam); +PHP_METHOD(Stub_Mcall, bb); +PHP_METHOD(Stub_Mcall, testCallablePass); +PHP_METHOD(Stub_Mcall, testCallableArrayThisMethodPass); +PHP_METHOD(Stub_Mcall, aa); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testmethod4, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testmethod5, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testmethod6, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_stub_mcall_testmethod7, 0, 0, stdClass, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_mcall_testmethod7, 0, 0, IS_OBJECT, "stdClass", 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testcall4, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testcall5, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testcall6, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testcall7, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testcall8, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testcall9, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testcall13, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testcall14, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testcall15, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testcall16, 0, 0, 2) + ZEND_ARG_INFO(0, c) + ZEND_ARG_INFO(0, d) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testcall17, 0, 0, 2) + ZEND_ARG_INFO(0, c) + ZEND_ARG_INFO(0, d) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testmethod19, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testcall20, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, k, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, k) +#endif + ZEND_ARG_INFO(0, p) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testmethod21, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_testcall22, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, k, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, k) +#endif + ZEND_ARG_INFO(0, p) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_optionalrequerestring, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, param, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, param) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_optionalparameterstring, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, param, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, param) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_optionalparameterstringnull, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, param, IS_STRING, 1) +#else + ZEND_ARG_INFO(0, param) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_optionalparameterint, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, param, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, param) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_optionalparametervar, 0, 0, 0) + ZEND_ARG_INFO(0, param) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_optionalparameterbooltrue, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, param, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, param) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_optionalparameterboolfalse, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, param, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, param) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_optionalparameterboolean, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, start, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, start) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_optionalparameterbooleannull, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, value, _IS_BOOL, 1) +#else + ZEND_ARG_INFO(0, value) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_arrayparamwithdefaultemptyarray, 0, 0, 0) + ZEND_ARG_ARRAY_INFO(0, driverOptions, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_arrayparamwithdefaultnullvalue, 0, 0, 0) + ZEND_ARG_ARRAY_INFO(0, driverOptions, 1) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_arrayparam, 0, 0, 1) + ZEND_ARG_ARRAY_INFO(0, driverOptions, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_objectparamcaststdclass, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, param, StdClass, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_objectparamcastooparam, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, param, Stub\\Oo\\Param, 0) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_mcall_method_entry) { + PHP_ME(Stub_Mcall, testMethod1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testMethod2, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Stub_Mcall, testMethod3, NULL, ZEND_ACC_PRIVATE) + PHP_ME(Stub_Mcall, testMethod4, arginfo_stub_mcall_testmethod4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testMethod5, arginfo_stub_mcall_testmethod5, ZEND_ACC_PROTECTED) + PHP_ME(Stub_Mcall, testMethod6, arginfo_stub_mcall_testmethod6, ZEND_ACC_PRIVATE) + PHP_ME(Stub_Mcall, testMethod7, arginfo_stub_mcall_testmethod7, ZEND_ACC_PRIVATE) + PHP_ME(Stub_Mcall, testCall1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall4, arginfo_stub_mcall_testcall4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall5, arginfo_stub_mcall_testcall5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall6, arginfo_stub_mcall_testcall6, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall7, arginfo_stub_mcall_testcall7, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall8, arginfo_stub_mcall_testcall8, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall9, arginfo_stub_mcall_testcall9, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall10, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall11, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall12, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall13, arginfo_stub_mcall_testcall13, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall14, arginfo_stub_mcall_testcall14, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall15, arginfo_stub_mcall_testcall15, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall16, arginfo_stub_mcall_testcall16, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall17, arginfo_stub_mcall_testcall17, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall18, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testMethod19, arginfo_stub_mcall_testmethod19, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCall20, arginfo_stub_mcall_testcall20, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testMethod21, arginfo_stub_mcall_testmethod21, ZEND_ACC_PRIVATE) + PHP_ME(Stub_Mcall, testCall22, arginfo_stub_mcall_testcall22, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, optionalRequereString, arginfo_stub_mcall_optionalrequerestring, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, optionalParameterString, arginfo_stub_mcall_optionalparameterstring, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, optionalParameterStringNull, arginfo_stub_mcall_optionalparameterstringnull, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, optionalParameterInt, arginfo_stub_mcall_optionalparameterint, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, optionalParameterVar, arginfo_stub_mcall_optionalparametervar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, optionalParameterBoolTrue, arginfo_stub_mcall_optionalparameterbooltrue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, optionalParameterBoolFalse, arginfo_stub_mcall_optionalparameterboolfalse, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, optionalParameterBoolean, arginfo_stub_mcall_optionalparameterboolean, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, optionalParameterBooleanNull, arginfo_stub_mcall_optionalparameterbooleannull, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, arrayParamWithDefaultEmptyArray, arginfo_stub_mcall_arrayparamwithdefaultemptyarray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, arrayParamWithDefaultNullValue, arginfo_stub_mcall_arrayparamwithdefaultnullvalue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, arrayParam, arginfo_stub_mcall_arrayparam, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, objectParamCastStdClass, arginfo_stub_mcall_objectparamcaststdclass, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, objectParamCastOoParam, arginfo_stub_mcall_objectparamcastooparam, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, bb, NULL, ZEND_ACC_PRIVATE) + PHP_ME(Stub_Mcall, testCallablePass, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, testCallableArrayThisMethodPass, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Mcall, aa, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/mcall/caller.zep.c b/ext/stub/mcall/caller.zep.c similarity index 77% rename from ext/test/mcall/caller.zep.c rename to ext/stub/mcall/caller.zep.c index 98e4185dcc..f7e6262244 100644 --- a/ext/test/mcall/caller.zep.c +++ b/ext/stub/mcall/caller.zep.c @@ -17,15 +17,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Mcall_Caller) { +ZEPHIR_INIT_CLASS(Stub_Mcall_Caller) { - ZEPHIR_REGISTER_CLASS(Test\\Mcall, Caller, test, mcall_caller, test_mcall_caller_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Mcall, Caller, stub, mcall_caller, stub_mcall_caller_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Mcall_Caller, start) { +PHP_METHOD(Stub_Mcall_Caller, start) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -45,7 +45,7 @@ PHP_METHOD(Test_Mcall_Caller, start) { } -PHP_METHOD(Test_Mcall_Caller, perform) { +PHP_METHOD(Stub_Mcall_Caller, perform) { zval *this_ptr = getThis(); diff --git a/ext/stub/mcall/caller.zep.h b/ext/stub/mcall/caller.zep.h new file mode 100644 index 0000000000..3cb187c012 --- /dev/null +++ b/ext/stub/mcall/caller.zep.h @@ -0,0 +1,24 @@ + +extern zend_class_entry *stub_mcall_caller_ce; + +ZEPHIR_INIT_CLASS(Stub_Mcall_Caller); + +PHP_METHOD(Stub_Mcall_Caller, start); +PHP_METHOD(Stub_Mcall_Caller, perform); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcall_caller_start, 0, 0, 1) + ZEND_ARG_INFO(0, f) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_mcall_caller_perform, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_mcall_caller_perform, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_mcall_caller_method_entry) { + PHP_ME(Stub_Mcall_Caller, start, arginfo_stub_mcall_caller_start, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Mcall_Caller, perform, arginfo_stub_mcall_caller_perform, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/mcallchained.zep.c b/ext/stub/mcallchained.zep.c similarity index 79% rename from ext/test/mcallchained.zep.c rename to ext/stub/mcallchained.zep.c index 30e048ed64..d0c6219b78 100644 --- a/ext/test/mcallchained.zep.c +++ b/ext/stub/mcallchained.zep.c @@ -20,17 +20,17 @@ /** * Chained method calls */ -ZEPHIR_INIT_CLASS(Test_McallChained) { +ZEPHIR_INIT_CLASS(Stub_McallChained) { - ZEPHIR_REGISTER_CLASS(Test, McallChained, test, mcallchained, test_mcallchained_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, McallChained, stub, mcallchained, stub_mcallchained_method_entry, 0); - zend_declare_property_null(test_mcallchained_ce, SL("temp"), ZEND_ACC_PRIVATE); + zend_declare_property_null(stub_mcallchained_ce, SL("temp"), ZEND_ACC_PRIVATE); return SUCCESS; } -PHP_METHOD(Test_McallChained, testMethod1) { +PHP_METHOD(Stub_McallChained, testMethod1) { zval *this_ptr = getThis(); @@ -39,7 +39,7 @@ PHP_METHOD(Test_McallChained, testMethod1) { } -PHP_METHOD(Test_McallChained, testMethod2) { +PHP_METHOD(Stub_McallChained, testMethod2) { zval *this_ptr = getThis(); @@ -48,7 +48,7 @@ PHP_METHOD(Test_McallChained, testMethod2) { } -PHP_METHOD(Test_McallChained, testMethod3) { +PHP_METHOD(Stub_McallChained, testMethod3) { zval *this_ptr = getThis(); @@ -57,7 +57,7 @@ PHP_METHOD(Test_McallChained, testMethod3) { } -PHP_METHOD(Test_McallChained, testChained1) { +PHP_METHOD(Stub_McallChained, testChained1) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -76,7 +76,7 @@ PHP_METHOD(Test_McallChained, testChained1) { } -PHP_METHOD(Test_McallChained, testChained2) { +PHP_METHOD(Stub_McallChained, testChained2) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -98,7 +98,7 @@ PHP_METHOD(Test_McallChained, testChained2) { } -PHP_METHOD(Test_McallChained, testChained3) { +PHP_METHOD(Stub_McallChained, testChained3) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -120,7 +120,7 @@ PHP_METHOD(Test_McallChained, testChained3) { } -PHP_METHOD(Test_McallChained, testChained4) { +PHP_METHOD(Stub_McallChained, testChained4) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -133,7 +133,7 @@ PHP_METHOD(Test_McallChained, testChained4) { ZEPHIR_MM_GROW(); zephir_update_property_zval(this_ptr, ZEND_STRL("temp"), this_ptr); - zephir_read_property(&_0, this_ptr, SL("temp"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("temp"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_1, &_0, "testmethod1", NULL, 0); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(&_1, "testmethod2", NULL, 0); diff --git a/ext/stub/mcallchained.zep.h b/ext/stub/mcallchained.zep.h new file mode 100644 index 0000000000..773299631c --- /dev/null +++ b/ext/stub/mcallchained.zep.h @@ -0,0 +1,23 @@ + +extern zend_class_entry *stub_mcallchained_ce; + +ZEPHIR_INIT_CLASS(Stub_McallChained); + +PHP_METHOD(Stub_McallChained, testMethod1); +PHP_METHOD(Stub_McallChained, testMethod2); +PHP_METHOD(Stub_McallChained, testMethod3); +PHP_METHOD(Stub_McallChained, testChained1); +PHP_METHOD(Stub_McallChained, testChained2); +PHP_METHOD(Stub_McallChained, testChained3); +PHP_METHOD(Stub_McallChained, testChained4); + +ZEPHIR_INIT_FUNCS(stub_mcallchained_method_entry) { + PHP_ME(Stub_McallChained, testMethod1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_McallChained, testMethod2, NULL, ZEND_ACC_PROTECTED) + PHP_ME(Stub_McallChained, testMethod3, NULL, ZEND_ACC_PRIVATE) + PHP_ME(Stub_McallChained, testChained1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_McallChained, testChained2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_McallChained, testChained3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_McallChained, testChained4, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/mcalldynamic.zep.c b/ext/stub/mcalldynamic.zep.c similarity index 80% rename from ext/test/mcalldynamic.zep.c rename to ext/stub/mcalldynamic.zep.c index bd906fdbfd..901b9dbcf0 100644 --- a/ext/test/mcalldynamic.zep.c +++ b/ext/stub/mcalldynamic.zep.c @@ -22,15 +22,15 @@ /** * Method calls */ -ZEPHIR_INIT_CLASS(Test_McallDynamic) { +ZEPHIR_INIT_CLASS(Stub_McallDynamic) { - ZEPHIR_REGISTER_CLASS(Test, McallDynamic, test, mcalldynamic, test_mcalldynamic_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, McallDynamic, stub, mcalldynamic, stub_mcalldynamic_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_McallDynamic, testMethod1) { +PHP_METHOD(Stub_McallDynamic, testMethod1) { zval *this_ptr = getThis(); @@ -39,7 +39,7 @@ PHP_METHOD(Test_McallDynamic, testMethod1) { } -PHP_METHOD(Test_McallDynamic, testMagicCall1) { +PHP_METHOD(Stub_McallDynamic, testMagicCall1) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -60,7 +60,7 @@ PHP_METHOD(Test_McallDynamic, testMagicCall1) { } -PHP_METHOD(Test_McallDynamic, __call) { +PHP_METHOD(Stub_McallDynamic, __call) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -87,7 +87,7 @@ PHP_METHOD(Test_McallDynamic, __call) { /** * @link https://github.com/phalcon/zephir/issues/1751 */ -PHP_METHOD(Test_McallDynamic, testCallAnonymousFunctionWithContext) { +PHP_METHOD(Stub_McallDynamic, testCallAnonymousFunctionWithContext) { zval result, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -102,8 +102,8 @@ PHP_METHOD(Test_McallDynamic, testCallAnonymousFunctionWithContext) { ZEPHIR_INIT_VAR(&_1); ZEPHIR_INIT_NVAR(&_1); - zephir_create_closure_ex(&_1, NULL, test_12__closure_ce, SL("__invoke")); - ZEPHIR_CALL_CE_STATIC(&result, test_mcall_caller_ce, "start", &_0, 0, &_1); + zephir_create_closure_ex(&_1, NULL, stub_12__closure_ce, SL("__invoke")); + ZEPHIR_CALL_CE_STATIC(&result, stub_mcall_caller_ce, "start", &_0, 0, &_1); zephir_check_call_status(); RETURN_CCTOR(&result); diff --git a/ext/stub/mcalldynamic.zep.h b/ext/stub/mcalldynamic.zep.h new file mode 100644 index 0000000000..6d86ab0bea --- /dev/null +++ b/ext/stub/mcalldynamic.zep.h @@ -0,0 +1,22 @@ + +extern zend_class_entry *stub_mcalldynamic_ce; + +ZEPHIR_INIT_CLASS(Stub_McallDynamic); + +PHP_METHOD(Stub_McallDynamic, testMethod1); +PHP_METHOD(Stub_McallDynamic, testMagicCall1); +PHP_METHOD(Stub_McallDynamic, __call); +PHP_METHOD(Stub_McallDynamic, testCallAnonymousFunctionWithContext); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcalldynamic___call, 0, 0, 2) + ZEND_ARG_INFO(0, method) + ZEND_ARG_INFO(0, arguments) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_mcalldynamic_method_entry) { + PHP_ME(Stub_McallDynamic, testMethod1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_McallDynamic, testMagicCall1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_McallDynamic, __call, arginfo_stub_mcalldynamic___call, ZEND_ACC_PUBLIC) + PHP_ME(Stub_McallDynamic, testCallAnonymousFunctionWithContext, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/mcallinternal.zep.c b/ext/stub/mcallinternal.zep.c similarity index 82% rename from ext/test/mcallinternal.zep.c rename to ext/stub/mcallinternal.zep.c index 93eeceaab5..1fde57fa09 100644 --- a/ext/test/mcallinternal.zep.c +++ b/ext/stub/mcallinternal.zep.c @@ -22,15 +22,15 @@ /** * Method calls */ -ZEPHIR_INIT_CLASS(Test_McallInternal) { +ZEPHIR_INIT_CLASS(Stub_McallInternal) { - ZEPHIR_REGISTER_CLASS(Test, McallInternal, test, mcallinternal, test_mcallinternal_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, McallInternal, stub, mcallinternal, stub_mcallinternal_method_entry, 0); return SUCCESS; } -void zep_Test_McallInternal_a(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used) { +void zep_Stub_McallInternal_a(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -44,7 +44,7 @@ void zep_Test_McallInternal_a(int ht, zend_execute_data *execute_data, zval *ret } -void zep_Test_McallInternal_b(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used, zval *a_ext , zval *b_ext ) { +void zep_Stub_McallInternal_b(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used, zval *a_ext , zval *b_ext ) { zval *a, a_sub, *b, b_sub; ZVAL_UNDEF(&a_sub); @@ -60,7 +60,7 @@ void zep_Test_McallInternal_b(int ht, zend_execute_data *execute_data, zval *ret } -void zep_Test_McallInternal_c(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used, zval *a_param_ext, zval *b_param_ext) { +void zep_Stub_McallInternal_c(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used, zval *a_param_ext, zval *b_param_ext) { zval *a_param = NULL, *b_param = NULL; long a, b; @@ -78,7 +78,7 @@ void zep_Test_McallInternal_c(int ht, zend_execute_data *execute_data, zval *ret } -PHP_METHOD(Test_McallInternal, e) { +PHP_METHOD(Stub_McallInternal, e) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -94,7 +94,7 @@ PHP_METHOD(Test_McallInternal, e) { } -PHP_METHOD(Test_McallInternal, d) { +PHP_METHOD(Stub_McallInternal, d) { zval _3$$3; zend_bool _0; @@ -121,7 +121,7 @@ PHP_METHOD(Test_McallInternal, d) { _0 = 1; } i = _1; - ZEPHIR_CALL_INTERNAL_METHOD_P0(&_3$$3, this_ptr, zep_Test_McallInternal_a); + ZEPHIR_CALL_INTERNAL_METHOD_P0(&_3$$3, this_ptr, zep_Stub_McallInternal_a); zephir_check_call_status(); a += zephir_get_intval(&_3$$3); } @@ -130,7 +130,7 @@ PHP_METHOD(Test_McallInternal, d) { } -PHP_METHOD(Test_McallInternal, f) { +PHP_METHOD(Stub_McallInternal, f) { zval _3$$3; zend_bool _0; @@ -167,7 +167,7 @@ PHP_METHOD(Test_McallInternal, f) { } -PHP_METHOD(Test_McallInternal, g) { +PHP_METHOD(Stub_McallInternal, g) { zval _3$$3, _4$$3, _5$$3; zend_bool _0; @@ -199,7 +199,7 @@ PHP_METHOD(Test_McallInternal, g) { i = _1; ZVAL_LONG(&_4$$3, i); ZVAL_LONG(&_5$$3, i); - ZEPHIR_CALL_INTERNAL_METHOD_P2(&_3$$3, this_ptr, zep_Test_McallInternal_c, &_4$$3, &_5$$3); + ZEPHIR_CALL_INTERNAL_METHOD_P2(&_3$$3, this_ptr, zep_Stub_McallInternal_c, &_4$$3, &_5$$3); zephir_check_call_status(); a += zephir_get_intval(&_3$$3); } @@ -208,7 +208,7 @@ PHP_METHOD(Test_McallInternal, g) { } -void zep_Test_McallInternal_other(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used, zval *a_param_ext, zval *b_param_ext) { +void zep_Stub_McallInternal_other(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used, zval *a_param_ext, zval *b_param_ext) { zval *a_param = NULL, *b_param = NULL; long a, b; @@ -226,7 +226,7 @@ void zep_Test_McallInternal_other(int ht, zend_execute_data *execute_data, zval } -PHP_METHOD(Test_McallInternal, callFibonacci) { +PHP_METHOD(Stub_McallInternal, callFibonacci) { zval _3$$3, _4$$3, _5$$3; zend_bool _0; @@ -260,7 +260,7 @@ PHP_METHOD(Test_McallInternal, callFibonacci) { i = _1; ZVAL_LONG(&_4$$3, i); ZVAL_LONG(&_5$$3, (i + 1)); - ZEPHIR_CALL_INTERNAL_METHOD_P2(&_3$$3, this_ptr, zep_Test_McallInternal_other, &_4$$3, &_5$$3); + ZEPHIR_CALL_INTERNAL_METHOD_P2(&_3$$3, this_ptr, zep_Stub_McallInternal_other, &_4$$3, &_5$$3); zephir_check_call_status(); p += zephir_get_doubleval(&_3$$3); } @@ -269,7 +269,7 @@ PHP_METHOD(Test_McallInternal, callFibonacci) { } -void zep_Test_McallInternal_test1956(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used) { +void zep_Stub_McallInternal_test1956(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used) { @@ -277,7 +277,7 @@ void zep_Test_McallInternal_test1956(int ht, zend_execute_data *execute_data, zv } -PHP_METHOD(Test_McallInternal, issue1956) { +PHP_METHOD(Stub_McallInternal, issue1956) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -286,7 +286,7 @@ PHP_METHOD(Test_McallInternal, issue1956) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P0(this_ptr, zep_Test_McallInternal_test1956); + ZEPHIR_RETURN_CALL_INTERNAL_METHOD_P0(this_ptr, zep_Stub_McallInternal_test1956); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/stub/mcallinternal.zep.h b/ext/stub/mcallinternal.zep.h new file mode 100644 index 0000000000..ce8f4bc740 --- /dev/null +++ b/ext/stub/mcallinternal.zep.h @@ -0,0 +1,82 @@ + +extern zend_class_entry *stub_mcallinternal_ce; + +ZEPHIR_INIT_CLASS(Stub_McallInternal); + +void zep_Stub_McallInternal_a(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used); +void zep_Stub_McallInternal_b(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used, zval *a_ext , zval *b_ext ); +void zep_Stub_McallInternal_c(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used, zval *a_param_ext, zval *b_param_ext); +PHP_METHOD(Stub_McallInternal, e); +PHP_METHOD(Stub_McallInternal, d); +PHP_METHOD(Stub_McallInternal, f); +PHP_METHOD(Stub_McallInternal, g); +void zep_Stub_McallInternal_other(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used, zval *a_param_ext, zval *b_param_ext); +PHP_METHOD(Stub_McallInternal, callFibonacci); +void zep_Stub_McallInternal_test1956(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used); +PHP_METHOD(Stub_McallInternal, issue1956); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcallinternal_b, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_mcallinternal_c, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_mcallinternal_other, 0, 2, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_mcallinternal_other, 0, 2, IS_DOUBLE, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_mcallinternal_callfibonacci, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_mcallinternal_callfibonacci, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_stub_mcallinternal_test1956, 0, 0, Stub\\McallInternal, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_mcallinternal_test1956, 0, 0, IS_OBJECT, "Stub\\McallInternal", 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_stub_mcallinternal_issue1956, 0, 0, Stub\\McallInternal, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_mcallinternal_issue1956, 0, 0, IS_OBJECT, "Stub\\McallInternal", 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_mcallinternal_method_entry) { + PHP_ME(Stub_McallInternal, e, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_McallInternal, d, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_McallInternal, f, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_McallInternal, g, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_McallInternal, callFibonacci, arginfo_stub_mcallinternal_callfibonacci, ZEND_ACC_PUBLIC) + PHP_ME(Stub_McallInternal, issue1956, arginfo_stub_mcallinternal_issue1956, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/methodabstract.zep.c b/ext/stub/methodabstract.zep.c similarity index 68% rename from ext/test/methodabstract.zep.c rename to ext/stub/methodabstract.zep.c index 705227b4d5..f429a300c8 100644 --- a/ext/test/methodabstract.zep.c +++ b/ext/stub/methodabstract.zep.c @@ -17,16 +17,16 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_MethodAbstract) { +ZEPHIR_INIT_CLASS(Stub_MethodAbstract) { - ZEPHIR_REGISTER_CLASS(Test, MethodAbstract, test, methodabstract, test_methodabstract_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + ZEPHIR_REGISTER_CLASS(Stub, MethodAbstract, stub, methodabstract, stub_methodabstract_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); - zend_class_implements(test_methodabstract_ce, 1, test_methodinterface_ce); + zend_class_implements(stub_methodabstract_ce, 1, stub_methodinterface_ce); return SUCCESS; } -PHP_METHOD(Test_MethodAbstract, testInterfaceMetho) { +PHP_METHOD(Stub_MethodAbstract, testInterfaceMetho) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; diff --git a/ext/stub/methodabstract.zep.h b/ext/stub/methodabstract.zep.h new file mode 100644 index 0000000000..9cb54f3405 --- /dev/null +++ b/ext/stub/methodabstract.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_methodabstract_ce; + +ZEPHIR_INIT_CLASS(Stub_MethodAbstract); + +PHP_METHOD(Stub_MethodAbstract, testInterfaceMetho); + +ZEPHIR_INIT_FUNCS(stub_methodabstract_method_entry) { + PHP_ME(Stub_MethodAbstract, testInterfaceMetho, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/methodargs.zep.c b/ext/stub/methodargs.zep.c similarity index 81% rename from ext/test/methodargs.zep.c rename to ext/stub/methodargs.zep.c index 38a61f8d64..781b449fd6 100644 --- a/ext/test/methodargs.zep.c +++ b/ext/stub/methodargs.zep.c @@ -19,25 +19,25 @@ #include "kernel/operators.h" -ZEPHIR_INIT_CLASS(Test_MethodArgs) { +ZEPHIR_INIT_CLASS(Stub_MethodArgs) { - ZEPHIR_REGISTER_CLASS(Test, MethodArgs, test, methodargs, test_methodargs_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, MethodArgs, stub, methodargs, stub_methodargs_method_entry, 0); - zend_declare_property_null(test_methodargs_ce, SL("a"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_methodargs_ce, SL("a"), ZEND_ACC_PUBLIC); - zephir_declare_class_constant_string(test_methodargs_ce, SL("GET"), "get"); + zephir_declare_class_constant_string(stub_methodargs_ce, SL("GET"), "get"); - zephir_declare_class_constant_double(test_methodargs_ce, SL("MY_DOUBLE"), 1.32); + zephir_declare_class_constant_double(stub_methodargs_ce, SL("MY_DOUBLE"), 1.32); - zephir_declare_class_constant_bool(test_methodargs_ce, SL("MY_BOOL"), 1); + zephir_declare_class_constant_bool(stub_methodargs_ce, SL("MY_BOOL"), 1); - zephir_declare_class_constant_long(test_methodargs_ce, SL("MY_INT"), 12345); + zephir_declare_class_constant_long(stub_methodargs_ce, SL("MY_INT"), 12345); return SUCCESS; } -PHP_METHOD(Test_MethodArgs, setCallable) { +PHP_METHOD(Stub_MethodArgs, setCallable) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -52,7 +52,7 @@ PHP_METHOD(Test_MethodArgs, setCallable) { } -PHP_METHOD(Test_MethodArgs, setObject) { +PHP_METHOD(Stub_MethodArgs, setObject) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -67,7 +67,7 @@ PHP_METHOD(Test_MethodArgs, setObject) { } -PHP_METHOD(Test_MethodArgs, setCallableStrict) { +PHP_METHOD(Stub_MethodArgs, setCallableStrict) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -86,7 +86,7 @@ PHP_METHOD(Test_MethodArgs, setCallableStrict) { } -PHP_METHOD(Test_MethodArgs, setObjectStrict) { +PHP_METHOD(Stub_MethodArgs, setObjectStrict) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -105,7 +105,7 @@ PHP_METHOD(Test_MethodArgs, setObjectStrict) { } -PHP_METHOD(Test_MethodArgs, setResourceStrict) { +PHP_METHOD(Stub_MethodArgs, setResourceStrict) { zval *a, a_sub; zval *this_ptr = getThis(); @@ -127,7 +127,7 @@ PHP_METHOD(Test_MethodArgs, setResourceStrict) { /** * @link https://github.com/phalcon/zephir/issues/336 */ -PHP_METHOD(Test_MethodArgs, methodOptionalValueWithDefaultStaticConstantAccess) { +PHP_METHOD(Stub_MethodArgs, methodOptionalValueWithDefaultStaticConstantAccess) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *method = NULL, method_sub; @@ -154,7 +154,7 @@ PHP_METHOD(Test_MethodArgs, methodOptionalValueWithDefaultStaticConstantAccess) * For string parameter * @link https://github.com/phalcon/zephir/issues/696 */ -PHP_METHOD(Test_MethodArgs, methodOptionalStringValueWithDefaultStaticConstantAccess) { +PHP_METHOD(Stub_MethodArgs, methodOptionalStringValueWithDefaultStaticConstantAccess) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *parameter_param = NULL; @@ -182,7 +182,7 @@ PHP_METHOD(Test_MethodArgs, methodOptionalStringValueWithDefaultStaticConstantAc * For double parameter * @link https://github.com/phalcon/zephir/issues/696 */ -PHP_METHOD(Test_MethodArgs, methodOptionalDoubleValueWithDefaultStaticConstantAccess) { +PHP_METHOD(Stub_MethodArgs, methodOptionalDoubleValueWithDefaultStaticConstantAccess) { zval *parameter_param = NULL; double parameter; @@ -206,7 +206,7 @@ PHP_METHOD(Test_MethodArgs, methodOptionalDoubleValueWithDefaultStaticConstantAc * For bool parameter * @link https://github.com/phalcon/zephir/issues/696 */ -PHP_METHOD(Test_MethodArgs, methodOptionalBoolValueWithDefaultStaticConstantAccess) { +PHP_METHOD(Stub_MethodArgs, methodOptionalBoolValueWithDefaultStaticConstantAccess) { zval *parameter_param = NULL; zend_bool parameter; @@ -230,7 +230,7 @@ PHP_METHOD(Test_MethodArgs, methodOptionalBoolValueWithDefaultStaticConstantAcce * For int parameter * @link https://github.com/phalcon/zephir/issues/728 */ -PHP_METHOD(Test_MethodArgs, methodOptionalIntValueWithDefaultStaticConstantAccess) { +PHP_METHOD(Stub_MethodArgs, methodOptionalIntValueWithDefaultStaticConstantAccess) { zval *parameter_param = NULL; zend_long parameter; diff --git a/ext/stub/methodargs.zep.h b/ext/stub/methodargs.zep.h new file mode 100644 index 0000000000..d8e5fb7ee9 --- /dev/null +++ b/ext/stub/methodargs.zep.h @@ -0,0 +1,85 @@ + +extern zend_class_entry *stub_methodargs_ce; + +ZEPHIR_INIT_CLASS(Stub_MethodArgs); + +PHP_METHOD(Stub_MethodArgs, setCallable); +PHP_METHOD(Stub_MethodArgs, setObject); +PHP_METHOD(Stub_MethodArgs, setCallableStrict); +PHP_METHOD(Stub_MethodArgs, setObjectStrict); +PHP_METHOD(Stub_MethodArgs, setResourceStrict); +PHP_METHOD(Stub_MethodArgs, methodOptionalValueWithDefaultStaticConstantAccess); +PHP_METHOD(Stub_MethodArgs, methodOptionalStringValueWithDefaultStaticConstantAccess); +PHP_METHOD(Stub_MethodArgs, methodOptionalDoubleValueWithDefaultStaticConstantAccess); +PHP_METHOD(Stub_MethodArgs, methodOptionalBoolValueWithDefaultStaticConstantAccess); +PHP_METHOD(Stub_MethodArgs, methodOptionalIntValueWithDefaultStaticConstantAccess); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_methodargs_setcallable, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_methodargs_setobject, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_methodargs_setcallablestrict, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_methodargs_setobjectstrict, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_methodargs_setresourcestrict, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_methodargs_methodoptionalvaluewithdefaultstaticconstantaccess, 0, 0, 0) + ZEND_ARG_INFO(0, method) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_methodargs_methodoptionalstringvaluewithdefaultstaticconstantaccess, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, parameter, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, parameter) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_methodargs_methodoptionaldoublevaluewithdefaultstaticconstantaccess, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, parameter, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, parameter) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_methodargs_methodoptionalboolvaluewithdefaultstaticconstantaccess, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, parameter, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, parameter) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_methodargs_methodoptionalintvaluewithdefaultstaticconstantaccess, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, parameter, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, parameter) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_methodargs_method_entry) { + PHP_ME(Stub_MethodArgs, setCallable, arginfo_stub_methodargs_setcallable, ZEND_ACC_PUBLIC) + PHP_ME(Stub_MethodArgs, setObject, arginfo_stub_methodargs_setobject, ZEND_ACC_PUBLIC) + PHP_ME(Stub_MethodArgs, setCallableStrict, arginfo_stub_methodargs_setcallablestrict, ZEND_ACC_PUBLIC) + PHP_ME(Stub_MethodArgs, setObjectStrict, arginfo_stub_methodargs_setobjectstrict, ZEND_ACC_PUBLIC) + PHP_ME(Stub_MethodArgs, setResourceStrict, arginfo_stub_methodargs_setresourcestrict, ZEND_ACC_PUBLIC) + PHP_ME(Stub_MethodArgs, methodOptionalValueWithDefaultStaticConstantAccess, arginfo_stub_methodargs_methodoptionalvaluewithdefaultstaticconstantaccess, ZEND_ACC_PUBLIC) + PHP_ME(Stub_MethodArgs, methodOptionalStringValueWithDefaultStaticConstantAccess, arginfo_stub_methodargs_methodoptionalstringvaluewithdefaultstaticconstantaccess, ZEND_ACC_PUBLIC) + PHP_ME(Stub_MethodArgs, methodOptionalDoubleValueWithDefaultStaticConstantAccess, arginfo_stub_methodargs_methodoptionaldoublevaluewithdefaultstaticconstantaccess, ZEND_ACC_PUBLIC) + PHP_ME(Stub_MethodArgs, methodOptionalBoolValueWithDefaultStaticConstantAccess, arginfo_stub_methodargs_methodoptionalboolvaluewithdefaultstaticconstantaccess, ZEND_ACC_PUBLIC) + PHP_ME(Stub_MethodArgs, methodOptionalIntValueWithDefaultStaticConstantAccess, arginfo_stub_methodargs_methodoptionalintvaluewithdefaultstaticconstantaccess, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/methodinterface.zep.c b/ext/stub/methodinterface.zep.c similarity index 50% rename from ext/test/methodinterface.zep.c rename to ext/stub/methodinterface.zep.c index bfc88a4e97..2ff6ef57d7 100644 --- a/ext/test/methodinterface.zep.c +++ b/ext/stub/methodinterface.zep.c @@ -12,13 +12,13 @@ #include "kernel/main.h" -ZEPHIR_INIT_CLASS(Test_MethodInterface) { +ZEPHIR_INIT_CLASS(Stub_MethodInterface) { - ZEPHIR_REGISTER_INTERFACE(Test, MethodInterface, test, methodinterface, test_methodinterface_method_entry); + ZEPHIR_REGISTER_INTERFACE(Stub, MethodInterface, stub, methodinterface, stub_methodinterface_method_entry); return SUCCESS; } -ZEPHIR_DOC_METHOD(Test_MethodInterface, testMethod); +ZEPHIR_DOC_METHOD(Stub_MethodInterface, testMethod); diff --git a/ext/stub/methodinterface.zep.h b/ext/stub/methodinterface.zep.h new file mode 100644 index 0000000000..737fd19726 --- /dev/null +++ b/ext/stub/methodinterface.zep.h @@ -0,0 +1,9 @@ + +extern zend_class_entry *stub_methodinterface_ce; + +ZEPHIR_INIT_CLASS(Stub_MethodInterface); + +ZEPHIR_INIT_FUNCS(stub_methodinterface_method_entry) { + PHP_ABSTRACT_ME(Stub_MethodInterface, testMethod, NULL) + PHP_FE_END +}; diff --git a/ext/test/nativearray.zep.c b/ext/stub/nativearray.zep.c similarity index 86% rename from ext/test/nativearray.zep.c rename to ext/stub/nativearray.zep.c index a2c6c2c981..65b5ab2d61 100644 --- a/ext/test/nativearray.zep.c +++ b/ext/stub/nativearray.zep.c @@ -20,18 +20,18 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_NativeArray) { +ZEPHIR_INIT_CLASS(Stub_NativeArray) { - ZEPHIR_REGISTER_CLASS(Test, NativeArray, test, nativearray, test_nativearray_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, NativeArray, stub, nativearray, stub_nativearray_method_entry, 0); - zend_declare_property_null(test_nativearray_ce, SL("prefixes"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_nativearray_ce, SL("prefixes"), ZEND_ACC_PROTECTED); - test_nativearray_ce->create_object = zephir_init_properties_Test_NativeArray; + stub_nativearray_ce->create_object = zephir_init_properties_Stub_NativeArray; return SUCCESS; } -PHP_METHOD(Test_NativeArray, testArray1) { +PHP_METHOD(Stub_NativeArray, testArray1) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -47,7 +47,7 @@ PHP_METHOD(Test_NativeArray, testArray1) { } -PHP_METHOD(Test_NativeArray, testArray2) { +PHP_METHOD(Stub_NativeArray, testArray2) { zval a, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -73,7 +73,7 @@ PHP_METHOD(Test_NativeArray, testArray2) { } -PHP_METHOD(Test_NativeArray, testArray3) { +PHP_METHOD(Stub_NativeArray, testArray3) { zval a, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -99,7 +99,7 @@ PHP_METHOD(Test_NativeArray, testArray3) { } -PHP_METHOD(Test_NativeArray, testArray4) { +PHP_METHOD(Stub_NativeArray, testArray4) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$false, __$true, a; @@ -120,7 +120,7 @@ PHP_METHOD(Test_NativeArray, testArray4) { } -PHP_METHOD(Test_NativeArray, testArray5) { +PHP_METHOD(Stub_NativeArray, testArray5) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, a; @@ -140,7 +140,7 @@ PHP_METHOD(Test_NativeArray, testArray5) { } -PHP_METHOD(Test_NativeArray, testArray6) { +PHP_METHOD(Stub_NativeArray, testArray6) { zval a, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -166,7 +166,7 @@ PHP_METHOD(Test_NativeArray, testArray6) { } -PHP_METHOD(Test_NativeArray, testArray7) { +PHP_METHOD(Stub_NativeArray, testArray7) { zend_long a = 0, b = 0, c = 0; zval d, _0; @@ -196,7 +196,7 @@ PHP_METHOD(Test_NativeArray, testArray7) { } -PHP_METHOD(Test_NativeArray, testArray8) { +PHP_METHOD(Stub_NativeArray, testArray8) { double a = 0, b = 0, c = 0; zval d, _0; @@ -226,7 +226,7 @@ PHP_METHOD(Test_NativeArray, testArray8) { } -PHP_METHOD(Test_NativeArray, testArray9) { +PHP_METHOD(Stub_NativeArray, testArray9) { zend_bool a = 0, b = 0, c = 0; zval d, _0; @@ -256,7 +256,7 @@ PHP_METHOD(Test_NativeArray, testArray9) { } -PHP_METHOD(Test_NativeArray, testArray10) { +PHP_METHOD(Stub_NativeArray, testArray10) { zval a, b, c; zval d; @@ -285,7 +285,7 @@ PHP_METHOD(Test_NativeArray, testArray10) { } -PHP_METHOD(Test_NativeArray, testArray11) { +PHP_METHOD(Stub_NativeArray, testArray11) { zval a, b, c, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -328,7 +328,7 @@ PHP_METHOD(Test_NativeArray, testArray11) { } -PHP_METHOD(Test_NativeArray, testArray12) { +PHP_METHOD(Stub_NativeArray, testArray12) { zval a, b, c, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -362,7 +362,7 @@ PHP_METHOD(Test_NativeArray, testArray12) { } -PHP_METHOD(Test_NativeArray, testArray13) { +PHP_METHOD(Stub_NativeArray, testArray13) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -381,7 +381,7 @@ PHP_METHOD(Test_NativeArray, testArray13) { } -PHP_METHOD(Test_NativeArray, testArray14) { +PHP_METHOD(Stub_NativeArray, testArray14) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -400,7 +400,7 @@ PHP_METHOD(Test_NativeArray, testArray14) { } -PHP_METHOD(Test_NativeArray, testArray15) { +PHP_METHOD(Stub_NativeArray, testArray15) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$true, __$false, a; @@ -421,7 +421,7 @@ PHP_METHOD(Test_NativeArray, testArray15) { } -PHP_METHOD(Test_NativeArray, testArray16) { +PHP_METHOD(Stub_NativeArray, testArray16) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -440,7 +440,7 @@ PHP_METHOD(Test_NativeArray, testArray16) { } -PHP_METHOD(Test_NativeArray, testArray17) { +PHP_METHOD(Stub_NativeArray, testArray17) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, a; @@ -460,7 +460,7 @@ PHP_METHOD(Test_NativeArray, testArray17) { } -PHP_METHOD(Test_NativeArray, testArray18) { +PHP_METHOD(Stub_NativeArray, testArray18) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -479,7 +479,7 @@ PHP_METHOD(Test_NativeArray, testArray18) { } -PHP_METHOD(Test_NativeArray, testArray19) { +PHP_METHOD(Stub_NativeArray, testArray19) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$true, __$false, a; @@ -500,7 +500,7 @@ PHP_METHOD(Test_NativeArray, testArray19) { } -PHP_METHOD(Test_NativeArray, testArray20) { +PHP_METHOD(Stub_NativeArray, testArray20) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -519,7 +519,7 @@ PHP_METHOD(Test_NativeArray, testArray20) { } -PHP_METHOD(Test_NativeArray, testArray21) { +PHP_METHOD(Stub_NativeArray, testArray21) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, a; @@ -539,7 +539,7 @@ PHP_METHOD(Test_NativeArray, testArray21) { } -PHP_METHOD(Test_NativeArray, testArray22) { +PHP_METHOD(Stub_NativeArray, testArray22) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -558,7 +558,7 @@ PHP_METHOD(Test_NativeArray, testArray22) { } -PHP_METHOD(Test_NativeArray, testArray23) { +PHP_METHOD(Stub_NativeArray, testArray23) { zend_long b = 0; zval a, _0; @@ -586,7 +586,7 @@ PHP_METHOD(Test_NativeArray, testArray23) { } -PHP_METHOD(Test_NativeArray, testArray24) { +PHP_METHOD(Stub_NativeArray, testArray24) { double b = 0; zval a, _0; @@ -614,7 +614,7 @@ PHP_METHOD(Test_NativeArray, testArray24) { } -PHP_METHOD(Test_NativeArray, testArray25) { +PHP_METHOD(Stub_NativeArray, testArray25) { zend_bool b = 0; zval a, _0; @@ -642,7 +642,7 @@ PHP_METHOD(Test_NativeArray, testArray25) { } -PHP_METHOD(Test_NativeArray, testArray26) { +PHP_METHOD(Stub_NativeArray, testArray26) { zval a, b; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -664,7 +664,7 @@ PHP_METHOD(Test_NativeArray, testArray26) { } -PHP_METHOD(Test_NativeArray, testArray27) { +PHP_METHOD(Stub_NativeArray, testArray27) { zval b; zval a; @@ -687,7 +687,7 @@ PHP_METHOD(Test_NativeArray, testArray27) { } -PHP_METHOD(Test_NativeArray, testArray28) { +PHP_METHOD(Stub_NativeArray, testArray28) { zval b; zval a; @@ -710,7 +710,7 @@ PHP_METHOD(Test_NativeArray, testArray28) { } -PHP_METHOD(Test_NativeArray, testArray29) { +PHP_METHOD(Stub_NativeArray, testArray29) { long b = 0; zval a; @@ -729,7 +729,7 @@ PHP_METHOD(Test_NativeArray, testArray29) { } -PHP_METHOD(Test_NativeArray, testArray30) { +PHP_METHOD(Stub_NativeArray, testArray30) { zval b; zval a; @@ -750,7 +750,7 @@ PHP_METHOD(Test_NativeArray, testArray30) { } -PHP_METHOD(Test_NativeArray, testArrayAccess1) { +PHP_METHOD(Stub_NativeArray, testArrayAccess1) { zval a, b, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -773,12 +773,12 @@ PHP_METHOD(Test_NativeArray, testArrayAccess1) { ZEPHIR_INIT_NVAR(&_0); ZVAL_LONG(&_0, 3); zephir_array_fast_append(&a, &_0); - zephir_array_fetch_long(&b, &a, 0, PH_NOISY | PH_READONLY, "test/nativearray.zep", 245); + zephir_array_fetch_long(&b, &a, 0, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 245); RETURN_CTOR(&b); } -PHP_METHOD(Test_NativeArray, testArrayAccess2) { +PHP_METHOD(Stub_NativeArray, testArrayAccess2) { zval a, b; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -794,12 +794,12 @@ PHP_METHOD(Test_NativeArray, testArrayAccess2) { add_assoc_long_ex(&a, SL("a"), 1); add_assoc_long_ex(&a, SL("b"), 2); add_assoc_long_ex(&a, SL("c"), 3); - zephir_array_fetch_string(&b, &a, SL("a"), PH_NOISY | PH_READONLY, "test/nativearray.zep", 255); + zephir_array_fetch_string(&b, &a, SL("a"), PH_NOISY | PH_READONLY, "stub/nativearray.zep", 255); RETURN_CTOR(&b); } -PHP_METHOD(Test_NativeArray, testArrayAccess3) { +PHP_METHOD(Stub_NativeArray, testArrayAccess3) { long c = 0; zval a, b, _0; @@ -824,12 +824,12 @@ PHP_METHOD(Test_NativeArray, testArrayAccess3) { ZVAL_LONG(&_0, 3); zephir_array_fast_append(&a, &_0); c = 0; - zephir_array_fetch_long(&b, &a, c, PH_NOISY | PH_READONLY, "test/nativearray.zep", 267); + zephir_array_fetch_long(&b, &a, c, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 267); RETURN_CTOR(&b); } -PHP_METHOD(Test_NativeArray, testArrayAccess4) { +PHP_METHOD(Stub_NativeArray, testArrayAccess4) { zval c; zval a, b; @@ -849,12 +849,12 @@ PHP_METHOD(Test_NativeArray, testArrayAccess4) { add_assoc_long_ex(&a, SL("c"), 3); ZEPHIR_INIT_VAR(&c); ZVAL_STRING(&c, "a"); - zephir_array_fetch(&b, &a, &c, PH_NOISY | PH_READONLY, "test/nativearray.zep", 279); + zephir_array_fetch(&b, &a, &c, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 279); RETURN_CTOR(&b); } -PHP_METHOD(Test_NativeArray, testArrayAccess5) { +PHP_METHOD(Stub_NativeArray, testArrayAccess5) { zval a, b, c; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -873,12 +873,12 @@ PHP_METHOD(Test_NativeArray, testArrayAccess5) { add_assoc_long_ex(&a, SL("c"), 3); ZEPHIR_INIT_VAR(&c); ZVAL_STRING(&c, "a"); - zephir_array_fetch(&b, &a, &c, PH_NOISY | PH_READONLY, "test/nativearray.zep", 290); + zephir_array_fetch(&b, &a, &c, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 290); RETURN_CTOR(&b); } -PHP_METHOD(Test_NativeArray, testArrayAccess6) { +PHP_METHOD(Stub_NativeArray, testArrayAccess6) { zval a, b, _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -896,15 +896,15 @@ PHP_METHOD(Test_NativeArray, testArrayAccess6) { add_assoc_long_ex(&a, SL("a"), 1); add_assoc_long_ex(&a, SL("b"), 2); add_assoc_long_ex(&a, SL("c"), 3); - zephir_array_fetch_string(&_0, &a, SL("a"), PH_NOISY | PH_READONLY, "test/nativearray.zep", 300); - zephir_array_fetch_string(&_1, &a, SL("b"), PH_NOISY | PH_READONLY, "test/nativearray.zep", 300); + zephir_array_fetch_string(&_0, &a, SL("a"), PH_NOISY | PH_READONLY, "stub/nativearray.zep", 300); + zephir_array_fetch_string(&_1, &a, SL("b"), PH_NOISY | PH_READONLY, "stub/nativearray.zep", 300); ZEPHIR_INIT_VAR(&b); zephir_add_function(&b, &_0, &_1); RETURN_CCTOR(&b); } -PHP_METHOD(Test_NativeArray, testArrayMultipleAccess1) { +PHP_METHOD(Stub_NativeArray, testArrayMultipleAccess1) { zval _0; zval a, b, _1; @@ -925,13 +925,13 @@ PHP_METHOD(Test_NativeArray, testArrayMultipleAccess1) { add_index_stringl(&_0, 0, SL("a")); add_index_stringl(&_0, 1, SL("b")); zephir_array_update_long(&a, 0, &_0, PH_COPY ZEPHIR_DEBUG_PARAMS_DUMMY); - zephir_array_fetch_long(&_1, &a, 0, PH_NOISY | PH_READONLY, "test/nativearray.zep", 310); - zephir_array_fetch_long(&b, &_1, 0, PH_NOISY | PH_READONLY, "test/nativearray.zep", 310); + zephir_array_fetch_long(&_1, &a, 0, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 310); + zephir_array_fetch_long(&b, &_1, 0, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 310); RETURN_CTOR(&b); } -PHP_METHOD(Test_NativeArray, testArrayMultipleAccess2) { +PHP_METHOD(Stub_NativeArray, testArrayMultipleAccess2) { zval _0; zval a, b, _1, _2; @@ -957,13 +957,13 @@ PHP_METHOD(Test_NativeArray, testArrayMultipleAccess2) { ZVAL_STRING(&_1, "b"); zephir_array_fast_append(&_0, &_1); zephir_array_fast_append(&a, &_0); - zephir_array_fetch_long(&_2, &a, 0, PH_NOISY | PH_READONLY, "test/nativearray.zep", 320); - zephir_array_fetch_long(&b, &_2, 1, PH_NOISY | PH_READONLY, "test/nativearray.zep", 320); + zephir_array_fetch_long(&_2, &a, 0, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 320); + zephir_array_fetch_long(&b, &_2, 1, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 320); RETURN_CTOR(&b); } -PHP_METHOD(Test_NativeArray, testArrayMultipleAccess3) { +PHP_METHOD(Stub_NativeArray, testArrayMultipleAccess3) { zval _0, _1; zval a, b, _2, _3, _4; @@ -994,14 +994,14 @@ PHP_METHOD(Test_NativeArray, testArrayMultipleAccess3) { zephir_array_fast_append(&_1, &_2); zephir_array_fast_append(&_0, &_1); zephir_array_fast_append(&a, &_0); - zephir_array_fetch_long(&_3, &a, 0, PH_NOISY | PH_READONLY, "test/nativearray.zep", 330); - zephir_array_fetch_long(&_4, &_3, 0, PH_NOISY | PH_READONLY, "test/nativearray.zep", 330); - zephir_array_fetch_long(&b, &_4, 1, PH_NOISY | PH_READONLY, "test/nativearray.zep", 330); + zephir_array_fetch_long(&_3, &a, 0, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 330); + zephir_array_fetch_long(&_4, &_3, 0, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 330); + zephir_array_fetch_long(&b, &_4, 1, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 330); RETURN_CTOR(&b); } -PHP_METHOD(Test_NativeArray, testArrayMultipleAccess4) { +PHP_METHOD(Stub_NativeArray, testArrayMultipleAccess4) { zval _0, _1; zval a, b, _2, _3, _4; @@ -1032,14 +1032,14 @@ PHP_METHOD(Test_NativeArray, testArrayMultipleAccess4) { zephir_array_fast_append(&_1, &_2); zephir_array_fast_append(&_0, &_1); zephir_array_fast_append(&a, &_0); - zephir_array_fetch_long(&_3, &a, 0, PH_NOISY | PH_READONLY, "test/nativearray.zep", 340); - zephir_array_fetch_long(&_4, &_3, 0, PH_NOISY | PH_READONLY, "test/nativearray.zep", 340); - zephir_array_fetch_long(&b, &_4, 1, PH_NOISY | PH_READONLY, "test/nativearray.zep", 340); + zephir_array_fetch_long(&_3, &a, 0, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 340); + zephir_array_fetch_long(&_4, &_3, 0, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 340); + zephir_array_fetch_long(&b, &_4, 1, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 340); RETURN_CTOR(&b); } -PHP_METHOD(Test_NativeArray, testArrayMultipleAccess5) { +PHP_METHOD(Stub_NativeArray, testArrayMultipleAccess5) { zval _0, _1; zval a, b, _2, _3; @@ -1065,14 +1065,14 @@ PHP_METHOD(Test_NativeArray, testArrayMultipleAccess5) { add_assoc_long_ex(&_1, SL("d"), 1); zephir_array_update_string(&_0, SL("b"), &_1, PH_COPY | PH_SEPARATE); zephir_array_update_string(&a, SL("a"), &_0, PH_COPY | PH_SEPARATE); - zephir_array_fetch_string(&_2, &a, SL("a"), PH_NOISY | PH_READONLY, "test/nativearray.zep", 350); - zephir_array_fetch_string(&_3, &_2, SL("b"), PH_NOISY | PH_READONLY, "test/nativearray.zep", 350); - zephir_array_fetch_string(&b, &_3, SL("c"), PH_NOISY | PH_READONLY, "test/nativearray.zep", 350); + zephir_array_fetch_string(&_2, &a, SL("a"), PH_NOISY | PH_READONLY, "stub/nativearray.zep", 350); + zephir_array_fetch_string(&_3, &_2, SL("b"), PH_NOISY | PH_READONLY, "stub/nativearray.zep", 350); + zephir_array_fetch_string(&b, &_3, SL("c"), PH_NOISY | PH_READONLY, "stub/nativearray.zep", 350); RETURN_CTOR(&b); } -PHP_METHOD(Test_NativeArray, testArrayUpdate1) { +PHP_METHOD(Stub_NativeArray, testArrayUpdate1) { zval a, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1101,7 +1101,7 @@ PHP_METHOD(Test_NativeArray, testArrayUpdate1) { } -PHP_METHOD(Test_NativeArray, testArrayUpdate2) { +PHP_METHOD(Stub_NativeArray, testArrayUpdate2) { zend_long b = 0; zval a, _0; @@ -1132,7 +1132,7 @@ PHP_METHOD(Test_NativeArray, testArrayUpdate2) { } -PHP_METHOD(Test_NativeArray, testArrayUpdate3) { +PHP_METHOD(Stub_NativeArray, testArrayUpdate3) { zend_long b = 0; zval a, _0, _1; @@ -1168,7 +1168,7 @@ PHP_METHOD(Test_NativeArray, testArrayUpdate3) { } -PHP_METHOD(Test_NativeArray, testArrayUpdate4) { +PHP_METHOD(Stub_NativeArray, testArrayUpdate4) { zval a, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1191,7 +1191,7 @@ PHP_METHOD(Test_NativeArray, testArrayUpdate4) { } -PHP_METHOD(Test_NativeArray, testArrayUpdate5) { +PHP_METHOD(Stub_NativeArray, testArrayUpdate5) { zval _1, _2, _3; zval a, _0; @@ -1257,7 +1257,7 @@ PHP_METHOD(Test_NativeArray, testArrayUpdate5) { } -PHP_METHOD(Test_NativeArray, testArrayAppend1) { +PHP_METHOD(Stub_NativeArray, testArrayAppend1) { zval _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1275,17 +1275,17 @@ PHP_METHOD(Test_NativeArray, testArrayAppend1) { array_init(&a); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "hello"); - zephir_array_append(&a, &_0, PH_SEPARATE, "test/nativearray.zep", 402); - zephir_array_append(&a, &__$null, PH_SEPARATE, "test/nativearray.zep", 402); + zephir_array_append(&a, &_0, PH_SEPARATE, "stub/nativearray.zep", 402); + zephir_array_append(&a, &__$null, PH_SEPARATE, "stub/nativearray.zep", 402); ZEPHIR_INIT_NVAR(&_0); ZVAL_BOOL(&_0, 0); - zephir_array_append(&a, &_0, PH_SEPARATE, "test/nativearray.zep", 402); + zephir_array_append(&a, &_0, PH_SEPARATE, "stub/nativearray.zep", 402); ZEPHIR_INIT_NVAR(&_0); ZVAL_DOUBLE(&_0, 1.10); - zephir_array_append(&a, &_0, PH_SEPARATE, "test/nativearray.zep", 402); + zephir_array_append(&a, &_0, PH_SEPARATE, "stub/nativearray.zep", 402); ZEPHIR_INIT_NVAR(&_0); ZVAL_LONG(&_0, 5); - zephir_array_append(&a, &_0, PH_SEPARATE, "test/nativearray.zep", 402); + zephir_array_append(&a, &_0, PH_SEPARATE, "stub/nativearray.zep", 402); ZEPHIR_INIT_VAR(&_1); zephir_create_array(&_1, 3, 0); ZEPHIR_INIT_NVAR(&_0); @@ -1297,12 +1297,12 @@ PHP_METHOD(Test_NativeArray, testArrayAppend1) { ZEPHIR_INIT_NVAR(&_0); ZVAL_LONG(&_0, 3); zephir_array_fast_append(&_1, &_0); - zephir_array_append(&a, &_1, PH_SEPARATE, "test/nativearray.zep", 402); + zephir_array_append(&a, &_1, PH_SEPARATE, "stub/nativearray.zep", 402); RETURN_CCTOR(&a); } -PHP_METHOD(Test_NativeArray, testArrayAppend2) { +PHP_METHOD(Stub_NativeArray, testArrayAppend2) { zend_long f; double e; @@ -1340,23 +1340,23 @@ PHP_METHOD(Test_NativeArray, testArrayAppend2) { zephir_array_fast_append(&g, &_0); ZEPHIR_INIT_VAR(&a); array_init(&a); - zephir_array_append(&a, &b, PH_SEPARATE, "test/nativearray.zep", 409); - zephir_array_append(&a, &c, PH_SEPARATE, "test/nativearray.zep", 409); + zephir_array_append(&a, &b, PH_SEPARATE, "stub/nativearray.zep", 409); + zephir_array_append(&a, &c, PH_SEPARATE, "stub/nativearray.zep", 409); ZEPHIR_INIT_NVAR(&_0); ZVAL_BOOL(&_0, d); - zephir_array_append(&a, &_0, PH_SEPARATE, "test/nativearray.zep", 409); + zephir_array_append(&a, &_0, PH_SEPARATE, "stub/nativearray.zep", 409); ZEPHIR_INIT_NVAR(&_0); ZVAL_DOUBLE(&_0, e); - zephir_array_append(&a, &_0, PH_SEPARATE, "test/nativearray.zep", 409); + zephir_array_append(&a, &_0, PH_SEPARATE, "stub/nativearray.zep", 409); ZEPHIR_INIT_NVAR(&_0); ZVAL_LONG(&_0, f); - zephir_array_append(&a, &_0, PH_SEPARATE, "test/nativearray.zep", 409); - zephir_array_append(&a, &g, PH_SEPARATE, "test/nativearray.zep", 409); + zephir_array_append(&a, &_0, PH_SEPARATE, "stub/nativearray.zep", 409); + zephir_array_append(&a, &g, PH_SEPARATE, "stub/nativearray.zep", 409); RETURN_CCTOR(&a); } -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate1) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, a; @@ -1374,7 +1374,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate1) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate2) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, a; @@ -1392,7 +1392,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate2) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate3) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate3) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, a; @@ -1410,7 +1410,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate3) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate4) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate4) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, a; @@ -1428,7 +1428,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate4) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate5) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate5) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, a; @@ -1446,7 +1446,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate5) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate6) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate6) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, a; @@ -1464,7 +1464,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate6) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate7) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate7) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$true, __$false, a; @@ -1484,7 +1484,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate7) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate8) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate8) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, __$true, __$false, a; @@ -1506,7 +1506,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate8) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate9) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate9) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, __$true, __$false, a; @@ -1528,7 +1528,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate9) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate10) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate10) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, __$true, __$false, a; @@ -1550,7 +1550,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate10) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate11) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate11) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, a, b, c; @@ -1574,7 +1574,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate11) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate12) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate12) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, a, b, c, d; @@ -1601,7 +1601,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate12) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate13) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate13) { zval b, c, d, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1643,7 +1643,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate13) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayAppend1) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayAppend1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$null, a, b; @@ -1664,7 +1664,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayAppend1) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayAppend2) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayAppend2) { zval x; zend_long b; @@ -1688,7 +1688,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayAppend2) { } -PHP_METHOD(Test_NativeArray, testMultipleArrayAppend3) { +PHP_METHOD(Stub_NativeArray, testMultipleArrayAppend3) { zval _2; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1734,7 +1734,7 @@ PHP_METHOD(Test_NativeArray, testMultipleArrayAppend3) { } -PHP_METHOD(Test_NativeArray, testArrayKeys) { +PHP_METHOD(Stub_NativeArray, testArrayKeys) { zval *param, param_sub; zval *this_ptr = getThis(); @@ -1750,7 +1750,7 @@ PHP_METHOD(Test_NativeArray, testArrayKeys) { } -PHP_METHOD(Test_NativeArray, testImplodeArray) { +PHP_METHOD(Stub_NativeArray, testImplodeArray) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *param, param_sub, _0; @@ -1774,7 +1774,7 @@ PHP_METHOD(Test_NativeArray, testImplodeArray) { /** * @link https://github.com/phalcon/zephir/issues/110 */ -PHP_METHOD(Test_NativeArray, issue110) { +PHP_METHOD(Stub_NativeArray, issue110) { zval byteUnits, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1803,7 +1803,7 @@ PHP_METHOD(Test_NativeArray, issue110) { } -PHP_METHOD(Test_NativeArray, issue264) { +PHP_METHOD(Stub_NativeArray, issue264) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *tokens_param = NULL; @@ -1822,7 +1822,7 @@ PHP_METHOD(Test_NativeArray, issue264) { } -PHP_METHOD(Test_NativeArray, issue743a) { +PHP_METHOD(Stub_NativeArray, issue743a) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *current743a_param = NULL, _0; @@ -1845,7 +1845,7 @@ PHP_METHOD(Test_NativeArray, issue743a) { } -PHP_METHOD(Test_NativeArray, issue743b) { +PHP_METHOD(Stub_NativeArray, issue743b) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *current_param = NULL, _0; @@ -1868,7 +1868,7 @@ PHP_METHOD(Test_NativeArray, issue743b) { } -PHP_METHOD(Test_NativeArray, issue743c) { +PHP_METHOD(Stub_NativeArray, issue743c) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *current_param = NULL, key, _0; @@ -1897,7 +1897,7 @@ PHP_METHOD(Test_NativeArray, issue743c) { /** * @link https://github.com/phalcon/zephir/issues/709 */ -PHP_METHOD(Test_NativeArray, issue709) { +PHP_METHOD(Stub_NativeArray, issue709) { zend_bool works, _0, _7$$3; zval c, arr, _3$$3, _4$$3, _5$$3; @@ -1940,7 +1940,7 @@ PHP_METHOD(Test_NativeArray, issue709) { zephir_array_fast_append(&arr, &_3$$3); ZEPHIR_CALL_FUNCTION(&_5$$3, "array_rand", &_6, 53, &arr); zephir_check_call_status(); - zephir_array_fetch(&_4$$3, &arr, &_5$$3, PH_NOISY | PH_READONLY, "test/nativearray.zep", 626); + zephir_array_fetch(&_4$$3, &arr, &_5$$3, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 626); ZEPHIR_CPY_WRT(&arr, &_4$$3); _7$$3 = ZEPHIR_LT_LONG(&arr, 0); if (!(_7$$3)) { @@ -1955,7 +1955,7 @@ PHP_METHOD(Test_NativeArray, issue709) { } -PHP_METHOD(Test_NativeArray, Issue1140) { +PHP_METHOD(Stub_NativeArray, Issue1140) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -1977,14 +1977,14 @@ PHP_METHOD(Test_NativeArray, Issue1140) { zephir_get_strval(&baseDir, baseDir_param); - zephir_read_property(&_0, this_ptr, SL("prefixes"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("prefixes"), PH_NOISY_CC | PH_READONLY); if (!(zephir_array_isset(&_0, &prefix))) { ZEPHIR_INIT_VAR(&_1$$3); array_init(&_1$$3); zephir_update_property_array(this_ptr, SL("prefixes"), &prefix, &_1$$3); } - zephir_read_property(&_2, this_ptr, SL("prefixes"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch(&_3, &_2, &prefix, PH_NOISY | PH_READONLY, "test/nativearray.zep", 639); + zephir_read_property(&_2, this_ptr, ZEND_STRL("prefixes"), PH_NOISY_CC | PH_READONLY); + zephir_array_fetch(&_3, &_2, &prefix, PH_NOISY | PH_READONLY, "stub/nativearray.zep", 639); ZEPHIR_MAKE_REF(&_3); ZEPHIR_CALL_FUNCTION(NULL, "array_push", NULL, 54, &_3, &baseDir); ZEPHIR_UNREF(&_3); @@ -1993,7 +1993,7 @@ PHP_METHOD(Test_NativeArray, Issue1140) { } -PHP_METHOD(Test_NativeArray, Issue1159) { +PHP_METHOD(Stub_NativeArray, Issue1159) { zval myvar, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -2014,7 +2014,7 @@ PHP_METHOD(Test_NativeArray, Issue1159) { } -zend_object *zephir_init_properties_Test_NativeArray(zend_class_entry *class_type TSRMLS_DC) { +zend_object *zephir_init_properties_Stub_NativeArray(zend_class_entry *class_type TSRMLS_DC) { zval _0, _1$$3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -2026,11 +2026,11 @@ zend_object *zephir_init_properties_Test_NativeArray(zend_class_entry *class_typ { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); - zephir_read_property(&_0, this_ptr, SL("prefixes"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_0, this_ptr, ZEND_STRL("prefixes"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_0) == IS_NULL) { ZEPHIR_INIT_VAR(&_1$$3); array_init(&_1$$3); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("prefixes"), &_1$$3); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("prefixes"), &_1$$3); } ZEPHIR_MM_RESTORE(); return Z_OBJ_P(this_ptr); diff --git a/ext/stub/nativearray.zep.h b/ext/stub/nativearray.zep.h new file mode 100644 index 0000000000..163237bede --- /dev/null +++ b/ext/stub/nativearray.zep.h @@ -0,0 +1,681 @@ + +extern zend_class_entry *stub_nativearray_ce; + +ZEPHIR_INIT_CLASS(Stub_NativeArray); + +PHP_METHOD(Stub_NativeArray, testArray1); +PHP_METHOD(Stub_NativeArray, testArray2); +PHP_METHOD(Stub_NativeArray, testArray3); +PHP_METHOD(Stub_NativeArray, testArray4); +PHP_METHOD(Stub_NativeArray, testArray5); +PHP_METHOD(Stub_NativeArray, testArray6); +PHP_METHOD(Stub_NativeArray, testArray7); +PHP_METHOD(Stub_NativeArray, testArray8); +PHP_METHOD(Stub_NativeArray, testArray9); +PHP_METHOD(Stub_NativeArray, testArray10); +PHP_METHOD(Stub_NativeArray, testArray11); +PHP_METHOD(Stub_NativeArray, testArray12); +PHP_METHOD(Stub_NativeArray, testArray13); +PHP_METHOD(Stub_NativeArray, testArray14); +PHP_METHOD(Stub_NativeArray, testArray15); +PHP_METHOD(Stub_NativeArray, testArray16); +PHP_METHOD(Stub_NativeArray, testArray17); +PHP_METHOD(Stub_NativeArray, testArray18); +PHP_METHOD(Stub_NativeArray, testArray19); +PHP_METHOD(Stub_NativeArray, testArray20); +PHP_METHOD(Stub_NativeArray, testArray21); +PHP_METHOD(Stub_NativeArray, testArray22); +PHP_METHOD(Stub_NativeArray, testArray23); +PHP_METHOD(Stub_NativeArray, testArray24); +PHP_METHOD(Stub_NativeArray, testArray25); +PHP_METHOD(Stub_NativeArray, testArray26); +PHP_METHOD(Stub_NativeArray, testArray27); +PHP_METHOD(Stub_NativeArray, testArray28); +PHP_METHOD(Stub_NativeArray, testArray29); +PHP_METHOD(Stub_NativeArray, testArray30); +PHP_METHOD(Stub_NativeArray, testArrayAccess1); +PHP_METHOD(Stub_NativeArray, testArrayAccess2); +PHP_METHOD(Stub_NativeArray, testArrayAccess3); +PHP_METHOD(Stub_NativeArray, testArrayAccess4); +PHP_METHOD(Stub_NativeArray, testArrayAccess5); +PHP_METHOD(Stub_NativeArray, testArrayAccess6); +PHP_METHOD(Stub_NativeArray, testArrayMultipleAccess1); +PHP_METHOD(Stub_NativeArray, testArrayMultipleAccess2); +PHP_METHOD(Stub_NativeArray, testArrayMultipleAccess3); +PHP_METHOD(Stub_NativeArray, testArrayMultipleAccess4); +PHP_METHOD(Stub_NativeArray, testArrayMultipleAccess5); +PHP_METHOD(Stub_NativeArray, testArrayUpdate1); +PHP_METHOD(Stub_NativeArray, testArrayUpdate2); +PHP_METHOD(Stub_NativeArray, testArrayUpdate3); +PHP_METHOD(Stub_NativeArray, testArrayUpdate4); +PHP_METHOD(Stub_NativeArray, testArrayUpdate5); +PHP_METHOD(Stub_NativeArray, testArrayAppend1); +PHP_METHOD(Stub_NativeArray, testArrayAppend2); +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate1); +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate2); +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate3); +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate4); +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate5); +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate6); +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate7); +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate8); +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate9); +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate10); +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate11); +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate12); +PHP_METHOD(Stub_NativeArray, testMultipleArrayUpdate13); +PHP_METHOD(Stub_NativeArray, testMultipleArrayAppend1); +PHP_METHOD(Stub_NativeArray, testMultipleArrayAppend2); +PHP_METHOD(Stub_NativeArray, testMultipleArrayAppend3); +PHP_METHOD(Stub_NativeArray, testArrayKeys); +PHP_METHOD(Stub_NativeArray, testImplodeArray); +PHP_METHOD(Stub_NativeArray, issue110); +PHP_METHOD(Stub_NativeArray, issue264); +PHP_METHOD(Stub_NativeArray, issue743a); +PHP_METHOD(Stub_NativeArray, issue743b); +PHP_METHOD(Stub_NativeArray, issue743c); +PHP_METHOD(Stub_NativeArray, issue709); +PHP_METHOD(Stub_NativeArray, Issue1140); +PHP_METHOD(Stub_NativeArray, Issue1159); +zend_object *zephir_init_properties_Stub_NativeArray(zend_class_entry *class_type TSRMLS_DC); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray1, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray1, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray2, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray2, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray3, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray3, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray4, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray4, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray5, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray5, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray6, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray6, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray7, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray7, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray8, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray8, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray9, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray9, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray10, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray10, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray11, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray11, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray12, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray12, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray13, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray13, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray14, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray14, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray15, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray15, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray16, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray16, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray17, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray17, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray18, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray18, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray19, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray19, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray20, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray20, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray21, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray21, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray22, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray22, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray23, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray23, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray24, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray24, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray25, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray25, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray26, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray26, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray27, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray27, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray28, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray28, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray29, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray29, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray30, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarray30, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayaccess1, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayaccess1, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayaccess2, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayaccess2, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayaccess3, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayaccess3, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayaccess4, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayaccess4, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayaccess5, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayaccess5, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayaccess6, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayaccess6, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarraymultipleaccess1, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarraymultipleaccess1, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarraymultipleaccess2, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarraymultipleaccess2, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarraymultipleaccess3, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarraymultipleaccess3, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarraymultipleaccess4, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarraymultipleaccess4, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarraymultipleaccess5, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarraymultipleaccess5, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayupdate1, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayupdate1, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayupdate2, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayupdate2, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayupdate3, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayupdate3, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayupdate4, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayupdate4, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayupdate5, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayupdate5, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayappend1, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayappend1, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayappend2, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarrayappend2, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate1, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate1, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate2, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate2, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate3, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate3, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate4, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate4, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate5, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate5, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate6, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate6, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate7, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate7, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate8, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate8, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate9, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate9, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate10, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate10, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate11, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate11, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate12, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate12, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate13, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayupdate13, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayappend1, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayappend1, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayappend2, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayappend2, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayappend3, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testmultiplearrayappend3, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarraykeys, 0, 1, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testarraykeys, 0, 1, IS_ARRAY, NULL, 0) +#endif + ZEND_ARG_INFO(0, param) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testimplodearray, 0, 1, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_testimplodearray, 0, 1, IS_STRING, NULL, 0) +#endif + ZEND_ARG_INFO(0, param) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_issue110, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_issue110, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_issue264, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_issue264, 0, 1, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_ARRAY_INFO(0, tokens, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_issue743a, 0, 1, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_issue743a, 0, 1, IS_ARRAY, NULL, 0) +#endif + ZEND_ARG_ARRAY_INFO(0, current743a, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_issue743b, 0, 1, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_issue743b, 0, 1, IS_ARRAY, NULL, 0) +#endif + ZEND_ARG_ARRAY_INFO(0, current, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_issue743c, 0, 1, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_issue743c, 0, 1, IS_ARRAY, NULL, 0) +#endif + ZEND_ARG_ARRAY_INFO(0, current, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_issue709, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_nativearray_issue709, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_nativearray_issue1140, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, prefix, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, prefix) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, baseDir, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, baseDir) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_nativearray_method_entry) { + PHP_ME(Stub_NativeArray, testArray1, arginfo_stub_nativearray_testarray1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray2, arginfo_stub_nativearray_testarray2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray3, arginfo_stub_nativearray_testarray3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray4, arginfo_stub_nativearray_testarray4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray5, arginfo_stub_nativearray_testarray5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray6, arginfo_stub_nativearray_testarray6, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray7, arginfo_stub_nativearray_testarray7, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray8, arginfo_stub_nativearray_testarray8, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray9, arginfo_stub_nativearray_testarray9, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray10, arginfo_stub_nativearray_testarray10, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray11, arginfo_stub_nativearray_testarray11, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray12, arginfo_stub_nativearray_testarray12, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray13, arginfo_stub_nativearray_testarray13, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray14, arginfo_stub_nativearray_testarray14, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray15, arginfo_stub_nativearray_testarray15, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray16, arginfo_stub_nativearray_testarray16, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray17, arginfo_stub_nativearray_testarray17, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray18, arginfo_stub_nativearray_testarray18, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray19, arginfo_stub_nativearray_testarray19, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray20, arginfo_stub_nativearray_testarray20, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray21, arginfo_stub_nativearray_testarray21, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray22, arginfo_stub_nativearray_testarray22, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray23, arginfo_stub_nativearray_testarray23, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray24, arginfo_stub_nativearray_testarray24, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray25, arginfo_stub_nativearray_testarray25, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray26, arginfo_stub_nativearray_testarray26, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray27, arginfo_stub_nativearray_testarray27, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray28, arginfo_stub_nativearray_testarray28, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray29, arginfo_stub_nativearray_testarray29, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArray30, arginfo_stub_nativearray_testarray30, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayAccess1, arginfo_stub_nativearray_testarrayaccess1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayAccess2, arginfo_stub_nativearray_testarrayaccess2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayAccess3, arginfo_stub_nativearray_testarrayaccess3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayAccess4, arginfo_stub_nativearray_testarrayaccess4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayAccess5, arginfo_stub_nativearray_testarrayaccess5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayAccess6, arginfo_stub_nativearray_testarrayaccess6, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayMultipleAccess1, arginfo_stub_nativearray_testarraymultipleaccess1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayMultipleAccess2, arginfo_stub_nativearray_testarraymultipleaccess2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayMultipleAccess3, arginfo_stub_nativearray_testarraymultipleaccess3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayMultipleAccess4, arginfo_stub_nativearray_testarraymultipleaccess4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayMultipleAccess5, arginfo_stub_nativearray_testarraymultipleaccess5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayUpdate1, arginfo_stub_nativearray_testarrayupdate1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayUpdate2, arginfo_stub_nativearray_testarrayupdate2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayUpdate3, arginfo_stub_nativearray_testarrayupdate3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayUpdate4, arginfo_stub_nativearray_testarrayupdate4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayUpdate5, arginfo_stub_nativearray_testarrayupdate5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayAppend1, arginfo_stub_nativearray_testarrayappend1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayAppend2, arginfo_stub_nativearray_testarrayappend2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayUpdate1, arginfo_stub_nativearray_testmultiplearrayupdate1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayUpdate2, arginfo_stub_nativearray_testmultiplearrayupdate2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayUpdate3, arginfo_stub_nativearray_testmultiplearrayupdate3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayUpdate4, arginfo_stub_nativearray_testmultiplearrayupdate4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayUpdate5, arginfo_stub_nativearray_testmultiplearrayupdate5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayUpdate6, arginfo_stub_nativearray_testmultiplearrayupdate6, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayUpdate7, arginfo_stub_nativearray_testmultiplearrayupdate7, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayUpdate8, arginfo_stub_nativearray_testmultiplearrayupdate8, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayUpdate9, arginfo_stub_nativearray_testmultiplearrayupdate9, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayUpdate10, arginfo_stub_nativearray_testmultiplearrayupdate10, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayUpdate11, arginfo_stub_nativearray_testmultiplearrayupdate11, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayUpdate12, arginfo_stub_nativearray_testmultiplearrayupdate12, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayUpdate13, arginfo_stub_nativearray_testmultiplearrayupdate13, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayAppend1, arginfo_stub_nativearray_testmultiplearrayappend1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayAppend2, arginfo_stub_nativearray_testmultiplearrayappend2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testMultipleArrayAppend3, arginfo_stub_nativearray_testmultiplearrayappend3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testArrayKeys, arginfo_stub_nativearray_testarraykeys, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, testImplodeArray, arginfo_stub_nativearray_testimplodearray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, issue110, arginfo_stub_nativearray_issue110, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, issue264, arginfo_stub_nativearray_issue264, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, issue743a, arginfo_stub_nativearray_issue743a, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, issue743b, arginfo_stub_nativearray_issue743b, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, issue743c, arginfo_stub_nativearray_issue743c, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, issue709, arginfo_stub_nativearray_issue709, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, Issue1140, arginfo_stub_nativearray_issue1140, ZEND_ACC_PUBLIC) + PHP_ME(Stub_NativeArray, Issue1159, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/oo.zep.c b/ext/stub/oo.zep.c similarity index 82% rename from ext/test/oo.zep.c rename to ext/stub/oo.zep.c index 24b5190b5d..45b9e21eae 100644 --- a/ext/test/oo.zep.c +++ b/ext/stub/oo.zep.c @@ -22,15 +22,15 @@ /** * OO operations */ -ZEPHIR_INIT_CLASS(Test_Oo) { +ZEPHIR_INIT_CLASS(Stub_Oo) { - ZEPHIR_REGISTER_CLASS(Test, Oo, test, oo, test_oo_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Oo, stub, oo, stub_oo_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Oo, testInstance1) { +PHP_METHOD(Stub_Oo, testInstance1) { zval o; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -46,7 +46,7 @@ PHP_METHOD(Test_Oo, testInstance1) { } -PHP_METHOD(Test_Oo, testInstance2) { +PHP_METHOD(Stub_Oo, testInstance2) { zval o; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -58,14 +58,14 @@ PHP_METHOD(Test_Oo, testInstance2) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&o); - object_init_ex(&o, test_oo_ooconstruct_ce); + object_init_ex(&o, stub_oo_ooconstruct_ce); ZEPHIR_CALL_METHOD(NULL, &o, "__construct", NULL, 55); zephir_check_call_status(); RETURN_CCTOR(&o); } -PHP_METHOD(Test_Oo, testInstance3) { +PHP_METHOD(Stub_Oo, testInstance3) { zval o; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -77,7 +77,7 @@ PHP_METHOD(Test_Oo, testInstance3) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&o); - object_init_ex(&o, test_oo_oonoconstruct_ce); + object_init_ex(&o, stub_oo_oonoconstruct_ce); if (zephir_has_constructor(&o)) { ZEPHIR_CALL_METHOD(NULL, &o, "__construct", NULL, 0); zephir_check_call_status(); @@ -86,7 +86,7 @@ PHP_METHOD(Test_Oo, testInstance3) { } -PHP_METHOD(Test_Oo, testInstance4) { +PHP_METHOD(Stub_Oo, testInstance4) { zval o, a, b; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -104,14 +104,14 @@ PHP_METHOD(Test_Oo, testInstance4) { ZEPHIR_INIT_VAR(&b); ZVAL_STRING(&b, "b"); ZEPHIR_INIT_VAR(&o); - object_init_ex(&o, test_oo_ooconstructparams_ce); + object_init_ex(&o, stub_oo_ooconstructparams_ce); ZEPHIR_CALL_METHOD(NULL, &o, "__construct", NULL, 56, &a, &b); zephir_check_call_status(); RETURN_CCTOR(&o); } -PHP_METHOD(Test_Oo, testInstance5) { +PHP_METHOD(Stub_Oo, testInstance5) { zval o, _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -125,7 +125,7 @@ PHP_METHOD(Test_Oo, testInstance5) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&o); - object_init_ex(&o, test_oo_ooconstructparams_ce); + object_init_ex(&o, stub_oo_ooconstructparams_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "a"); ZEPHIR_INIT_VAR(&_1); @@ -136,7 +136,7 @@ PHP_METHOD(Test_Oo, testInstance5) { } -PHP_METHOD(Test_Oo, testInstance6) { +PHP_METHOD(Stub_Oo, testInstance6) { zval o, _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -150,7 +150,7 @@ PHP_METHOD(Test_Oo, testInstance6) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&o); - object_init_ex(&o, test_oo_ooconstructparams_ce); + object_init_ex(&o, stub_oo_ooconstructparams_ce); ZVAL_LONG(&_0, 1); ZVAL_LONG(&_1, 2); ZEPHIR_CALL_METHOD(NULL, &o, "__construct", NULL, 56, &_0, &_1); @@ -159,7 +159,7 @@ PHP_METHOD(Test_Oo, testInstance6) { } -PHP_METHOD(Test_Oo, testInstance7) { +PHP_METHOD(Stub_Oo, testInstance7) { zval o, _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -173,7 +173,7 @@ PHP_METHOD(Test_Oo, testInstance7) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&o); - object_init_ex(&o, test_oo_ooconstructparams_ce); + object_init_ex(&o, stub_oo_ooconstructparams_ce); ZVAL_BOOL(&_0, 0); ZVAL_BOOL(&_1, 1); ZEPHIR_CALL_METHOD(NULL, &o, "__construct", NULL, 56, &_0, &_1); @@ -182,7 +182,7 @@ PHP_METHOD(Test_Oo, testInstance7) { } -PHP_METHOD(Test_Oo, testInstance8) { +PHP_METHOD(Stub_Oo, testInstance8) { zval o, _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -196,7 +196,7 @@ PHP_METHOD(Test_Oo, testInstance8) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&o); - object_init_ex(&o, test_oo_ooconstructparams_ce); + object_init_ex(&o, stub_oo_ooconstructparams_ce); ZVAL_DOUBLE(&_0, 1.2); ZVAL_DOUBLE(&_1, 7.30); ZEPHIR_CALL_METHOD(NULL, &o, "__construct", NULL, 56, &_0, &_1); @@ -205,7 +205,7 @@ PHP_METHOD(Test_Oo, testInstance8) { } -PHP_METHOD(Test_Oo, testInstance9) { +PHP_METHOD(Stub_Oo, testInstance9) { zval o; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -217,13 +217,13 @@ PHP_METHOD(Test_Oo, testInstance9) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&o, test_oo_oodynamica_ce, "getnew", &_0, 0); + ZEPHIR_CALL_CE_STATIC(&o, stub_oo_oodynamica_ce, "getnew", &_0, 0); zephir_check_call_status(); RETURN_CCTOR(&o); } -PHP_METHOD(Test_Oo, testInstance10) { +PHP_METHOD(Stub_Oo, testInstance10) { zval o; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -235,13 +235,13 @@ PHP_METHOD(Test_Oo, testInstance10) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&o, test_oo_oodynamicb_ce, "getnew", &_0, 0); + ZEPHIR_CALL_CE_STATIC(&o, stub_oo_oodynamicb_ce, "getnew", &_0, 0); zephir_check_call_status(); RETURN_CCTOR(&o); } -PHP_METHOD(Test_Oo, testInstance11) { +PHP_METHOD(Stub_Oo, testInstance11) { zval o, _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -255,7 +255,7 @@ PHP_METHOD(Test_Oo, testInstance11) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&o); - object_init_ex(&o, test_oo_ooconstructparams_ce); + object_init_ex(&o, stub_oo_ooconstructparams_ce); ZVAL_LONG(&_0, 1); ZVAL_LONG(&_1, 2); ZEPHIR_CALL_METHOD(NULL, &o, "__construct", NULL, 56, &_0, &_1); @@ -264,7 +264,7 @@ PHP_METHOD(Test_Oo, testInstance11) { } -PHP_METHOD(Test_Oo, testInstance12) { +PHP_METHOD(Stub_Oo, testInstance12) { zval o; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -276,13 +276,13 @@ PHP_METHOD(Test_Oo, testInstance12) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&o, test_oo_oodynamica_ce, "call1", &_0, 0); + ZEPHIR_CALL_CE_STATIC(&o, stub_oo_oodynamica_ce, "call1", &_0, 0); zephir_check_call_status(); RETURN_CCTOR(&o); } -PHP_METHOD(Test_Oo, createInstancesInLoop) { +PHP_METHOD(Stub_Oo, createInstancesInLoop) { zend_class_entry *_5$$3, *_9$$4; zval result, _0; @@ -317,14 +317,14 @@ PHP_METHOD(Test_Oo, createInstancesInLoop) { ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "OoDynamicB"); zephir_array_fast_append(&_0, &_1); - zephir_is_iterable(&_0, 0, "test/oo.zep", 112); + zephir_is_iterable(&_0, 0, "stub/oo.zep", 112); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _2) { ZEPHIR_INIT_NVAR(&className); ZVAL_COPY(&className, _2); ZEPHIR_INIT_NVAR(&fqcn); - ZEPHIR_CONCAT_SV(&fqcn, "Test\\Oo\\", &className); + ZEPHIR_CONCAT_SV(&fqcn, "Stub\\Oo\\", &className); ZEPHIR_INIT_NVAR(&instance); zephir_fetch_safe_class(&_4$$3, &fqcn); _5$$3 = zephir_fetch_class_str_ex(Z_STRVAL_P(&_4$$3), Z_STRLEN_P(&_4$$3), ZEND_FETCH_CLASS_AUTO); @@ -338,10 +338,10 @@ PHP_METHOD(Test_Oo, createInstancesInLoop) { } ZEPHIR_CALL_METHOD(&_6$$3, &instance, "execute", NULL, 0); zephir_check_call_status(); - zephir_array_append(&result, &_6$$3, PH_SEPARATE, "test/oo.zep", 108); + zephir_array_append(&result, &_6$$3, PH_SEPARATE, "stub/oo.zep", 108); ZEPHIR_CALL_METHOD(&_7$$3, &instance, "execute2", NULL, 0); zephir_check_call_status(); - zephir_array_append(&result, &_7$$3, PH_SEPARATE, "test/oo.zep", 109); + zephir_array_append(&result, &_7$$3, PH_SEPARATE, "stub/oo.zep", 109); } ZEND_HASH_FOREACH_END(); } else { ZEPHIR_CALL_METHOD(NULL, &_0, "rewind", NULL, 0); @@ -355,7 +355,7 @@ PHP_METHOD(Test_Oo, createInstancesInLoop) { ZEPHIR_CALL_METHOD(&className, &_0, "current", NULL, 0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&fqcn); - ZEPHIR_CONCAT_SV(&fqcn, "Test\\Oo\\", &className); + ZEPHIR_CONCAT_SV(&fqcn, "Stub\\Oo\\", &className); ZEPHIR_INIT_NVAR(&instance); zephir_fetch_safe_class(&_8$$4, &fqcn); _9$$4 = zephir_fetch_class_str_ex(Z_STRVAL_P(&_8$$4), Z_STRLEN_P(&_8$$4), ZEND_FETCH_CLASS_AUTO); @@ -369,10 +369,10 @@ PHP_METHOD(Test_Oo, createInstancesInLoop) { } ZEPHIR_CALL_METHOD(&_10$$4, &instance, "execute", NULL, 0); zephir_check_call_status(); - zephir_array_append(&result, &_10$$4, PH_SEPARATE, "test/oo.zep", 108); + zephir_array_append(&result, &_10$$4, PH_SEPARATE, "stub/oo.zep", 108); ZEPHIR_CALL_METHOD(&_11$$4, &instance, "execute2", NULL, 0); zephir_check_call_status(); - zephir_array_append(&result, &_11$$4, PH_SEPARATE, "test/oo.zep", 109); + zephir_array_append(&result, &_11$$4, PH_SEPARATE, "stub/oo.zep", 109); ZEPHIR_CALL_METHOD(NULL, &_0, "next", NULL, 0); zephir_check_call_status(); } diff --git a/ext/stub/oo.zep.h b/ext/stub/oo.zep.h new file mode 100644 index 0000000000..8cd1301b52 --- /dev/null +++ b/ext/stub/oo.zep.h @@ -0,0 +1,42 @@ + +extern zend_class_entry *stub_oo_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo); + +PHP_METHOD(Stub_Oo, testInstance1); +PHP_METHOD(Stub_Oo, testInstance2); +PHP_METHOD(Stub_Oo, testInstance3); +PHP_METHOD(Stub_Oo, testInstance4); +PHP_METHOD(Stub_Oo, testInstance5); +PHP_METHOD(Stub_Oo, testInstance6); +PHP_METHOD(Stub_Oo, testInstance7); +PHP_METHOD(Stub_Oo, testInstance8); +PHP_METHOD(Stub_Oo, testInstance9); +PHP_METHOD(Stub_Oo, testInstance10); +PHP_METHOD(Stub_Oo, testInstance11); +PHP_METHOD(Stub_Oo, testInstance12); +PHP_METHOD(Stub_Oo, createInstancesInLoop); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_createinstancesinloop, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_createinstancesinloop, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_method_entry) { + PHP_ME(Stub_Oo, testInstance1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo, testInstance2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo, testInstance3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo, testInstance4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo, testInstance5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo, testInstance6, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo, testInstance7, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo, testInstance8, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo, testInstance9, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo, testInstance10, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo, testInstance11, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo, testInstance12, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo, createInstancesInLoop, arginfo_stub_oo_createinstancesinloop, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/stub/oo/abstractclass.zep.c b/ext/stub/oo/abstractclass.zep.c new file mode 100644 index 0000000000..df4d1d1dec --- /dev/null +++ b/ext/stub/oo/abstractclass.zep.c @@ -0,0 +1,56 @@ + +#ifdef HAVE_CONFIG_H +#include "../../ext_config.h" +#endif + +#include +#include "../../php_ext.h" +#include "../../ext.h" + +#include +#include +#include + +#include "kernel/main.h" + + +ZEPHIR_INIT_CLASS(Stub_Oo_AbstractClass) { + + ZEPHIR_REGISTER_CLASS(Stub\\Oo, AbstractClass, stub, oo_abstractclass, stub_oo_abstractclass_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + + return SUCCESS; + +} + +PHP_METHOD(Stub_Oo_AbstractClass, testMethodDeclaration) { + +} + +PHP_METHOD(Stub_Oo_AbstractClass, testMethodDeclarationWithReturnType) { + +} + +PHP_METHOD(Stub_Oo_AbstractClass, testMethodDeclarationWithParameter) { + +} + +PHP_METHOD(Stub_Oo_AbstractClass, testMethodDeclarationWithParameterAndReturnType) { + +} + +PHP_METHOD(Stub_Oo_AbstractClass, testAbstractMethodDeclaration) { + +} + +PHP_METHOD(Stub_Oo_AbstractClass, testAbstractMethodDeclarationWithReturnType) { + +} + +PHP_METHOD(Stub_Oo_AbstractClass, testAbstractMethodDeclarationWithParameter) { + +} + +PHP_METHOD(Stub_Oo_AbstractClass, testAbstractMethodDeclarationWithParameterAndReturnType) { + +} + diff --git a/ext/stub/oo/abstractclass.zep.h b/ext/stub/oo/abstractclass.zep.h new file mode 100644 index 0000000000..46b7d18edb --- /dev/null +++ b/ext/stub/oo/abstractclass.zep.h @@ -0,0 +1,63 @@ + +extern zend_class_entry *stub_oo_abstractclass_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_AbstractClass); + +PHP_METHOD(Stub_Oo_AbstractClass, testMethodDeclaration); +PHP_METHOD(Stub_Oo_AbstractClass, testMethodDeclarationWithReturnType); +PHP_METHOD(Stub_Oo_AbstractClass, testMethodDeclarationWithParameter); +PHP_METHOD(Stub_Oo_AbstractClass, testMethodDeclarationWithParameterAndReturnType); +PHP_METHOD(Stub_Oo_AbstractClass, testAbstractMethodDeclaration); +PHP_METHOD(Stub_Oo_AbstractClass, testAbstractMethodDeclarationWithReturnType); +PHP_METHOD(Stub_Oo_AbstractClass, testAbstractMethodDeclarationWithParameter); +PHP_METHOD(Stub_Oo_AbstractClass, testAbstractMethodDeclarationWithParameterAndReturnType); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_abstractclass_testmethoddeclarationwithreturntype, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_abstractclass_testmethoddeclarationwithreturntype, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_abstractclass_testmethoddeclarationwithparameter, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_abstractclass_testmethoddeclarationwithparameterandreturntype, 0, 1, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_abstractclass_testmethoddeclarationwithparameterandreturntype, 0, 1, IS_STRING, NULL, 0) +#endif + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_abstractclass_testabstractmethoddeclarationwithreturntype, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_abstractclass_testabstractmethoddeclarationwithreturntype, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_abstractclass_testabstractmethoddeclarationwithparameter, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_abstractclass_testabstractmethoddeclarationwithparameterandreturntype, 0, 1, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_abstractclass_testabstractmethoddeclarationwithparameterandreturntype, 0, 1, IS_STRING, NULL, 0) +#endif + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_abstractclass_method_entry) { + PHP_ME(Stub_Oo_AbstractClass, testMethodDeclaration, NULL, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_AbstractClass, testMethodDeclarationWithReturnType, arginfo_stub_oo_abstractclass_testmethoddeclarationwithreturntype, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_AbstractClass, testMethodDeclarationWithParameter, arginfo_stub_oo_abstractclass_testmethoddeclarationwithparameter, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_AbstractClass, testMethodDeclarationWithParameterAndReturnType, arginfo_stub_oo_abstractclass_testmethoddeclarationwithparameterandreturntype, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_AbstractClass, testAbstractMethodDeclaration, NULL, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_AbstractClass, testAbstractMethodDeclarationWithReturnType, arginfo_stub_oo_abstractclass_testabstractmethoddeclarationwithreturntype, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_AbstractClass, testAbstractMethodDeclarationWithParameter, arginfo_stub_oo_abstractclass_testabstractmethoddeclarationwithparameter, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_AbstractClass, testAbstractMethodDeclarationWithParameterAndReturnType, arginfo_stub_oo_abstractclass_testabstractmethoddeclarationwithparameterandreturntype, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/oo/abstractstatic.zep.c b/ext/stub/oo/abstractstatic.zep.c similarity index 64% rename from ext/test/oo/abstractstatic.zep.c rename to ext/stub/oo/abstractstatic.zep.c index 2d3b94ab72..ab6516a34c 100644 --- a/ext/test/oo/abstractstatic.zep.c +++ b/ext/stub/oo/abstractstatic.zep.c @@ -15,15 +15,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Oo_AbstractStatic) { +ZEPHIR_INIT_CLASS(Stub_Oo_AbstractStatic) { - ZEPHIR_REGISTER_CLASS(Test\\Oo, AbstractStatic, test, oo_abstractstatic, test_oo_abstractstatic_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + ZEPHIR_REGISTER_CLASS(Stub\\Oo, AbstractStatic, stub, oo_abstractstatic, stub_oo_abstractstatic_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); return SUCCESS; } -PHP_METHOD(Test_Oo_AbstractStatic, getCalledClass) { +PHP_METHOD(Stub_Oo_AbstractStatic, getCalledClass) { zval *this_ptr = getThis(); diff --git a/ext/stub/oo/abstractstatic.zep.h b/ext/stub/oo/abstractstatic.zep.h new file mode 100644 index 0000000000..30694fb78d --- /dev/null +++ b/ext/stub/oo/abstractstatic.zep.h @@ -0,0 +1,18 @@ + +extern zend_class_entry *stub_oo_abstractstatic_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_AbstractStatic); + +PHP_METHOD(Stub_Oo_AbstractStatic, getCalledClass); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_abstractstatic_getcalledclass, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_abstractstatic_getcalledclass, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_abstractstatic_method_entry) { + PHP_ME(Stub_Oo_AbstractStatic, getCalledClass, arginfo_stub_oo_abstractstatic_getcalledclass, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/oo/concretestatic.zep.c b/ext/stub/oo/concretestatic.zep.c similarity index 71% rename from ext/test/oo/concretestatic.zep.c rename to ext/stub/oo/concretestatic.zep.c index 276f0d8f13..cbdc9170cc 100644 --- a/ext/test/oo/concretestatic.zep.c +++ b/ext/stub/oo/concretestatic.zep.c @@ -17,15 +17,15 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Oo_ConcreteStatic) { +ZEPHIR_INIT_CLASS(Stub_Oo_ConcreteStatic) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo, ConcreteStatic, test, oo_concretestatic, test_oo_abstractstatic_ce, test_oo_concretestatic_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo, ConcreteStatic, stub, oo_concretestatic, stub_oo_abstractstatic_ce, stub_oo_concretestatic_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Oo_ConcreteStatic, parentFunction) { +PHP_METHOD(Stub_Oo_ConcreteStatic, parentFunction) { zval *this_ptr = getThis(); @@ -34,7 +34,7 @@ PHP_METHOD(Test_Oo_ConcreteStatic, parentFunction) { } -PHP_METHOD(Test_Oo_ConcreteStatic, childFunction) { +PHP_METHOD(Stub_Oo_ConcreteStatic, childFunction) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; diff --git a/ext/stub/oo/concretestatic.zep.h b/ext/stub/oo/concretestatic.zep.h new file mode 100644 index 0000000000..37302f2cc3 --- /dev/null +++ b/ext/stub/oo/concretestatic.zep.h @@ -0,0 +1,13 @@ + +extern zend_class_entry *stub_oo_concretestatic_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_ConcreteStatic); + +PHP_METHOD(Stub_Oo_ConcreteStatic, parentFunction); +PHP_METHOD(Stub_Oo_ConcreteStatic, childFunction); + +ZEPHIR_INIT_FUNCS(stub_oo_concretestatic_method_entry) { + PHP_ME(Stub_Oo_ConcreteStatic, parentFunction, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Oo_ConcreteStatic, childFunction, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/stub/oo/constantsinterface.zep.c b/ext/stub/oo/constantsinterface.zep.c new file mode 100644 index 0000000000..2251c0944a --- /dev/null +++ b/ext/stub/oo/constantsinterface.zep.c @@ -0,0 +1,84 @@ + +#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/object.h" + + +ZEPHIR_INIT_CLASS(Stub_Oo_ConstantsInterface) { + + ZEPHIR_REGISTER_CLASS(Stub\\Oo, ConstantsInterface, stub, oo_constantsinterface, stub_oo_constantsinterface_method_entry, 0); + + zephir_declare_class_constant_string(stub_oo_constantsinterface_ce, SL("CLASSNAME"), "Stub\\Oo\\ConstantsInterface"); + + zephir_declare_class_constant_string(stub_oo_constantsinterface_ce, SL("NAMESPACENAME"), "Stub\\Oo"); + + zend_class_implements(stub_oo_constantsinterface_ce, 1, stub_testinterface_ce); + return SUCCESS; + +} + +PHP_METHOD(Stub_Oo_ConstantsInterface, testReadInterfaceConstant1) { + + zval *this_ptr = getThis(); + + + RETURN_NULL(); + +} + +PHP_METHOD(Stub_Oo_ConstantsInterface, testReadInterfaceConstant2) { + + zval *this_ptr = getThis(); + + + RETURN_BOOL(0); + +} + +PHP_METHOD(Stub_Oo_ConstantsInterface, testReadInterfaceConstant3) { + + zval *this_ptr = getThis(); + + + RETURN_BOOL(1); + +} + +PHP_METHOD(Stub_Oo_ConstantsInterface, testReadInterfaceConstant4) { + + zval *this_ptr = getThis(); + + + RETURN_LONG(10); + +} + +PHP_METHOD(Stub_Oo_ConstantsInterface, testReadInterfaceConstant5) { + + zval *this_ptr = getThis(); + + + RETURN_DOUBLE(10.25); + +} + +PHP_METHOD(Stub_Oo_ConstantsInterface, testReadInterfaceConstant6) { + + zval *this_ptr = getThis(); + + + RETURN_STRING("test"); + +} + diff --git a/ext/stub/oo/constantsinterface.zep.h b/ext/stub/oo/constantsinterface.zep.h new file mode 100644 index 0000000000..352272bffc --- /dev/null +++ b/ext/stub/oo/constantsinterface.zep.h @@ -0,0 +1,21 @@ + +extern zend_class_entry *stub_oo_constantsinterface_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_ConstantsInterface); + +PHP_METHOD(Stub_Oo_ConstantsInterface, testReadInterfaceConstant1); +PHP_METHOD(Stub_Oo_ConstantsInterface, testReadInterfaceConstant2); +PHP_METHOD(Stub_Oo_ConstantsInterface, testReadInterfaceConstant3); +PHP_METHOD(Stub_Oo_ConstantsInterface, testReadInterfaceConstant4); +PHP_METHOD(Stub_Oo_ConstantsInterface, testReadInterfaceConstant5); +PHP_METHOD(Stub_Oo_ConstantsInterface, testReadInterfaceConstant6); + +ZEPHIR_INIT_FUNCS(stub_oo_constantsinterface_method_entry) { + PHP_ME(Stub_Oo_ConstantsInterface, testReadInterfaceConstant1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_ConstantsInterface, testReadInterfaceConstant2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_ConstantsInterface, testReadInterfaceConstant3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_ConstantsInterface, testReadInterfaceConstant4, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_ConstantsInterface, testReadInterfaceConstant5, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_ConstantsInterface, testReadInterfaceConstant6, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/oo/deprecatedmethods.zep.c b/ext/stub/oo/deprecatedmethods.zep.c similarity index 68% rename from ext/test/oo/deprecatedmethods.zep.c rename to ext/stub/oo/deprecatedmethods.zep.c index 393618d4d7..789e9c78b3 100644 --- a/ext/test/oo/deprecatedmethods.zep.c +++ b/ext/stub/oo/deprecatedmethods.zep.c @@ -17,15 +17,15 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Oo_DeprecatedMethods) { +ZEPHIR_INIT_CLASS(Stub_Oo_DeprecatedMethods) { - ZEPHIR_REGISTER_CLASS(Test\\Oo, DeprecatedMethods, test, oo_deprecatedmethods, test_oo_deprecatedmethods_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Oo, DeprecatedMethods, stub, oo_deprecatedmethods, stub_oo_deprecatedmethods_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Oo_DeprecatedMethods, publicDeprecated) { +PHP_METHOD(Stub_Oo_DeprecatedMethods, publicDeprecated) { zval *this_ptr = getThis(); @@ -34,7 +34,7 @@ PHP_METHOD(Test_Oo_DeprecatedMethods, publicDeprecated) { } -PHP_METHOD(Test_Oo_DeprecatedMethods, normalMethod) { +PHP_METHOD(Stub_Oo_DeprecatedMethods, normalMethod) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -49,7 +49,7 @@ PHP_METHOD(Test_Oo_DeprecatedMethods, normalMethod) { } -PHP_METHOD(Test_Oo_DeprecatedMethods, privateDeprecated) { +PHP_METHOD(Stub_Oo_DeprecatedMethods, privateDeprecated) { zval *this_ptr = getThis(); diff --git a/ext/stub/oo/deprecatedmethods.zep.h b/ext/stub/oo/deprecatedmethods.zep.h new file mode 100644 index 0000000000..53b6443f4f --- /dev/null +++ b/ext/stub/oo/deprecatedmethods.zep.h @@ -0,0 +1,15 @@ + +extern zend_class_entry *stub_oo_deprecatedmethods_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_DeprecatedMethods); + +PHP_METHOD(Stub_Oo_DeprecatedMethods, publicDeprecated); +PHP_METHOD(Stub_Oo_DeprecatedMethods, normalMethod); +PHP_METHOD(Stub_Oo_DeprecatedMethods, privateDeprecated); + +ZEPHIR_INIT_FUNCS(stub_oo_deprecatedmethods_method_entry) { + PHP_ME(Stub_Oo_DeprecatedMethods, publicDeprecated, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_DEPRECATED) + PHP_ME(Stub_Oo_DeprecatedMethods, normalMethod, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DeprecatedMethods, privateDeprecated, NULL, ZEND_ACC_PRIVATE|ZEND_ACC_DEPRECATED) + PHP_FE_END +}; diff --git a/ext/test/oo/dynamicprop.zep.c b/ext/stub/oo/dynamicprop.zep.c similarity index 91% rename from ext/test/oo/dynamicprop.zep.c rename to ext/stub/oo/dynamicprop.zep.c index 5318cf504d..86ae56c94f 100644 --- a/ext/test/oo/dynamicprop.zep.c +++ b/ext/stub/oo/dynamicprop.zep.c @@ -22,17 +22,17 @@ /** * */ -ZEPHIR_INIT_CLASS(Test_Oo_DynamicProp) { +ZEPHIR_INIT_CLASS(Stub_Oo_DynamicProp) { - ZEPHIR_REGISTER_CLASS(Test\\Oo, DynamicProp, test, oo_dynamicprop, test_oo_dynamicprop_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Oo, DynamicProp, stub, oo_dynamicprop, stub_oo_dynamicprop_method_entry, 0); - zend_declare_property_null(test_oo_dynamicprop_ce, SL("test"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_oo_dynamicprop_ce, SL("test"), ZEND_ACC_PUBLIC); return SUCCESS; } -PHP_METHOD(Test_Oo_DynamicProp, setPropertyInt) { +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyInt) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *property_param = NULL, _0; @@ -64,7 +64,7 @@ PHP_METHOD(Test_Oo_DynamicProp, setPropertyInt) { } -PHP_METHOD(Test_Oo_DynamicProp, setPropertyBoolTrue) { +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyBoolTrue) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *property_param = NULL, __$true; @@ -94,7 +94,7 @@ PHP_METHOD(Test_Oo_DynamicProp, setPropertyBoolTrue) { } -PHP_METHOD(Test_Oo_DynamicProp, setPropertyBoolFalse) { +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyBoolFalse) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *property_param = NULL, __$false; @@ -124,7 +124,7 @@ PHP_METHOD(Test_Oo_DynamicProp, setPropertyBoolFalse) { } -PHP_METHOD(Test_Oo_DynamicProp, setPropertyString) { +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyString) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *property_param = NULL, _0; @@ -156,7 +156,7 @@ PHP_METHOD(Test_Oo_DynamicProp, setPropertyString) { } -PHP_METHOD(Test_Oo_DynamicProp, setPropertyChar) { +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyChar) { char a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -190,7 +190,7 @@ PHP_METHOD(Test_Oo_DynamicProp, setPropertyChar) { } -PHP_METHOD(Test_Oo_DynamicProp, setPropertyUChar) { +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyUChar) { unsigned char a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -224,7 +224,7 @@ PHP_METHOD(Test_Oo_DynamicProp, setPropertyUChar) { } -PHP_METHOD(Test_Oo_DynamicProp, setPropertyNull) { +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyNull) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *property_param = NULL, __$null; @@ -254,7 +254,7 @@ PHP_METHOD(Test_Oo_DynamicProp, setPropertyNull) { } -PHP_METHOD(Test_Oo_DynamicProp, setPropertyVariableInt) { +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyVariableInt) { zend_long a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -288,7 +288,7 @@ PHP_METHOD(Test_Oo_DynamicProp, setPropertyVariableInt) { } -PHP_METHOD(Test_Oo_DynamicProp, setPropertyVariableString) { +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyVariableString) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *property_param = NULL, a; @@ -320,7 +320,7 @@ PHP_METHOD(Test_Oo_DynamicProp, setPropertyVariableString) { } -PHP_METHOD(Test_Oo_DynamicProp, setPropertyVariableBoolTrue) { +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyVariableBoolTrue) { zend_bool a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -354,7 +354,7 @@ PHP_METHOD(Test_Oo_DynamicProp, setPropertyVariableBoolTrue) { } -PHP_METHOD(Test_Oo_DynamicProp, setPropertyVariableBoolFalse) { +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyVariableBoolFalse) { zend_bool a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -388,7 +388,7 @@ PHP_METHOD(Test_Oo_DynamicProp, setPropertyVariableBoolFalse) { } -PHP_METHOD(Test_Oo_DynamicProp, setExistingStringProperty) { +PHP_METHOD(Stub_Oo_DynamicProp, setExistingStringProperty) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -405,7 +405,7 @@ PHP_METHOD(Test_Oo_DynamicProp, setExistingStringProperty) { } -PHP_METHOD(Test_Oo_DynamicProp, setExistingStringPropertyString) { +PHP_METHOD(Stub_Oo_DynamicProp, setExistingStringPropertyString) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *value_param = NULL; @@ -434,7 +434,7 @@ PHP_METHOD(Test_Oo_DynamicProp, setExistingStringPropertyString) { } -PHP_METHOD(Test_Oo_DynamicProp, setNonExistingStringProperty) { +PHP_METHOD(Stub_Oo_DynamicProp, setNonExistingStringProperty) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/oo/dynamicprop.zep.h b/ext/stub/oo/dynamicprop.zep.h new file mode 100644 index 0000000000..675708cc2f --- /dev/null +++ b/ext/stub/oo/dynamicprop.zep.h @@ -0,0 +1,133 @@ + +extern zend_class_entry *stub_oo_dynamicprop_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_DynamicProp); + +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyInt); +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyBoolTrue); +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyBoolFalse); +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyString); +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyChar); +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyUChar); +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyNull); +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyVariableInt); +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyVariableString); +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyVariableBoolTrue); +PHP_METHOD(Stub_Oo_DynamicProp, setPropertyVariableBoolFalse); +PHP_METHOD(Stub_Oo_DynamicProp, setExistingStringProperty); +PHP_METHOD(Stub_Oo_DynamicProp, setExistingStringPropertyString); +PHP_METHOD(Stub_Oo_DynamicProp, setNonExistingStringProperty); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_dynamicprop_setpropertyint, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, property) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_dynamicprop_setpropertybooltrue, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, property) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_dynamicprop_setpropertyboolfalse, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, property) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_dynamicprop_setpropertystring, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, property) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_dynamicprop_setpropertychar, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, property) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_dynamicprop_setpropertyuchar, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, property) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_dynamicprop_setpropertynull, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, property) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_dynamicprop_setpropertyvariableint, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, property) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_dynamicprop_setpropertyvariablestring, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, property) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_dynamicprop_setpropertyvariablebooltrue, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, property) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_dynamicprop_setpropertyvariableboolfalse, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, property) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_dynamicprop_setexistingstringpropertystring, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, value) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_dynamicprop_method_entry) { + PHP_ME(Stub_Oo_DynamicProp, setPropertyInt, arginfo_stub_oo_dynamicprop_setpropertyint, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DynamicProp, setPropertyBoolTrue, arginfo_stub_oo_dynamicprop_setpropertybooltrue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DynamicProp, setPropertyBoolFalse, arginfo_stub_oo_dynamicprop_setpropertyboolfalse, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DynamicProp, setPropertyString, arginfo_stub_oo_dynamicprop_setpropertystring, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DynamicProp, setPropertyChar, arginfo_stub_oo_dynamicprop_setpropertychar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DynamicProp, setPropertyUChar, arginfo_stub_oo_dynamicprop_setpropertyuchar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DynamicProp, setPropertyNull, arginfo_stub_oo_dynamicprop_setpropertynull, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DynamicProp, setPropertyVariableInt, arginfo_stub_oo_dynamicprop_setpropertyvariableint, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DynamicProp, setPropertyVariableString, arginfo_stub_oo_dynamicprop_setpropertyvariablestring, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DynamicProp, setPropertyVariableBoolTrue, arginfo_stub_oo_dynamicprop_setpropertyvariablebooltrue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DynamicProp, setPropertyVariableBoolFalse, arginfo_stub_oo_dynamicprop_setpropertyvariableboolfalse, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DynamicProp, setExistingStringProperty, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DynamicProp, setExistingStringPropertyString, arginfo_stub_oo_dynamicprop_setexistingstringpropertystring, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_DynamicProp, setNonExistingStringProperty, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/oo/extend/db/exception.zep.c b/ext/stub/oo/extend/db/exception.zep.c similarity index 62% rename from ext/test/oo/extend/db/exception.zep.c rename to ext/stub/oo/extend/db/exception.zep.c index 6cc779631c..86b986109b 100644 --- a/ext/test/oo/extend/db/exception.zep.c +++ b/ext/stub/oo/extend/db/exception.zep.c @@ -14,9 +14,9 @@ #include "kernel/main.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Db_Exception) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Db_Exception) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Db, Exception, test, oo_extend_db_exception, test_oo_extend_exception_ce, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Db, Exception, stub, oo_extend_db_exception, stub_oo_extend_exception_ce, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/db/exception.zep.h b/ext/stub/oo/extend/db/exception.zep.h new file mode 100644 index 0000000000..ed5e7d27ad --- /dev/null +++ b/ext/stub/oo/extend/db/exception.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_db_exception_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Db_Exception); + diff --git a/ext/test/oo/extend/db/query/exception.zep.c b/ext/stub/oo/extend/db/query/exception.zep.c similarity index 63% rename from ext/test/oo/extend/db/query/exception.zep.c rename to ext/stub/oo/extend/db/query/exception.zep.c index 9f59515a2e..27c36c6973 100644 --- a/ext/test/oo/extend/db/query/exception.zep.c +++ b/ext/stub/oo/extend/db/query/exception.zep.c @@ -14,9 +14,9 @@ #include "kernel/main.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Db_Query_Exception) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Db_Query_Exception) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Db\\Query, Exception, test, oo_extend_db_query_exception, test_oo_extend_db_exception_ce, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Db\\Query, Exception, stub, oo_extend_db_query_exception, stub_oo_extend_db_exception_ce, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/db/query/exception.zep.h b/ext/stub/oo/extend/db/query/exception.zep.h new file mode 100644 index 0000000000..ea4a569153 --- /dev/null +++ b/ext/stub/oo/extend/db/query/exception.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_db_query_exception_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Db_Query_Exception); + diff --git a/ext/test/oo/extend/db/query/placeholder/exception.zep.c b/ext/stub/oo/extend/db/query/placeholder/exception.zep.c similarity index 57% rename from ext/test/oo/extend/db/query/placeholder/exception.zep.c rename to ext/stub/oo/extend/db/query/placeholder/exception.zep.c index 562c993b81..ac2fa159d5 100644 --- a/ext/test/oo/extend/db/query/placeholder/exception.zep.c +++ b/ext/stub/oo/extend/db/query/placeholder/exception.zep.c @@ -14,9 +14,9 @@ #include "kernel/main.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Db_Query_Placeholder_Exception) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Db_Query_Placeholder_Exception) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Db\\Query\\Placeholder, Exception, test, oo_extend_db_query_placeholder_exception, test_oo_extend_db_query_exception_ce, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Db\\Query\\Placeholder, Exception, stub, oo_extend_db_query_placeholder_exception, stub_oo_extend_db_query_exception_ce, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/db/query/placeholder/exception.zep.h b/ext/stub/oo/extend/db/query/placeholder/exception.zep.h new file mode 100644 index 0000000000..d2de1f2790 --- /dev/null +++ b/ext/stub/oo/extend/db/query/placeholder/exception.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_db_query_placeholder_exception_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Db_Query_Placeholder_Exception); + diff --git a/ext/test/oo/extend/exception.zep.c b/ext/stub/oo/extend/exception.zep.c similarity index 76% rename from ext/test/oo/extend/exception.zep.c rename to ext/stub/oo/extend/exception.zep.c index 705b8b4c7b..25d6fc3829 100644 --- a/ext/test/oo/extend/exception.zep.c +++ b/ext/stub/oo/extend/exception.zep.c @@ -14,9 +14,9 @@ #include "kernel/main.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Exception) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Exception) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend, Exception, test, oo_extend_exception, zend_exception_get_default(TSRMLS_C), NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend, Exception, stub, oo_extend_exception, zend_exception_get_default(TSRMLS_C), NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/exception.zep.h b/ext/stub/oo/extend/exception.zep.h new file mode 100644 index 0000000000..85b82493ab --- /dev/null +++ b/ext/stub/oo/extend/exception.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_exception_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Exception); + diff --git a/ext/test/oo/extend/spl/arrayobject.zep.c b/ext/stub/oo/extend/spl/arrayobject.zep.c similarity index 65% rename from ext/test/oo/extend/spl/arrayobject.zep.c rename to ext/stub/oo/extend/spl/arrayobject.zep.c index 16ef818aca..75269fdf31 100644 --- a/ext/test/oo/extend/spl/arrayobject.zep.c +++ b/ext/stub/oo/extend/spl/arrayobject.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_array.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_ArrayObject) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_ArrayObject) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, ArrayObject, test, oo_extend_spl_arrayobject, spl_ce_ArrayObject, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, ArrayObject, stub, oo_extend_spl_arrayobject, spl_ce_ArrayObject, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/arrayobject.zep.h b/ext/stub/oo/extend/spl/arrayobject.zep.h new file mode 100644 index 0000000000..db67f26651 --- /dev/null +++ b/ext/stub/oo/extend/spl/arrayobject.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_arrayobject_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_ArrayObject); + diff --git a/ext/test/oo/extend/spl/directoryiterator.zep.c b/ext/stub/oo/extend/spl/directoryiterator.zep.c similarity index 65% rename from ext/test/oo/extend/spl/directoryiterator.zep.c rename to ext/stub/oo/extend/spl/directoryiterator.zep.c index acbd458574..6e006848c9 100644 --- a/ext/test/oo/extend/spl/directoryiterator.zep.c +++ b/ext/stub/oo/extend/spl/directoryiterator.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_directory.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_DirectoryIterator) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_DirectoryIterator) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, DirectoryIterator, test, oo_extend_spl_directoryiterator, spl_ce_DirectoryIterator, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, DirectoryIterator, stub, oo_extend_spl_directoryiterator, spl_ce_DirectoryIterator, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/directoryiterator.zep.h b/ext/stub/oo/extend/spl/directoryiterator.zep.h new file mode 100644 index 0000000000..5f67d11ec0 --- /dev/null +++ b/ext/stub/oo/extend/spl/directoryiterator.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_directoryiterator_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_DirectoryIterator); + diff --git a/ext/test/oo/extend/spl/doublylinkedlist.zep.c b/ext/stub/oo/extend/spl/doublylinkedlist.zep.c similarity index 65% rename from ext/test/oo/extend/spl/doublylinkedlist.zep.c rename to ext/stub/oo/extend/spl/doublylinkedlist.zep.c index 3417078ae3..78609bf259 100644 --- a/ext/test/oo/extend/spl/doublylinkedlist.zep.c +++ b/ext/stub/oo/extend/spl/doublylinkedlist.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_dllist.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_DoublyLinkedList) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_DoublyLinkedList) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, DoublyLinkedList, test, oo_extend_spl_doublylinkedlist, spl_ce_SplDoublyLinkedList, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, DoublyLinkedList, stub, oo_extend_spl_doublylinkedlist, spl_ce_SplDoublyLinkedList, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/doublylinkedlist.zep.h b/ext/stub/oo/extend/spl/doublylinkedlist.zep.h new file mode 100644 index 0000000000..cf753c4e43 --- /dev/null +++ b/ext/stub/oo/extend/spl/doublylinkedlist.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_doublylinkedlist_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_DoublyLinkedList); + diff --git a/ext/test/oo/extend/spl/fileinfo.zep.c b/ext/stub/oo/extend/spl/fileinfo.zep.c similarity index 77% rename from ext/test/oo/extend/spl/fileinfo.zep.c rename to ext/stub/oo/extend/spl/fileinfo.zep.c index 2baf55f0a4..d050802621 100644 --- a/ext/test/oo/extend/spl/fileinfo.zep.c +++ b/ext/stub/oo/extend/spl/fileinfo.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_directory.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_FileInfo) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_FileInfo) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, FileInfo, test, oo_extend_spl_fileinfo, spl_ce_SplFileInfo, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, FileInfo, stub, oo_extend_spl_fileinfo, spl_ce_SplFileInfo, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/fileinfo.zep.h b/ext/stub/oo/extend/spl/fileinfo.zep.h new file mode 100644 index 0000000000..1726fb8f2e --- /dev/null +++ b/ext/stub/oo/extend/spl/fileinfo.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_fileinfo_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_FileInfo); + diff --git a/ext/test/oo/extend/spl/fileobject.zep.c b/ext/stub/oo/extend/spl/fileobject.zep.c similarity index 65% rename from ext/test/oo/extend/spl/fileobject.zep.c rename to ext/stub/oo/extend/spl/fileobject.zep.c index 86f8323d60..586f3bc5d8 100644 --- a/ext/test/oo/extend/spl/fileobject.zep.c +++ b/ext/stub/oo/extend/spl/fileobject.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_directory.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_FileObject) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_FileObject) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, FileObject, test, oo_extend_spl_fileobject, spl_ce_SplFileObject, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, FileObject, stub, oo_extend_spl_fileobject, spl_ce_SplFileObject, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/fileobject.zep.h b/ext/stub/oo/extend/spl/fileobject.zep.h new file mode 100644 index 0000000000..b3ae5f8816 --- /dev/null +++ b/ext/stub/oo/extend/spl/fileobject.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_fileobject_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_FileObject); + diff --git a/ext/test/oo/extend/spl/filesystemiterator.zep.c b/ext/stub/oo/extend/spl/filesystemiterator.zep.c similarity index 65% rename from ext/test/oo/extend/spl/filesystemiterator.zep.c rename to ext/stub/oo/extend/spl/filesystemiterator.zep.c index c4d41f9619..8d1c16ea17 100644 --- a/ext/test/oo/extend/spl/filesystemiterator.zep.c +++ b/ext/stub/oo/extend/spl/filesystemiterator.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_directory.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_FilesystemIterator) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_FilesystemIterator) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, FilesystemIterator, test, oo_extend_spl_filesystemiterator, spl_ce_FilesystemIterator, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, FilesystemIterator, stub, oo_extend_spl_filesystemiterator, spl_ce_FilesystemIterator, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/filesystemiterator.zep.h b/ext/stub/oo/extend/spl/filesystemiterator.zep.h new file mode 100644 index 0000000000..c9cb75b5dc --- /dev/null +++ b/ext/stub/oo/extend/spl/filesystemiterator.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_filesystemiterator_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_FilesystemIterator); + diff --git a/ext/test/oo/extend/spl/fixedarray.zep.c b/ext/stub/oo/extend/spl/fixedarray.zep.c similarity index 65% rename from ext/test/oo/extend/spl/fixedarray.zep.c rename to ext/stub/oo/extend/spl/fixedarray.zep.c index de3690de4d..70819b6ce1 100644 --- a/ext/test/oo/extend/spl/fixedarray.zep.c +++ b/ext/stub/oo/extend/spl/fixedarray.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_fixedarray.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_FixedArray) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_FixedArray) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, FixedArray, test, oo_extend_spl_fixedarray, spl_ce_SplFixedArray, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, FixedArray, stub, oo_extend_spl_fixedarray, spl_ce_SplFixedArray, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/fixedarray.zep.h b/ext/stub/oo/extend/spl/fixedarray.zep.h new file mode 100644 index 0000000000..739f9431b7 --- /dev/null +++ b/ext/stub/oo/extend/spl/fixedarray.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_fixedarray_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_FixedArray); + diff --git a/ext/test/oo/extend/spl/globiterator.zep.c b/ext/stub/oo/extend/spl/globiterator.zep.c similarity index 64% rename from ext/test/oo/extend/spl/globiterator.zep.c rename to ext/stub/oo/extend/spl/globiterator.zep.c index 32915adef1..7d7525a161 100644 --- a/ext/test/oo/extend/spl/globiterator.zep.c +++ b/ext/stub/oo/extend/spl/globiterator.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_directory.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_GlobIterator) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_GlobIterator) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, GlobIterator, test, oo_extend_spl_globiterator, spl_ce_GlobIterator, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, GlobIterator, stub, oo_extend_spl_globiterator, spl_ce_GlobIterator, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/globiterator.zep.h b/ext/stub/oo/extend/spl/globiterator.zep.h new file mode 100644 index 0000000000..77910d3942 --- /dev/null +++ b/ext/stub/oo/extend/spl/globiterator.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_globiterator_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_GlobIterator); + diff --git a/ext/test/oo/extend/spl/heap.zep.c b/ext/stub/oo/extend/spl/heap.zep.c similarity index 77% rename from ext/test/oo/extend/spl/heap.zep.c rename to ext/stub/oo/extend/spl/heap.zep.c index 01fd220ab4..dda03aae34 100644 --- a/ext/test/oo/extend/spl/heap.zep.c +++ b/ext/stub/oo/extend/spl/heap.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_heap.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_Heap) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_Heap) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, Heap, test, oo_extend_spl_heap, spl_ce_SplHeap, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, Heap, stub, oo_extend_spl_heap, spl_ce_SplHeap, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/heap.zep.h b/ext/stub/oo/extend/spl/heap.zep.h new file mode 100644 index 0000000000..0b99b9ec13 --- /dev/null +++ b/ext/stub/oo/extend/spl/heap.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_heap_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_Heap); + diff --git a/ext/test/oo/extend/spl/maxheap.zep.c b/ext/stub/oo/extend/spl/maxheap.zep.c similarity index 77% rename from ext/test/oo/extend/spl/maxheap.zep.c rename to ext/stub/oo/extend/spl/maxheap.zep.c index 236bed5a29..a36fce4631 100644 --- a/ext/test/oo/extend/spl/maxheap.zep.c +++ b/ext/stub/oo/extend/spl/maxheap.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_heap.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_MaxHeap) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_MaxHeap) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, MaxHeap, test, oo_extend_spl_maxheap, spl_ce_SplMaxHeap, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, MaxHeap, stub, oo_extend_spl_maxheap, spl_ce_SplMaxHeap, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/maxheap.zep.h b/ext/stub/oo/extend/spl/maxheap.zep.h new file mode 100644 index 0000000000..1d1abc2d86 --- /dev/null +++ b/ext/stub/oo/extend/spl/maxheap.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_maxheap_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_MaxHeap); + diff --git a/ext/test/oo/extend/spl/minheap.zep.c b/ext/stub/oo/extend/spl/minheap.zep.c similarity index 77% rename from ext/test/oo/extend/spl/minheap.zep.c rename to ext/stub/oo/extend/spl/minheap.zep.c index 25052930d3..67e9ee1110 100644 --- a/ext/test/oo/extend/spl/minheap.zep.c +++ b/ext/stub/oo/extend/spl/minheap.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_heap.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_MinHeap) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_MinHeap) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, MinHeap, test, oo_extend_spl_minheap, spl_ce_SplMinHeap, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, MinHeap, stub, oo_extend_spl_minheap, spl_ce_SplMinHeap, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/minheap.zep.h b/ext/stub/oo/extend/spl/minheap.zep.h new file mode 100644 index 0000000000..02edd6439f --- /dev/null +++ b/ext/stub/oo/extend/spl/minheap.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_minheap_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_MinHeap); + diff --git a/ext/test/oo/extend/spl/priorityqueue.zep.c b/ext/stub/oo/extend/spl/priorityqueue.zep.c similarity index 64% rename from ext/test/oo/extend/spl/priorityqueue.zep.c rename to ext/stub/oo/extend/spl/priorityqueue.zep.c index 90953c0c54..18e7705f38 100644 --- a/ext/test/oo/extend/spl/priorityqueue.zep.c +++ b/ext/stub/oo/extend/spl/priorityqueue.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_heap.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_PriorityQueue) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_PriorityQueue) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, PriorityQueue, test, oo_extend_spl_priorityqueue, spl_ce_SplPriorityQueue, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, PriorityQueue, stub, oo_extend_spl_priorityqueue, spl_ce_SplPriorityQueue, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/priorityqueue.zep.h b/ext/stub/oo/extend/spl/priorityqueue.zep.h new file mode 100644 index 0000000000..11141eb60e --- /dev/null +++ b/ext/stub/oo/extend/spl/priorityqueue.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_priorityqueue_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_PriorityQueue); + diff --git a/ext/test/oo/extend/spl/queue.zep.c b/ext/stub/oo/extend/spl/queue.zep.c similarity index 77% rename from ext/test/oo/extend/spl/queue.zep.c rename to ext/stub/oo/extend/spl/queue.zep.c index d43fcc6fd7..ca3522cbde 100644 --- a/ext/test/oo/extend/spl/queue.zep.c +++ b/ext/stub/oo/extend/spl/queue.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_dllist.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_Queue) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_Queue) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, Queue, test, oo_extend_spl_queue, spl_ce_SplQueue, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, Queue, stub, oo_extend_spl_queue, spl_ce_SplQueue, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/queue.zep.h b/ext/stub/oo/extend/spl/queue.zep.h new file mode 100644 index 0000000000..43d8b57b9a --- /dev/null +++ b/ext/stub/oo/extend/spl/queue.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_queue_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_Queue); + diff --git a/ext/test/oo/extend/spl/recursivedirectoryiterator.zep.c b/ext/stub/oo/extend/spl/recursivedirectoryiterator.zep.c similarity index 66% rename from ext/test/oo/extend/spl/recursivedirectoryiterator.zep.c rename to ext/stub/oo/extend/spl/recursivedirectoryiterator.zep.c index 160e9ad664..82053e5e7b 100644 --- a/ext/test/oo/extend/spl/recursivedirectoryiterator.zep.c +++ b/ext/stub/oo/extend/spl/recursivedirectoryiterator.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_directory.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_RecursiveDirectoryIterator) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_RecursiveDirectoryIterator) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, RecursiveDirectoryIterator, test, oo_extend_spl_recursivedirectoryiterator, spl_ce_RecursiveDirectoryIterator, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, RecursiveDirectoryIterator, stub, oo_extend_spl_recursivedirectoryiterator, spl_ce_RecursiveDirectoryIterator, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/recursivedirectoryiterator.zep.h b/ext/stub/oo/extend/spl/recursivedirectoryiterator.zep.h new file mode 100644 index 0000000000..c84dba8e3a --- /dev/null +++ b/ext/stub/oo/extend/spl/recursivedirectoryiterator.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_recursivedirectoryiterator_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_RecursiveDirectoryIterator); + diff --git a/ext/test/oo/extend/spl/stack.zep.c b/ext/stub/oo/extend/spl/stack.zep.c similarity index 77% rename from ext/test/oo/extend/spl/stack.zep.c rename to ext/stub/oo/extend/spl/stack.zep.c index bae458edf0..07011eef30 100644 --- a/ext/test/oo/extend/spl/stack.zep.c +++ b/ext/stub/oo/extend/spl/stack.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_dllist.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_Stack) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_Stack) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, Stack, test, oo_extend_spl_stack, spl_ce_SplStack, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, Stack, stub, oo_extend_spl_stack, spl_ce_SplStack, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/stack.zep.h b/ext/stub/oo/extend/spl/stack.zep.h new file mode 100644 index 0000000000..15d9a99594 --- /dev/null +++ b/ext/stub/oo/extend/spl/stack.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_stack_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_Stack); + diff --git a/ext/test/oo/extend/spl/tempfileobject.zep.c b/ext/stub/oo/extend/spl/tempfileobject.zep.c similarity index 65% rename from ext/test/oo/extend/spl/tempfileobject.zep.c rename to ext/stub/oo/extend/spl/tempfileobject.zep.c index 3a834a4b53..9cf3670d2f 100644 --- a/ext/test/oo/extend/spl/tempfileobject.zep.c +++ b/ext/stub/oo/extend/spl/tempfileobject.zep.c @@ -15,9 +15,9 @@ #include "ext/spl/spl_directory.h" -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_TempFileObject) { +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_TempFileObject) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Extend\\Spl, TempFileObject, test, oo_extend_spl_tempfileobject, spl_ce_SplTempFileObject, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Extend\\Spl, TempFileObject, stub, oo_extend_spl_tempfileobject, spl_ce_SplTempFileObject, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/extend/spl/tempfileobject.zep.h b/ext/stub/oo/extend/spl/tempfileobject.zep.h new file mode 100644 index 0000000000..27f35ec9c8 --- /dev/null +++ b/ext/stub/oo/extend/spl/tempfileobject.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_extend_spl_tempfileobject_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Extend_Spl_TempFileObject); + diff --git a/ext/test/oo/extendpdoclass.zep.c b/ext/stub/oo/extendpdoclass.zep.c similarity index 84% rename from ext/test/oo/extendpdoclass.zep.c rename to ext/stub/oo/extendpdoclass.zep.c index 4fb9861114..96358e8717 100644 --- a/ext/test/oo/extendpdoclass.zep.c +++ b/ext/stub/oo/extendpdoclass.zep.c @@ -20,15 +20,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Oo_ExtendPdoClass) { +ZEPHIR_INIT_CLASS(Stub_Oo_ExtendPdoClass) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo, ExtendPdoClass, test, oo_extendpdoclass, php_pdo_get_dbh_ce(), test_oo_extendpdoclass_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo, ExtendPdoClass, stub, oo_extendpdoclass, php_pdo_get_dbh_ce(), stub_oo_extendpdoclass_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Oo_ExtendPdoClass, __construct) { +PHP_METHOD(Stub_Oo_ExtendPdoClass, __construct) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -72,10 +72,10 @@ PHP_METHOD(Test_Oo_ExtendPdoClass, __construct) { ZEPHIR_INIT_VAR(&_0); zephir_create_array(&_0, 1, 0); ZEPHIR_INIT_VAR(&_1); - ZVAL_STRING(&_1, "Test\\PdoStatement"); + ZVAL_STRING(&_1, "Stub\\PdoStatement"); zephir_array_fast_append(&_0, &_1); zephir_array_update_long(attrs, 13, &_0, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY); - ZEPHIR_CALL_PARENT(NULL, test_oo_extendpdoclass_ce, getThis(), "__construct", NULL, 0, &dsn, &username, &password, attrs); + ZEPHIR_CALL_PARENT(NULL, stub_oo_extendpdoclass_ce, getThis(), "__construct", NULL, 0, &dsn, &username, &password, attrs); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); diff --git a/ext/test/oo/extendpdoclass.zep.h b/ext/stub/oo/extendpdoclass.zep.h similarity index 58% rename from ext/test/oo/extendpdoclass.zep.h rename to ext/stub/oo/extendpdoclass.zep.h index e36f4212c5..f83d066a46 100644 --- a/ext/test/oo/extendpdoclass.zep.h +++ b/ext/stub/oo/extendpdoclass.zep.h @@ -1,11 +1,11 @@ -extern zend_class_entry *test_oo_extendpdoclass_ce; +extern zend_class_entry *stub_oo_extendpdoclass_ce; -ZEPHIR_INIT_CLASS(Test_Oo_ExtendPdoClass); +ZEPHIR_INIT_CLASS(Stub_Oo_ExtendPdoClass); -PHP_METHOD(Test_Oo_ExtendPdoClass, __construct); +PHP_METHOD(Stub_Oo_ExtendPdoClass, __construct); -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_extendpdoclass___construct, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_extendpdoclass___construct, 0, 0, 1) #if PHP_VERSION_ID >= 70200 ZEND_ARG_TYPE_INFO(0, dsn, IS_STRING, 0) #else @@ -24,7 +24,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_extendpdoclass___construct, 0, 0, 1) ZEND_ARG_INFO(0, attrs) ZEND_END_ARG_INFO() -ZEPHIR_INIT_FUNCS(test_oo_extendpdoclass_method_entry) { - PHP_ME(Test_Oo_ExtendPdoClass, __construct, arginfo_test_oo_extendpdoclass___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) +ZEPHIR_INIT_FUNCS(stub_oo_extendpdoclass_method_entry) { + PHP_ME(Stub_Oo_ExtendPdoClass, __construct, arginfo_stub_oo_extendpdoclass___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) PHP_FE_END }; diff --git a/ext/test/oo/ooconstruct.zep.c b/ext/stub/oo/ooconstruct.zep.c similarity index 66% rename from ext/test/oo/ooconstruct.zep.c rename to ext/stub/oo/ooconstruct.zep.c index f5d55b48f3..ab1eddb722 100644 --- a/ext/test/oo/ooconstruct.zep.c +++ b/ext/stub/oo/ooconstruct.zep.c @@ -18,15 +18,15 @@ /** * Class with constructor */ -ZEPHIR_INIT_CLASS(Test_Oo_OoConstruct) { +ZEPHIR_INIT_CLASS(Stub_Oo_OoConstruct) { - ZEPHIR_REGISTER_CLASS(Test\\Oo, OoConstruct, test, oo_ooconstruct, test_oo_ooconstruct_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Oo, OoConstruct, stub, oo_ooconstruct, stub_oo_ooconstruct_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Oo_OoConstruct, __construct) { +PHP_METHOD(Stub_Oo_OoConstruct, __construct) { zval *this_ptr = getThis(); diff --git a/ext/stub/oo/ooconstruct.zep.h b/ext/stub/oo/ooconstruct.zep.h new file mode 100644 index 0000000000..d90925e006 --- /dev/null +++ b/ext/stub/oo/ooconstruct.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_oo_ooconstruct_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_OoConstruct); + +PHP_METHOD(Stub_Oo_OoConstruct, __construct); + +ZEPHIR_INIT_FUNCS(stub_oo_ooconstruct_method_entry) { + PHP_ME(Stub_Oo_OoConstruct, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_FE_END +}; diff --git a/ext/test/oo/ooconstructparams.zep.c b/ext/stub/oo/ooconstructparams.zep.c similarity index 65% rename from ext/test/oo/ooconstructparams.zep.c rename to ext/stub/oo/ooconstructparams.zep.c index feb6d052cc..cda6e6e194 100644 --- a/ext/test/oo/ooconstructparams.zep.c +++ b/ext/stub/oo/ooconstructparams.zep.c @@ -19,19 +19,19 @@ /** * Class with constructor + params */ -ZEPHIR_INIT_CLASS(Test_Oo_OoConstructParams) { +ZEPHIR_INIT_CLASS(Stub_Oo_OoConstructParams) { - ZEPHIR_REGISTER_CLASS(Test\\Oo, OoConstructParams, test, oo_ooconstructparams, test_oo_ooconstructparams_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Oo, OoConstructParams, stub, oo_ooconstructparams, stub_oo_ooconstructparams_method_entry, 0); - zend_declare_property_null(test_oo_ooconstructparams_ce, SL("a"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_oo_ooconstructparams_ce, SL("a"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_oo_ooconstructparams_ce, SL("b"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_oo_ooconstructparams_ce, SL("b"), ZEND_ACC_PROTECTED); return SUCCESS; } -PHP_METHOD(Test_Oo_OoConstructParams, __construct) { +PHP_METHOD(Stub_Oo_OoConstructParams, __construct) { zval *a, a_sub, *b, b_sub; zval *this_ptr = getThis(); @@ -48,7 +48,7 @@ PHP_METHOD(Test_Oo_OoConstructParams, __construct) { } -PHP_METHOD(Test_Oo_OoConstructParams, getA) { +PHP_METHOD(Stub_Oo_OoConstructParams, getA) { zval *this_ptr = getThis(); @@ -57,7 +57,7 @@ PHP_METHOD(Test_Oo_OoConstructParams, getA) { } -PHP_METHOD(Test_Oo_OoConstructParams, getB) { +PHP_METHOD(Stub_Oo_OoConstructParams, getB) { zval *this_ptr = getThis(); diff --git a/ext/stub/oo/ooconstructparams.zep.h b/ext/stub/oo/ooconstructparams.zep.h new file mode 100644 index 0000000000..e0e612c4d8 --- /dev/null +++ b/ext/stub/oo/ooconstructparams.zep.h @@ -0,0 +1,20 @@ + +extern zend_class_entry *stub_oo_ooconstructparams_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_OoConstructParams); + +PHP_METHOD(Stub_Oo_OoConstructParams, __construct); +PHP_METHOD(Stub_Oo_OoConstructParams, getA); +PHP_METHOD(Stub_Oo_OoConstructParams, getB); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooconstructparams___construct, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_ooconstructparams_method_entry) { + PHP_ME(Stub_Oo_OoConstructParams, __construct, arginfo_stub_oo_ooconstructparams___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Stub_Oo_OoConstructParams, getA, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoConstructParams, getB, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/oo/oodestruct.zep.c b/ext/stub/oo/oodestruct.zep.c similarity index 76% rename from ext/test/oo/oodestruct.zep.c rename to ext/stub/oo/oodestruct.zep.c index 5bb4c67a48..8a10e9b140 100644 --- a/ext/test/oo/oodestruct.zep.c +++ b/ext/stub/oo/oodestruct.zep.c @@ -24,62 +24,59 @@ #include "kernel/string.h" -/** - * Class with dynamic new +/** + * Class with dynamic new */ -ZEPHIR_INIT_CLASS(Test_Oo_OoDestruct) { +ZEPHIR_INIT_CLASS(Stub_Oo_OoDestruct) { - ZEPHIR_REGISTER_CLASS(Test\\Oo, OoDestruct, test, oo_oodestruct, test_oo_oodestruct_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Oo, OoDestruct, stub, oo_oodestruct, stub_oo_oodestruct_method_entry, 0); - zend_declare_property_bool(test_oo_oodestruct_ce, SL("checked"), 0, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_bool(stub_oo_oodestruct_ce, SL("checked"), 0, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); - zend_declare_property_null(test_oo_oodestruct_ce, SL("file"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_oo_oodestruct_ce, SL("file"), ZEND_ACC_PROTECTED); - /** - * Image height - * - * @var int + /** + * Image height + * + * @var int */ - zend_declare_property_null(test_oo_oodestruct_ce, SL("height"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_oo_oodestruct_ce, SL("height"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_oo_oodestruct_ce, SL("image"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_oo_oodestruct_ce, SL("image"), ZEND_ACC_PROTECTED); - /** - * Image mime type - * - * @var string + /** + * Image mime type + * + * @var string */ - zend_declare_property_null(test_oo_oodestruct_ce, SL("mime"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_oo_oodestruct_ce, SL("mime"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_oo_oodestruct_ce, SL("realpath"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_oo_oodestruct_ce, SL("realpath"), ZEND_ACC_PROTECTED); - /** - * Image type - * - * Driver dependent - * - * @var int + /** + * Image type + * + * Driver dependent + * + * @var int */ - zend_declare_property_null(test_oo_oodestruct_ce, SL("type"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_oo_oodestruct_ce, SL("type"), ZEND_ACC_PROTECTED); - /** - * Image width - * - * @var int + /** + * Image width + * + * @var int */ - zend_declare_property_null(test_oo_oodestruct_ce, SL("width"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_oo_oodestruct_ce, SL("width"), ZEND_ACC_PROTECTED); return SUCCESS; } /** - * - * * Image height - * */ -PHP_METHOD(Test_Oo_OoDestruct, getHeight) { +PHP_METHOD(Stub_Oo_OoDestruct, getHeight) { zval *this_ptr = getThis(); @@ -88,7 +85,7 @@ PHP_METHOD(Test_Oo_OoDestruct, getHeight) { } -PHP_METHOD(Test_Oo_OoDestruct, getImage) { +PHP_METHOD(Stub_Oo_OoDestruct, getImage) { zval *this_ptr = getThis(); @@ -98,12 +95,9 @@ PHP_METHOD(Test_Oo_OoDestruct, getImage) { } /** - * - * * Image mime type - * */ -PHP_METHOD(Test_Oo_OoDestruct, getMime) { +PHP_METHOD(Stub_Oo_OoDestruct, getMime) { zval *this_ptr = getThis(); @@ -112,7 +106,7 @@ PHP_METHOD(Test_Oo_OoDestruct, getMime) { } -PHP_METHOD(Test_Oo_OoDestruct, getRealpath) { +PHP_METHOD(Stub_Oo_OoDestruct, getRealpath) { zval *this_ptr = getThis(); @@ -122,16 +116,13 @@ PHP_METHOD(Test_Oo_OoDestruct, getRealpath) { } /** + * Image type * * - * Image type - * - * - * * Driver dependent * */ -PHP_METHOD(Test_Oo_OoDestruct, getType) { +PHP_METHOD(Stub_Oo_OoDestruct, getType) { zval *this_ptr = getThis(); @@ -141,12 +132,9 @@ PHP_METHOD(Test_Oo_OoDestruct, getType) { } /** - * - * * Image width - * */ -PHP_METHOD(Test_Oo_OoDestruct, getWidth) { +PHP_METHOD(Stub_Oo_OoDestruct, getWidth) { zval *this_ptr = getThis(); @@ -155,7 +143,7 @@ PHP_METHOD(Test_Oo_OoDestruct, getWidth) { } -PHP_METHOD(Test_Oo_OoDestruct, __construct) { +PHP_METHOD(Stub_Oo_OoDestruct, __construct) { zend_bool _30$$13; zend_class_entry *_26$$11 = NULL, *_22$$12 = NULL, *_32$$14 = NULL; @@ -231,89 +219,89 @@ PHP_METHOD(Test_Oo_OoDestruct, __construct) { } - zephir_read_static_property_ce(&_0, test_oo_oodestruct_ce, SL("checked"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_0, stub_oo_oodestruct_ce, SL("checked"), PH_NOISY_CC | PH_READONLY); if (!(zephir_is_true(&_0))) { ZEPHIR_CALL_SELF(NULL, "check", NULL, 0); zephir_check_call_status(); } zephir_update_property_zval(this_ptr, ZEND_STRL("file"), &file); - zephir_read_property(&_1, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_1, this_ptr, ZEND_STRL("file"), PH_NOISY_CC | PH_READONLY); if ((zephir_file_exists(&_1) == SUCCESS)) { - zephir_read_property(&_2$$4, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_2$$4, this_ptr, ZEND_STRL("file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_FUNCTION(&_3$$4, "realpath", NULL, 58, &_2$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, ZEND_STRL("realpath"), &_3$$4); - zephir_read_property(&_4$$4, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_4$$4, this_ptr, ZEND_STRL("file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 59, &_4$$4); zephir_check_call_status(); if (zephir_is_true(&imageinfo)) { - zephir_array_fetch_long(&_5$$5, &imageinfo, 0, PH_NOISY | PH_READONLY, "test/oo/oodestruct.zep", 62); + zephir_array_fetch_long(&_5$$5, &imageinfo, 0, PH_NOISY | PH_READONLY, "stub/oo/oodestruct.zep", 62); zephir_update_property_zval(this_ptr, ZEND_STRL("width"), &_5$$5); - zephir_array_fetch_long(&_6$$5, &imageinfo, 1, PH_NOISY | PH_READONLY, "test/oo/oodestruct.zep", 63); + zephir_array_fetch_long(&_6$$5, &imageinfo, 1, PH_NOISY | PH_READONLY, "stub/oo/oodestruct.zep", 63); zephir_update_property_zval(this_ptr, ZEND_STRL("height"), &_6$$5); - zephir_array_fetch_long(&_7$$5, &imageinfo, 2, PH_NOISY | PH_READONLY, "test/oo/oodestruct.zep", 64); + zephir_array_fetch_long(&_7$$5, &imageinfo, 2, PH_NOISY | PH_READONLY, "stub/oo/oodestruct.zep", 64); zephir_update_property_zval(this_ptr, ZEND_STRL("type"), &_7$$5); - zephir_array_fetch_string(&_8$$5, &imageinfo, SL("mime"), PH_NOISY | PH_READONLY, "test/oo/oodestruct.zep", 65); + zephir_array_fetch_string(&_8$$5, &imageinfo, SL("mime"), PH_NOISY | PH_READONLY, "stub/oo/oodestruct.zep", 65); zephir_update_property_zval(this_ptr, ZEND_STRL("mime"), &_8$$5); } - zephir_read_property(&_9$$4, this_ptr, SL("type"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_9$$4, this_ptr, ZEND_STRL("type"), PH_NOISY_CC | PH_READONLY); do { if (ZEPHIR_IS_LONG(&_9$$4, 1)) { - zephir_read_property(&_10$$6, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_10$$6, this_ptr, ZEND_STRL("file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 60, &_10$$6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, ZEND_STRL("image"), &_11$$6); break; } if (ZEPHIR_IS_LONG(&_9$$4, 2)) { - zephir_read_property(&_12$$7, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_12$$7, this_ptr, ZEND_STRL("file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 61, &_12$$7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, ZEND_STRL("image"), &_13$$7); break; } if (ZEPHIR_IS_LONG(&_9$$4, 3)) { - zephir_read_property(&_14$$8, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_14$$8, this_ptr, ZEND_STRL("file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 62, &_14$$8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, ZEND_STRL("image"), &_15$$8); break; } if (ZEPHIR_IS_LONG(&_9$$4, 15)) { - zephir_read_property(&_16$$9, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_16$$9, this_ptr, ZEND_STRL("file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 63, &_16$$9); zephir_check_call_status(); zephir_update_property_zval(this_ptr, ZEND_STRL("image"), &_17$$9); break; } if (ZEPHIR_IS_LONG(&_9$$4, 16)) { - zephir_read_property(&_18$$10, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_18$$10, this_ptr, ZEND_STRL("file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 64, &_18$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, ZEND_STRL("image"), &_19$$10); break; } - zephir_read_property(&_20$$11, this_ptr, SL("mime"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_20$$11, this_ptr, ZEND_STRL("mime"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_20$$11)) { ZEPHIR_INIT_VAR(&_21$$12); if (!_22$$12) { - _22$$12 = zephir_fetch_class_str_ex(SL("Test\\Oo\\Exception"), ZEND_FETCH_CLASS_AUTO); + _22$$12 = zephir_fetch_class_str_ex(SL("Stub\\Oo\\Exception"), ZEND_FETCH_CLASS_AUTO); } object_init_ex(&_21$$12, _22$$12); if (zephir_has_constructor(&_21$$12)) { - zephir_read_property(&_23$$12, this_ptr, SL("mime"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_23$$12, this_ptr, ZEND_STRL("mime"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_24$$12); ZEPHIR_CONCAT_SVS(&_24$$12, "Installed GD does not support ", &_23$$12, " images"); ZEPHIR_CALL_METHOD(NULL, &_21$$12, "__construct", NULL, 0, &_24$$12); zephir_check_call_status(); } - zephir_throw_exception_debug(&_21$$12, "test/oo/oodestruct.zep", 93); + zephir_throw_exception_debug(&_21$$12, "stub/oo/oodestruct.zep", 93); ZEPHIR_MM_RESTORE(); return; } ZEPHIR_INIT_VAR(&_25$$11); if (!_26$$11) { - _26$$11 = zephir_fetch_class_str_ex(SL("Test\\Oo\\Exception"), ZEND_FETCH_CLASS_AUTO); + _26$$11 = zephir_fetch_class_str_ex(SL("Stub\\Oo\\Exception"), ZEND_FETCH_CLASS_AUTO); } object_init_ex(&_25$$11, _26$$11); if (zephir_has_constructor(&_25$$11)) { @@ -322,12 +310,12 @@ PHP_METHOD(Test_Oo_OoDestruct, __construct) { ZEPHIR_CALL_METHOD(NULL, &_25$$11, "__construct", NULL, 0, &_27$$11); zephir_check_call_status(); } - zephir_throw_exception_debug(&_25$$11, "test/oo/oodestruct.zep", 98); + zephir_throw_exception_debug(&_25$$11, "stub/oo/oodestruct.zep", 98); ZEPHIR_MM_RESTORE(); return; } while(0); - zephir_read_property(&_28$$4, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_28$$4, this_ptr, ZEND_STRL("image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_29, 65, &_28$$4, &__$true); zephir_check_call_status(); } else { @@ -338,17 +326,17 @@ PHP_METHOD(Test_Oo_OoDestruct, __construct) { if (UNEXPECTED(_30$$13)) { ZEPHIR_INIT_VAR(&_31$$14); if (!_32$$14) { - _32$$14 = zephir_fetch_class_str_ex(SL("Test\\Oo\\Exception"), ZEND_FETCH_CLASS_AUTO); + _32$$14 = zephir_fetch_class_str_ex(SL("Stub\\Oo\\Exception"), ZEND_FETCH_CLASS_AUTO); } object_init_ex(&_31$$14, _32$$14); if (zephir_has_constructor(&_31$$14)) { - zephir_read_property(&_33$$14, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_33$$14, this_ptr, ZEND_STRL("file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_34$$14); ZEPHIR_CONCAT_SV(&_34$$14, "Failed to create image from file ", &_33$$14); ZEPHIR_CALL_METHOD(NULL, &_31$$14, "__construct", NULL, 0, &_34$$14); zephir_check_call_status(); } - zephir_throw_exception_debug(&_31$$14, "test/oo/oodestruct.zep", 107); + zephir_throw_exception_debug(&_31$$14, "stub/oo/oodestruct.zep", 107); ZEPHIR_MM_RESTORE(); return; } @@ -357,13 +345,13 @@ PHP_METHOD(Test_Oo_OoDestruct, __construct) { ZEPHIR_CALL_FUNCTION(&_37$$13, "imagecreatetruecolor", NULL, 66, &_35$$13, &_36$$13); zephir_check_call_status(); zephir_update_property_zval(this_ptr, ZEND_STRL("image"), &_37$$13); - zephir_read_property(&_35$$13, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_35$$13, this_ptr, ZEND_STRL("image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 67, &_35$$13, &__$true); zephir_check_call_status(); - zephir_read_property(&_36$$13, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_36$$13, this_ptr, ZEND_STRL("image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_29, 65, &_36$$13, &__$true); zephir_check_call_status(); - zephir_read_property(&_38$$13, this_ptr, SL("file"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_38$$13, this_ptr, ZEND_STRL("file"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, ZEND_STRL("realpath"), &_38$$13); ZEPHIR_INIT_ZVAL_NREF(_39$$13); ZVAL_LONG(&_39$$13, width); @@ -383,7 +371,7 @@ PHP_METHOD(Test_Oo_OoDestruct, __construct) { } -PHP_METHOD(Test_Oo_OoDestruct, __destruct) { +PHP_METHOD(Stub_Oo_OoDestruct, __destruct) { zval image, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -395,7 +383,7 @@ PHP_METHOD(Test_Oo_OoDestruct, __destruct) { ZEPHIR_MM_GROW(); - zephir_read_property(&_0, this_ptr, SL("image"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&image, &_0); if (Z_TYPE_P(&image) == IS_RESOURCE) { ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 68, &image); @@ -405,7 +393,7 @@ PHP_METHOD(Test_Oo_OoDestruct, __destruct) { } -PHP_METHOD(Test_Oo_OoDestruct, check) { +PHP_METHOD(Stub_Oo_OoDestruct, check) { zend_class_entry *_2$$4 = NULL, *_8$$5 = NULL; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -427,14 +415,14 @@ PHP_METHOD(Test_Oo_OoDestruct, check) { ZEPHIR_MM_GROW(); - zephir_read_static_property_ce(&_0, test_oo_oodestruct_ce, SL("checked"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_0, stub_oo_oodestruct_ce, SL("checked"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { RETURN_MM_BOOL(1); } if (UNEXPECTED(!((zephir_function_exists_ex(ZEND_STRL("gd_info")) == SUCCESS)))) { ZEPHIR_INIT_VAR(&_1$$4); if (!_2$$4) { - _2$$4 = zephir_fetch_class_str_ex(SL("Test\\Oo\\Exception"), ZEND_FETCH_CLASS_AUTO); + _2$$4 = zephir_fetch_class_str_ex(SL("Stub\\Oo\\Exception"), ZEND_FETCH_CLASS_AUTO); } object_init_ex(&_1$$4, _2$$4); if (zephir_has_constructor(&_1$$4)) { @@ -443,7 +431,7 @@ PHP_METHOD(Test_Oo_OoDestruct, check) { ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 0, &_3$$4); zephir_check_call_status(); } - zephir_throw_exception_debug(&_1$$4, "test/oo/oodestruct.zep", 146); + zephir_throw_exception_debug(&_1$$4, "stub/oo/oodestruct.zep", 146); ZEPHIR_MM_RESTORE(); return; } @@ -458,7 +446,7 @@ PHP_METHOD(Test_Oo_OoDestruct, check) { if (UNEXPECTED(!zephir_is_true(&_6))) { ZEPHIR_INIT_VAR(&_7$$5); if (!_8$$5) { - _8$$5 = zephir_fetch_class_str_ex(SL("Test\\Oo\\Exception"), ZEND_FETCH_CLASS_AUTO); + _8$$5 = zephir_fetch_class_str_ex(SL("Stub\\Oo\\Exception"), ZEND_FETCH_CLASS_AUTO); } object_init_ex(&_7$$5, _8$$5); if (zephir_has_constructor(&_7$$5)) { @@ -467,17 +455,17 @@ PHP_METHOD(Test_Oo_OoDestruct, check) { ZEPHIR_CALL_METHOD(NULL, &_7$$5, "__construct", NULL, 0, &_9$$5); zephir_check_call_status(); } - zephir_throw_exception_debug(&_7$$5, "test/oo/oodestruct.zep", 154); + zephir_throw_exception_debug(&_7$$5, "stub/oo/oodestruct.zep", 154); ZEPHIR_MM_RESTORE(); return; } - zephir_update_static_property_ce(test_oo_oodestruct_ce, ZEND_STRL("checked"), &__$true); - zephir_read_static_property_ce(&_10, test_oo_oodestruct_ce, SL("checked"), PH_NOISY_CC | PH_READONLY); + zephir_update_static_property_ce(stub_oo_oodestruct_ce, ZEND_STRL("checked"), &__$true); + zephir_read_static_property_ce(&_10, stub_oo_oodestruct_ce, SL("checked"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_10); } -PHP_METHOD(Test_Oo_OoDestruct, getVersion) { +PHP_METHOD(Stub_Oo_OoDestruct, getVersion) { zend_class_entry *_1$$3 = NULL; zval version, info, matches, _3, _4, _0$$3, _2$$3, _5$$5, _6$$5, _7$$5, _8$$5; @@ -502,7 +490,7 @@ PHP_METHOD(Test_Oo_OoDestruct, getVersion) { if (UNEXPECTED(!((zephir_function_exists_ex(ZEND_STRL("gd_info")) == SUCCESS)))) { ZEPHIR_INIT_VAR(&_0$$3); if (!_1$$3) { - _1$$3 = zephir_fetch_class_str_ex(SL("Test\\Oo\\Exception"), ZEND_FETCH_CLASS_AUTO); + _1$$3 = zephir_fetch_class_str_ex(SL("Stub\\Oo\\Exception"), ZEND_FETCH_CLASS_AUTO); } object_init_ex(&_0$$3, _1$$3); if (zephir_has_constructor(&_0$$3)) { @@ -511,7 +499,7 @@ PHP_METHOD(Test_Oo_OoDestruct, getVersion) { ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 0, &_2$$3); zephir_check_call_status(); } - zephir_throw_exception_debug(&_0$$3, "test/oo/oodestruct.zep", 171); + zephir_throw_exception_debug(&_0$$3, "stub/oo/oodestruct.zep", 171); ZEPHIR_MM_RESTORE(); return; } @@ -529,7 +517,7 @@ PHP_METHOD(Test_Oo_OoDestruct, getVersion) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&matches); ZVAL_NULL(&matches); - zephir_array_fetch_string(&_5$$5, &info, SL("GD Version"), PH_NOISY | PH_READONLY, "test/oo/oodestruct.zep", 182); + zephir_array_fetch_string(&_5$$5, &info, SL("GD Version"), PH_NOISY | PH_READONLY, "stub/oo/oodestruct.zep", 182); ZEPHIR_INIT_VAR(&_6$$5); ZVAL_STRING(&_6$$5, "/\\d+\\.\\d+(?:\\.\\d+)?/"); ZEPHIR_INIT_VAR(&_7$$5); @@ -538,7 +526,7 @@ PHP_METHOD(Test_Oo_OoDestruct, getVersion) { zephir_preg_match(&_7$$5, &_8$$5, &_5$$5, &matches, 0, 0 , 0 ); if (zephir_is_true(&_7$$5)) { ZEPHIR_OBS_NVAR(&version); - zephir_array_fetch_long(&version, &matches, 0, PH_NOISY, "test/oo/oodestruct.zep", 183); + zephir_array_fetch_long(&version, &matches, 0, PH_NOISY, "stub/oo/oodestruct.zep", 183); } } RETURN_CCTOR(&version); diff --git a/ext/stub/oo/oodestruct.zep.h b/ext/stub/oo/oodestruct.zep.h new file mode 100644 index 0000000000..9fe670c307 --- /dev/null +++ b/ext/stub/oo/oodestruct.zep.h @@ -0,0 +1,89 @@ + +extern zend_class_entry *stub_oo_oodestruct_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_OoDestruct); + +PHP_METHOD(Stub_Oo_OoDestruct, getHeight); +PHP_METHOD(Stub_Oo_OoDestruct, getImage); +PHP_METHOD(Stub_Oo_OoDestruct, getMime); +PHP_METHOD(Stub_Oo_OoDestruct, getRealpath); +PHP_METHOD(Stub_Oo_OoDestruct, getType); +PHP_METHOD(Stub_Oo_OoDestruct, getWidth); +PHP_METHOD(Stub_Oo_OoDestruct, __construct); +PHP_METHOD(Stub_Oo_OoDestruct, __destruct); +PHP_METHOD(Stub_Oo_OoDestruct, check); +PHP_METHOD(Stub_Oo_OoDestruct, getVersion); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oodestruct_getheight, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oodestruct_getheight, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oodestruct_getmime, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oodestruct_getmime, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oodestruct_gettype, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oodestruct_gettype, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oodestruct_getwidth, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oodestruct_getwidth, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_oodestruct___construct, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, file, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, file) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 1) +#else + ZEND_ARG_INFO(0, width) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 1) +#else + ZEND_ARG_INFO(0, height) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oodestruct_check, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oodestruct_check, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oodestruct_getversion, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oodestruct_getversion, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_oodestruct_method_entry) { + PHP_ME(Stub_Oo_OoDestruct, getHeight, arginfo_stub_oo_oodestruct_getheight, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoDestruct, getImage, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoDestruct, getMime, arginfo_stub_oo_oodestruct_getmime, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoDestruct, getRealpath, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoDestruct, getType, arginfo_stub_oo_oodestruct_gettype, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoDestruct, getWidth, arginfo_stub_oo_oodestruct_getwidth, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoDestruct, __construct, arginfo_stub_oo_oodestruct___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Stub_Oo_OoDestruct, __destruct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_DTOR) + PHP_ME(Stub_Oo_OoDestruct, check, arginfo_stub_oo_oodestruct_check, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Oo_OoDestruct, getVersion, arginfo_stub_oo_oodestruct_getversion, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/oo/oodynamica.zep.c b/ext/stub/oo/oodynamica.zep.c similarity index 83% rename from ext/test/oo/oodynamica.zep.c rename to ext/stub/oo/oodynamica.zep.c index af81eb50ef..c6c6c2f49f 100644 --- a/ext/test/oo/oodynamica.zep.c +++ b/ext/stub/oo/oodynamica.zep.c @@ -21,15 +21,15 @@ /** * Class with dynamic new */ -ZEPHIR_INIT_CLASS(Test_Oo_OoDynamicA) { +ZEPHIR_INIT_CLASS(Stub_Oo_OoDynamicA) { - ZEPHIR_REGISTER_CLASS(Test\\Oo, OoDynamicA, test, oo_oodynamica, test_oo_oodynamica_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Oo, OoDynamicA, stub, oo_oodynamica, stub_oo_oodynamica_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Oo_OoDynamicA, getNew) { +PHP_METHOD(Stub_Oo_OoDynamicA, getNew) { zend_class_entry *_1; zval className, fullClassName, _0; @@ -61,7 +61,7 @@ PHP_METHOD(Test_Oo_OoDynamicA, getNew) { } -PHP_METHOD(Test_Oo_OoDynamicA, call2) { +PHP_METHOD(Stub_Oo_OoDynamicA, call2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -76,7 +76,7 @@ PHP_METHOD(Test_Oo_OoDynamicA, call2) { } -PHP_METHOD(Test_Oo_OoDynamicA, call1) { +PHP_METHOD(Stub_Oo_OoDynamicA, call1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -91,7 +91,7 @@ PHP_METHOD(Test_Oo_OoDynamicA, call1) { } -PHP_METHOD(Test_Oo_OoDynamicA, execute) { +PHP_METHOD(Stub_Oo_OoDynamicA, execute) { zval *this_ptr = getThis(); @@ -100,7 +100,7 @@ PHP_METHOD(Test_Oo_OoDynamicA, execute) { } -PHP_METHOD(Test_Oo_OoDynamicA, execute2) { +PHP_METHOD(Stub_Oo_OoDynamicA, execute2) { zval *this_ptr = getThis(); diff --git a/ext/stub/oo/oodynamica.zep.h b/ext/stub/oo/oodynamica.zep.h new file mode 100644 index 0000000000..041bc5e5fa --- /dev/null +++ b/ext/stub/oo/oodynamica.zep.h @@ -0,0 +1,19 @@ + +extern zend_class_entry *stub_oo_oodynamica_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_OoDynamicA); + +PHP_METHOD(Stub_Oo_OoDynamicA, getNew); +PHP_METHOD(Stub_Oo_OoDynamicA, call2); +PHP_METHOD(Stub_Oo_OoDynamicA, call1); +PHP_METHOD(Stub_Oo_OoDynamicA, execute); +PHP_METHOD(Stub_Oo_OoDynamicA, execute2); + +ZEPHIR_INIT_FUNCS(stub_oo_oodynamica_method_entry) { + PHP_ME(Stub_Oo_OoDynamicA, getNew, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Oo_OoDynamicA, call2, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Oo_OoDynamicA, call1, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Oo_OoDynamicA, execute, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoDynamicA, execute2, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/oo/oodynamicb.zep.c b/ext/stub/oo/oodynamicb.zep.c similarity index 64% rename from ext/test/oo/oodynamicb.zep.c rename to ext/stub/oo/oodynamicb.zep.c index e4a8a50112..08b3f8fa86 100644 --- a/ext/test/oo/oodynamicb.zep.c +++ b/ext/stub/oo/oodynamicb.zep.c @@ -18,15 +18,15 @@ /** * Class with dynamic new */ -ZEPHIR_INIT_CLASS(Test_Oo_OoDynamicB) { +ZEPHIR_INIT_CLASS(Stub_Oo_OoDynamicB) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo, OoDynamicB, test, oo_oodynamicb, test_oo_oodynamica_ce, test_oo_oodynamicb_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo, OoDynamicB, stub, oo_oodynamicb, stub_oo_oodynamica_ce, stub_oo_oodynamicb_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Oo_OoDynamicB, execute) { +PHP_METHOD(Stub_Oo_OoDynamicB, execute) { zval *this_ptr = getThis(); @@ -35,7 +35,7 @@ PHP_METHOD(Test_Oo_OoDynamicB, execute) { } -PHP_METHOD(Test_Oo_OoDynamicB, execute2) { +PHP_METHOD(Stub_Oo_OoDynamicB, execute2) { zval *this_ptr = getThis(); diff --git a/ext/stub/oo/oodynamicb.zep.h b/ext/stub/oo/oodynamicb.zep.h new file mode 100644 index 0000000000..28efbbcc76 --- /dev/null +++ b/ext/stub/oo/oodynamicb.zep.h @@ -0,0 +1,13 @@ + +extern zend_class_entry *stub_oo_oodynamicb_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_OoDynamicB); + +PHP_METHOD(Stub_Oo_OoDynamicB, execute); +PHP_METHOD(Stub_Oo_OoDynamicB, execute2); + +ZEPHIR_INIT_FUNCS(stub_oo_oodynamicb_method_entry) { + PHP_ME(Stub_Oo_OoDynamicB, execute, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoDynamicB, execute2, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/oo/oonativeimplements.zep.c b/ext/stub/oo/oonativeimplements.zep.c similarity index 58% rename from ext/test/oo/oonativeimplements.zep.c rename to ext/stub/oo/oonativeimplements.zep.c index d1688d81d5..00cc423b25 100644 --- a/ext/test/oo/oonativeimplements.zep.c +++ b/ext/stub/oo/oonativeimplements.zep.c @@ -21,21 +21,21 @@ /** * Class with constructor */ -ZEPHIR_INIT_CLASS(Test_Oo_OoNativeImplements) { +ZEPHIR_INIT_CLASS(Stub_Oo_OoNativeImplements) { - ZEPHIR_REGISTER_CLASS(Test\\Oo, OoNativeImplements, test, oo_oonativeimplements, test_oo_oonativeimplements_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Oo, OoNativeImplements, stub, oo_oonativeimplements, stub_oo_oonativeimplements_method_entry, 0); - zend_class_implements(test_oo_oonativeimplements_ce, 1, spl_ce_Countable); - zend_class_implements(test_oo_oonativeimplements_ce, 1, zend_ce_iterator); - zend_class_implements(test_oo_oonativeimplements_ce, 1, spl_ce_OuterIterator); - zend_class_implements(test_oo_oonativeimplements_ce, 1, spl_ce_RecursiveIterator); - zend_class_implements(test_oo_oonativeimplements_ce, 1, spl_ce_SeekableIterator); - zend_class_implements(test_oo_oonativeimplements_ce, 1, zend_ce_aggregate); + zend_class_implements(stub_oo_oonativeimplements_ce, 1, spl_ce_Countable); + zend_class_implements(stub_oo_oonativeimplements_ce, 1, zend_ce_iterator); + zend_class_implements(stub_oo_oonativeimplements_ce, 1, spl_ce_OuterIterator); + zend_class_implements(stub_oo_oonativeimplements_ce, 1, spl_ce_RecursiveIterator); + zend_class_implements(stub_oo_oonativeimplements_ce, 1, spl_ce_SeekableIterator); + zend_class_implements(stub_oo_oonativeimplements_ce, 1, zend_ce_aggregate); return SUCCESS; } -PHP_METHOD(Test_Oo_OoNativeImplements, count) { +PHP_METHOD(Stub_Oo_OoNativeImplements, count) { zval *this_ptr = getThis(); @@ -43,7 +43,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, count) { } -PHP_METHOD(Test_Oo_OoNativeImplements, current) { +PHP_METHOD(Stub_Oo_OoNativeImplements, current) { zval *this_ptr = getThis(); @@ -51,7 +51,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, current) { } -PHP_METHOD(Test_Oo_OoNativeImplements, key) { +PHP_METHOD(Stub_Oo_OoNativeImplements, key) { zval *this_ptr = getThis(); @@ -59,7 +59,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, key) { } -PHP_METHOD(Test_Oo_OoNativeImplements, next) { +PHP_METHOD(Stub_Oo_OoNativeImplements, next) { zval *this_ptr = getThis(); @@ -67,7 +67,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, next) { } -PHP_METHOD(Test_Oo_OoNativeImplements, rewind) { +PHP_METHOD(Stub_Oo_OoNativeImplements, rewind) { zval *this_ptr = getThis(); @@ -75,7 +75,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, rewind) { } -PHP_METHOD(Test_Oo_OoNativeImplements, valid) { +PHP_METHOD(Stub_Oo_OoNativeImplements, valid) { zval *this_ptr = getThis(); @@ -83,7 +83,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, valid) { } -PHP_METHOD(Test_Oo_OoNativeImplements, getInnerIterator) { +PHP_METHOD(Stub_Oo_OoNativeImplements, getInnerIterator) { zval *this_ptr = getThis(); @@ -91,7 +91,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, getInnerIterator) { } -PHP_METHOD(Test_Oo_OoNativeImplements, getChildren) { +PHP_METHOD(Stub_Oo_OoNativeImplements, getChildren) { zval *this_ptr = getThis(); @@ -99,7 +99,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, getChildren) { } -PHP_METHOD(Test_Oo_OoNativeImplements, hasChildren) { +PHP_METHOD(Stub_Oo_OoNativeImplements, hasChildren) { zval *this_ptr = getThis(); @@ -107,7 +107,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, hasChildren) { } -PHP_METHOD(Test_Oo_OoNativeImplements, seek) { +PHP_METHOD(Stub_Oo_OoNativeImplements, seek) { zval *position, position_sub; zval *this_ptr = getThis(); @@ -121,7 +121,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, seek) { } -PHP_METHOD(Test_Oo_OoNativeImplements, getIterator) { +PHP_METHOD(Stub_Oo_OoNativeImplements, getIterator) { zval *this_ptr = getThis(); @@ -129,7 +129,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, getIterator) { } -PHP_METHOD(Test_Oo_OoNativeImplements, offsetExists) { +PHP_METHOD(Stub_Oo_OoNativeImplements, offsetExists) { zval *offset, offset_sub; zval *this_ptr = getThis(); @@ -143,7 +143,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, offsetExists) { } -PHP_METHOD(Test_Oo_OoNativeImplements, offsetGet) { +PHP_METHOD(Stub_Oo_OoNativeImplements, offsetGet) { zval *offset, offset_sub; zval *this_ptr = getThis(); @@ -157,7 +157,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, offsetGet) { } -PHP_METHOD(Test_Oo_OoNativeImplements, offsetSet) { +PHP_METHOD(Stub_Oo_OoNativeImplements, offsetSet) { zval *offset, offset_sub, *value, value_sub; zval *this_ptr = getThis(); @@ -172,7 +172,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, offsetSet) { } -PHP_METHOD(Test_Oo_OoNativeImplements, offsetUnset) { +PHP_METHOD(Stub_Oo_OoNativeImplements, offsetUnset) { zval *offset, offset_sub; zval *this_ptr = getThis(); @@ -186,7 +186,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, offsetUnset) { } -PHP_METHOD(Test_Oo_OoNativeImplements, serialize) { +PHP_METHOD(Stub_Oo_OoNativeImplements, serialize) { zval *this_ptr = getThis(); @@ -194,7 +194,7 @@ PHP_METHOD(Test_Oo_OoNativeImplements, serialize) { } -PHP_METHOD(Test_Oo_OoNativeImplements, unserialize) { +PHP_METHOD(Stub_Oo_OoNativeImplements, unserialize) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *serialized_param = NULL; diff --git a/ext/stub/oo/oonativeimplements.zep.h b/ext/stub/oo/oonativeimplements.zep.h new file mode 100644 index 0000000000..6bf557aa35 --- /dev/null +++ b/ext/stub/oo/oonativeimplements.zep.h @@ -0,0 +1,118 @@ + +extern zend_class_entry *stub_oo_oonativeimplements_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_OoNativeImplements); + +PHP_METHOD(Stub_Oo_OoNativeImplements, count); +PHP_METHOD(Stub_Oo_OoNativeImplements, current); +PHP_METHOD(Stub_Oo_OoNativeImplements, key); +PHP_METHOD(Stub_Oo_OoNativeImplements, next); +PHP_METHOD(Stub_Oo_OoNativeImplements, rewind); +PHP_METHOD(Stub_Oo_OoNativeImplements, valid); +PHP_METHOD(Stub_Oo_OoNativeImplements, getInnerIterator); +PHP_METHOD(Stub_Oo_OoNativeImplements, getChildren); +PHP_METHOD(Stub_Oo_OoNativeImplements, hasChildren); +PHP_METHOD(Stub_Oo_OoNativeImplements, seek); +PHP_METHOD(Stub_Oo_OoNativeImplements, getIterator); +PHP_METHOD(Stub_Oo_OoNativeImplements, offsetExists); +PHP_METHOD(Stub_Oo_OoNativeImplements, offsetGet); +PHP_METHOD(Stub_Oo_OoNativeImplements, offsetSet); +PHP_METHOD(Stub_Oo_OoNativeImplements, offsetUnset); +PHP_METHOD(Stub_Oo_OoNativeImplements, serialize); +PHP_METHOD(Stub_Oo_OoNativeImplements, unserialize); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oonativeimplements_count, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oonativeimplements_count, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oonativeimplements_valid, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oonativeimplements_valid, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_stub_oo_oonativeimplements_getchildren, 0, 0, RecursiveIterator, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oonativeimplements_getchildren, 0, 0, IS_OBJECT, "RecursiveIterator", 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oonativeimplements_haschildren, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oonativeimplements_haschildren, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_oonativeimplements_seek, 0, 0, 1) + ZEND_ARG_INFO(0, position) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_stub_oo_oonativeimplements_getiterator, 0, 0, Traversable, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oonativeimplements_getiterator, 0, 0, IS_OBJECT, "Traversable", 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oonativeimplements_offsetexists, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oonativeimplements_offsetexists, 0, 1, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_oonativeimplements_offsetget, 0, 0, 1) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_oonativeimplements_offsetset, 0, 0, 2) + ZEND_ARG_INFO(0, offset) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_oonativeimplements_offsetunset, 0, 0, 1) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oonativeimplements_serialize, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_oonativeimplements_serialize, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_oonativeimplements_unserialize, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, serialized, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, serialized) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_oonativeimplements_method_entry) { + PHP_ME(Stub_Oo_OoNativeImplements, count, arginfo_stub_oo_oonativeimplements_count, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, current, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, key, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, next, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, rewind, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, valid, arginfo_stub_oo_oonativeimplements_valid, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, getInnerIterator, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, getChildren, arginfo_stub_oo_oonativeimplements_getchildren, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, hasChildren, arginfo_stub_oo_oonativeimplements_haschildren, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, seek, arginfo_stub_oo_oonativeimplements_seek, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, getIterator, arginfo_stub_oo_oonativeimplements_getiterator, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, offsetExists, arginfo_stub_oo_oonativeimplements_offsetexists, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, offsetGet, arginfo_stub_oo_oonativeimplements_offsetget, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, offsetSet, arginfo_stub_oo_oonativeimplements_offsetset, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, offsetUnset, arginfo_stub_oo_oonativeimplements_offsetunset, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, serialize, arginfo_stub_oo_oonativeimplements_serialize, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoNativeImplements, unserialize, arginfo_stub_oo_oonativeimplements_unserialize, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/oo/oonoconstruct.zep.c b/ext/stub/oo/oonoconstruct.zep.c similarity index 75% rename from ext/test/oo/oonoconstruct.zep.c rename to ext/stub/oo/oonoconstruct.zep.c index 27eb598d82..4d9a644135 100644 --- a/ext/test/oo/oonoconstruct.zep.c +++ b/ext/stub/oo/oonoconstruct.zep.c @@ -17,9 +17,9 @@ /** * Class without constructor */ -ZEPHIR_INIT_CLASS(Test_Oo_OoNoConstruct) { +ZEPHIR_INIT_CLASS(Stub_Oo_OoNoConstruct) { - ZEPHIR_REGISTER_CLASS(Test\\Oo, OoNoConstruct, test, oo_oonoconstruct, NULL, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Oo, OoNoConstruct, stub, oo_oonoconstruct, NULL, 0); return SUCCESS; diff --git a/ext/stub/oo/oonoconstruct.zep.h b/ext/stub/oo/oonoconstruct.zep.h new file mode 100644 index 0000000000..b4dca31a42 --- /dev/null +++ b/ext/stub/oo/oonoconstruct.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_oonoconstruct_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_OoNoConstruct); + diff --git a/ext/test/oo/ooparams.zep.c b/ext/stub/oo/ooparams.zep.c similarity index 84% rename from ext/test/oo/ooparams.zep.c rename to ext/stub/oo/ooparams.zep.c index e5c72fda5d..7feea0390b 100644 --- a/ext/test/oo/ooparams.zep.c +++ b/ext/stub/oo/ooparams.zep.c @@ -23,15 +23,15 @@ /** * */ -ZEPHIR_INIT_CLASS(Test_Oo_OoParams) { +ZEPHIR_INIT_CLASS(Stub_Oo_OoParams) { - ZEPHIR_REGISTER_CLASS(Test\\Oo, OoParams, test, oo_ooparams, test_oo_ooparams_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Oo, OoParams, stub, oo_ooparams, stub_oo_ooparams_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Oo_OoParams, createThisClassWithoutWriteCurrentNamespace) { +PHP_METHOD(Stub_Oo_OoParams, createThisClassWithoutWriteCurrentNamespace) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -40,7 +40,7 @@ PHP_METHOD(Test_Oo_OoParams, createThisClassWithoutWriteCurrentNamespace) { ZEPHIR_MM_GROW(); - object_init_ex(return_value, test_oo_ooparams_ce); + object_init_ex(return_value, stub_oo_ooparams_ce); if (zephir_has_constructor(return_value)) { ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 0); zephir_check_call_status(); @@ -49,7 +49,7 @@ PHP_METHOD(Test_Oo_OoParams, createThisClassWithoutWriteCurrentNamespace) { } -PHP_METHOD(Test_Oo_OoParams, createOtherClassWithoutWriteCurrentNamespace) { +PHP_METHOD(Stub_Oo_OoParams, createOtherClassWithoutWriteCurrentNamespace) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -58,7 +58,7 @@ PHP_METHOD(Test_Oo_OoParams, createOtherClassWithoutWriteCurrentNamespace) { ZEPHIR_MM_GROW(); - object_init_ex(return_value, test_oo_oodynamica_ce); + object_init_ex(return_value, stub_oo_oodynamica_ce); if (zephir_has_constructor(return_value)) { ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 0); zephir_check_call_status(); @@ -67,7 +67,7 @@ PHP_METHOD(Test_Oo_OoParams, createOtherClassWithoutWriteCurrentNamespace) { } -PHP_METHOD(Test_Oo_OoParams, setAge) { +PHP_METHOD(Stub_Oo_OoParams, setAge) { zval *age_param = NULL; zend_long age; @@ -83,7 +83,7 @@ PHP_METHOD(Test_Oo_OoParams, setAge) { } -PHP_METHOD(Test_Oo_OoParams, setAverage) { +PHP_METHOD(Stub_Oo_OoParams, setAverage) { zval *average_param = NULL; double average; @@ -99,7 +99,7 @@ PHP_METHOD(Test_Oo_OoParams, setAverage) { } -PHP_METHOD(Test_Oo_OoParams, setName) { +PHP_METHOD(Stub_Oo_OoParams, setName) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *name_param = NULL; @@ -118,7 +118,7 @@ PHP_METHOD(Test_Oo_OoParams, setName) { } -PHP_METHOD(Test_Oo_OoParams, setEnabled) { +PHP_METHOD(Stub_Oo_OoParams, setEnabled) { zval *enabled_param = NULL; zend_bool enabled; @@ -134,7 +134,7 @@ PHP_METHOD(Test_Oo_OoParams, setEnabled) { } -PHP_METHOD(Test_Oo_OoParams, setList) { +PHP_METHOD(Stub_Oo_OoParams, setList) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *someList_param = NULL; @@ -153,7 +153,7 @@ PHP_METHOD(Test_Oo_OoParams, setList) { } -PHP_METHOD(Test_Oo_OoParams, setStrictAge) { +PHP_METHOD(Stub_Oo_OoParams, setStrictAge) { zval *age_param = NULL; zend_long age; @@ -173,7 +173,7 @@ PHP_METHOD(Test_Oo_OoParams, setStrictAge) { } -PHP_METHOD(Test_Oo_OoParams, setStrictAverage) { +PHP_METHOD(Stub_Oo_OoParams, setStrictAverage) { zval *average_param = NULL; double average; @@ -193,7 +193,7 @@ PHP_METHOD(Test_Oo_OoParams, setStrictAverage) { } -PHP_METHOD(Test_Oo_OoParams, setStrictNameFromZephirLand) { +PHP_METHOD(Stub_Oo_OoParams, setStrictNameFromZephirLand) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -211,7 +211,7 @@ PHP_METHOD(Test_Oo_OoParams, setStrictNameFromZephirLand) { } -PHP_METHOD(Test_Oo_OoParams, setStrictName) { +PHP_METHOD(Stub_Oo_OoParams, setStrictName) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *name_param = NULL; @@ -239,7 +239,7 @@ PHP_METHOD(Test_Oo_OoParams, setStrictName) { } -PHP_METHOD(Test_Oo_OoParams, setStrictEnabled) { +PHP_METHOD(Stub_Oo_OoParams, setStrictEnabled) { zval *enabled_param = NULL; zend_bool enabled; @@ -255,7 +255,7 @@ PHP_METHOD(Test_Oo_OoParams, setStrictEnabled) { } -PHP_METHOD(Test_Oo_OoParams, setStrictList) { +PHP_METHOD(Stub_Oo_OoParams, setStrictList) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *someList_param = NULL; @@ -274,7 +274,7 @@ PHP_METHOD(Test_Oo_OoParams, setStrictList) { } -PHP_METHOD(Test_Oo_OoParams, setAgeDefault) { +PHP_METHOD(Stub_Oo_OoParams, setAgeDefault) { zval *age_param = NULL; zend_long age; @@ -294,7 +294,7 @@ PHP_METHOD(Test_Oo_OoParams, setAgeDefault) { } -PHP_METHOD(Test_Oo_OoParams, setAverageDefault) { +PHP_METHOD(Stub_Oo_OoParams, setAverageDefault) { zval *average_param = NULL; double average; @@ -314,7 +314,7 @@ PHP_METHOD(Test_Oo_OoParams, setAverageDefault) { } -PHP_METHOD(Test_Oo_OoParams, setNameDefault) { +PHP_METHOD(Stub_Oo_OoParams, setNameDefault) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *name_param = NULL; @@ -338,7 +338,7 @@ PHP_METHOD(Test_Oo_OoParams, setNameDefault) { } -PHP_METHOD(Test_Oo_OoParams, setEnabledDefault) { +PHP_METHOD(Stub_Oo_OoParams, setEnabledDefault) { zval *enabled_param = NULL; zend_bool enabled; @@ -358,7 +358,7 @@ PHP_METHOD(Test_Oo_OoParams, setEnabledDefault) { } -PHP_METHOD(Test_Oo_OoParams, setListDefault) { +PHP_METHOD(Stub_Oo_OoParams, setListDefault) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *someList_param = NULL; @@ -382,7 +382,7 @@ PHP_METHOD(Test_Oo_OoParams, setListDefault) { } -PHP_METHOD(Test_Oo_OoParams, setConstAge) { +PHP_METHOD(Stub_Oo_OoParams, setConstAge) { zval *age_param = NULL; zend_long age; @@ -398,7 +398,7 @@ PHP_METHOD(Test_Oo_OoParams, setConstAge) { } -PHP_METHOD(Test_Oo_OoParams, setConstAverage) { +PHP_METHOD(Stub_Oo_OoParams, setConstAverage) { zval *average_param = NULL; double average; @@ -414,7 +414,7 @@ PHP_METHOD(Test_Oo_OoParams, setConstAverage) { } -PHP_METHOD(Test_Oo_OoParams, setObject) { +PHP_METHOD(Stub_Oo_OoParams, setObject) { zval *obj, obj_sub; zval *this_ptr = getThis(); @@ -430,7 +430,7 @@ PHP_METHOD(Test_Oo_OoParams, setObject) { } -PHP_METHOD(Test_Oo_OoParams, setCallable) { +PHP_METHOD(Stub_Oo_OoParams, setCallable) { zval *obj, obj_sub; zval *this_ptr = getThis(); @@ -446,7 +446,7 @@ PHP_METHOD(Test_Oo_OoParams, setCallable) { } -PHP_METHOD(Test_Oo_OoParams, setResource) { +PHP_METHOD(Stub_Oo_OoParams, setResource) { zval *obj, obj_sub; zval *this_ptr = getThis(); @@ -462,7 +462,7 @@ PHP_METHOD(Test_Oo_OoParams, setResource) { } -PHP_METHOD(Test_Oo_OoParams, setObjectClassCast) { +PHP_METHOD(Stub_Oo_OoParams, setObjectClassCast) { zval *parameter, parameter_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/oo/ooparams.zep.h b/ext/stub/oo/ooparams.zep.h new file mode 100644 index 0000000000..82276f39c6 --- /dev/null +++ b/ext/stub/oo/ooparams.zep.h @@ -0,0 +1,201 @@ + +extern zend_class_entry *stub_oo_ooparams_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_OoParams); + +PHP_METHOD(Stub_Oo_OoParams, createThisClassWithoutWriteCurrentNamespace); +PHP_METHOD(Stub_Oo_OoParams, createOtherClassWithoutWriteCurrentNamespace); +PHP_METHOD(Stub_Oo_OoParams, setAge); +PHP_METHOD(Stub_Oo_OoParams, setAverage); +PHP_METHOD(Stub_Oo_OoParams, setName); +PHP_METHOD(Stub_Oo_OoParams, setEnabled); +PHP_METHOD(Stub_Oo_OoParams, setList); +PHP_METHOD(Stub_Oo_OoParams, setStrictAge); +PHP_METHOD(Stub_Oo_OoParams, setStrictAverage); +PHP_METHOD(Stub_Oo_OoParams, setStrictNameFromZephirLand); +PHP_METHOD(Stub_Oo_OoParams, setStrictName); +PHP_METHOD(Stub_Oo_OoParams, setStrictEnabled); +PHP_METHOD(Stub_Oo_OoParams, setStrictList); +PHP_METHOD(Stub_Oo_OoParams, setAgeDefault); +PHP_METHOD(Stub_Oo_OoParams, setAverageDefault); +PHP_METHOD(Stub_Oo_OoParams, setNameDefault); +PHP_METHOD(Stub_Oo_OoParams, setEnabledDefault); +PHP_METHOD(Stub_Oo_OoParams, setListDefault); +PHP_METHOD(Stub_Oo_OoParams, setConstAge); +PHP_METHOD(Stub_Oo_OoParams, setConstAverage); +PHP_METHOD(Stub_Oo_OoParams, setObject); +PHP_METHOD(Stub_Oo_OoParams, setCallable); +PHP_METHOD(Stub_Oo_OoParams, setResource); +PHP_METHOD(Stub_Oo_OoParams, setObjectClassCast); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setage, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, age, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, age) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setaverage, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, average, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, average) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setname, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setenabled, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, enabled, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, enabled) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setlist, 0, 0, 1) + ZEND_ARG_ARRAY_INFO(0, someList, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setstrictage, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, age, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, age) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setstrictaverage, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, average, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, average) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_ooparams_setstrictname, 0, 1, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_ooparams_setstrictname, 0, 1, IS_STRING, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setstrictenabled, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, enabled, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, enabled) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setstrictlist, 0, 0, 1) + ZEND_ARG_ARRAY_INFO(0, someList, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setagedefault, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, age, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, age) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setaveragedefault, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, average, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, average) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setnamedefault, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setenableddefault, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, enabled, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, enabled) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setlistdefault, 0, 0, 0) + ZEND_ARG_ARRAY_INFO(0, someList, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setconstage, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, age, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, age) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setconstaverage, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, average, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, average) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setobject, 0, 0, 1) + ZEND_ARG_INFO(0, obj) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setcallable, 0, 0, 1) + ZEND_ARG_INFO(0, obj) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setresource, 0, 0, 1) + ZEND_ARG_INFO(0, obj) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_ooparams_setobjectclasscast, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, parameter, Stub\\Oo\\Param, 0) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_ooparams_method_entry) { + PHP_ME(Stub_Oo_OoParams, createThisClassWithoutWriteCurrentNamespace, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, createOtherClassWithoutWriteCurrentNamespace, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setAge, arginfo_stub_oo_ooparams_setage, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setAverage, arginfo_stub_oo_ooparams_setaverage, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setName, arginfo_stub_oo_ooparams_setname, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setEnabled, arginfo_stub_oo_ooparams_setenabled, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setList, arginfo_stub_oo_ooparams_setlist, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setStrictAge, arginfo_stub_oo_ooparams_setstrictage, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setStrictAverage, arginfo_stub_oo_ooparams_setstrictaverage, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setStrictNameFromZephirLand, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setStrictName, arginfo_stub_oo_ooparams_setstrictname, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setStrictEnabled, arginfo_stub_oo_ooparams_setstrictenabled, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setStrictList, arginfo_stub_oo_ooparams_setstrictlist, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setAgeDefault, arginfo_stub_oo_ooparams_setagedefault, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setAverageDefault, arginfo_stub_oo_ooparams_setaveragedefault, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setNameDefault, arginfo_stub_oo_ooparams_setnamedefault, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setEnabledDefault, arginfo_stub_oo_ooparams_setenableddefault, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setListDefault, arginfo_stub_oo_ooparams_setlistdefault, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setConstAge, arginfo_stub_oo_ooparams_setconstage, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setConstAverage, arginfo_stub_oo_ooparams_setconstaverage, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setObject, arginfo_stub_oo_ooparams_setobject, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setCallable, arginfo_stub_oo_ooparams_setcallable, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setResource, arginfo_stub_oo_ooparams_setresource, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_OoParams, setObjectClassCast, arginfo_stub_oo_ooparams_setobjectclasscast, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/oo/param.zep.c b/ext/stub/oo/param.zep.c similarity index 66% rename from ext/test/oo/param.zep.c rename to ext/stub/oo/param.zep.c index 6ea2b51d50..c19a0f9725 100644 --- a/ext/test/oo/param.zep.c +++ b/ext/stub/oo/param.zep.c @@ -17,11 +17,11 @@ /** * Arithmetic operations */ -ZEPHIR_INIT_CLASS(Test_Oo_Param) { +ZEPHIR_INIT_CLASS(Stub_Oo_Param) { - ZEPHIR_REGISTER_CLASS(Test\\Oo, Param, test, oo_param, NULL, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Oo, Param, stub, oo_param, NULL, 0); - zend_declare_property_null(test_oo_param_ce, SL("value"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_oo_param_ce, SL("value"), ZEND_ACC_PUBLIC); return SUCCESS; diff --git a/ext/stub/oo/param.zep.h b/ext/stub/oo/param.zep.h new file mode 100644 index 0000000000..3b5e53600c --- /dev/null +++ b/ext/stub/oo/param.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_oo_param_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Param); + diff --git a/ext/test/oo/propertyaccess.zep.c b/ext/stub/oo/propertyaccess.zep.c similarity index 63% rename from ext/test/oo/propertyaccess.zep.c rename to ext/stub/oo/propertyaccess.zep.c index ec1e0d2ace..7dc1610bd7 100644 --- a/ext/test/oo/propertyaccess.zep.c +++ b/ext/stub/oo/propertyaccess.zep.c @@ -17,24 +17,21 @@ #include "kernel/object.h" -/** - * Class with constructor + params - */ -ZEPHIR_INIT_CLASS(Test_Oo_PropertyAccess) { +ZEPHIR_INIT_CLASS(Stub_Oo_PropertyAccess) { - ZEPHIR_REGISTER_CLASS(Test\\Oo, PropertyAccess, test, oo_propertyaccess, test_oo_propertyaccess_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Oo, PropertyAccess, stub, oo_propertyaccess, stub_oo_propertyaccess_method_entry, 0); - zend_declare_property_null(test_oo_propertyaccess_ce, SL("a"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_oo_propertyaccess_ce, SL("a"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_oo_propertyaccess_ce, SL("b"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_oo_propertyaccess_ce, SL("b"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_oo_propertyaccess_ce, SL("privateVariable"), ZEND_ACC_PRIVATE); + zend_declare_property_null(stub_oo_propertyaccess_ce, SL("privateVariable"), ZEND_ACC_PRIVATE); return SUCCESS; } -PHP_METHOD(Test_Oo_PropertyAccess, __construct) { +PHP_METHOD(Stub_Oo_PropertyAccess, __construct) { zval _0, _6; zval test, test1, _1, _2, _3, _4, _5, _7, _8, _9, _10; @@ -77,17 +74,17 @@ PHP_METHOD(Test_Oo_PropertyAccess, __construct) { ZVAL_DOUBLE(&_1, 6.00); zephir_array_fast_append(&_0, &_1); zephir_update_property_zval(&test, ZEND_STRL("test"), &_0); - zephir_read_property(&_2, &test, SL("test"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch_long(&_3, &_2, 0, PH_NOISY | PH_READONLY, "test/oo/propertyaccess.zep", 21); + zephir_read_property(&_2, &test, ZEND_STRL("test"), PH_NOISY_CC | PH_READONLY); + zephir_array_fetch_long(&_3, &_2, 0, PH_NOISY | PH_READONLY, "stub/oo/propertyaccess.zep", 17); zephir_update_property_zval(&test, ZEND_STRL("test2"), &_3); - zephir_read_property(&_4, &test, SL("test"), PH_NOISY_CC | PH_READONLY); - zephir_array_fetch_long(&_5, &_4, 1, PH_NOISY | PH_READONLY, "test/oo/propertyaccess.zep", 22); + zephir_read_property(&_4, &test, ZEND_STRL("test"), PH_NOISY_CC | PH_READONLY); + zephir_array_fetch_long(&_5, &_4, 1, PH_NOISY | PH_READONLY, "stub/oo/propertyaccess.zep", 18); zephir_update_property_zval(&test, ZEND_STRL("test3"), &_5); ZEPHIR_INIT_VAR(&_6); zephir_create_array(&_6, 4, 0); - zephir_read_property(&_7, &test, SL("test"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_7, &test, ZEND_STRL("test"), PH_NOISY_CC | PH_READONLY); ZEPHIR_OBS_VAR(&_8); - zephir_array_fetch_long(&_8, &_7, 1, PH_NOISY, "test/oo/propertyaccess.zep", 23); + zephir_array_fetch_long(&_8, &_7, 1, PH_NOISY, "stub/oo/propertyaccess.zep", 19); zephir_array_fast_append(&_6, &_8); ZEPHIR_INIT_NVAR(&_1); ZVAL_LONG(&_1, 1); @@ -100,15 +97,18 @@ PHP_METHOD(Test_Oo_PropertyAccess, __construct) { zephir_array_fast_append(&_6, &_1); zephir_update_property_zval(&test, ZEND_STRL("test3"), &_6); zephir_update_property_zval(this_ptr, ZEND_STRL("a"), &test); - zephir_read_property(&_9, this_ptr, SL("a"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_10, &_9, SL("test2"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_9, this_ptr, ZEND_STRL("a"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_10, &_9, ZEND_STRL("test2"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, ZEND_STRL("b"), &_10); - zephir_read_property(&test1, this_ptr, SL("a"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&test1, this_ptr, ZEND_STRL("a"), PH_NOISY_CC | PH_READONLY); ZEPHIR_MM_RESTORE(); } -PHP_METHOD(Test_Oo_PropertyAccess, setPrivatevariable) { +/** + * @issue https://github.com/phalcon/zephir/issues/1851 + */ +PHP_METHOD(Stub_Oo_PropertyAccess, setPrivatevariable) { zval *value, value_sub; zval *this_ptr = getThis(); @@ -124,7 +124,10 @@ PHP_METHOD(Test_Oo_PropertyAccess, setPrivatevariable) { } -PHP_METHOD(Test_Oo_PropertyAccess, getPrivatevariable) { +/** + * @issue https://github.com/phalcon/zephir/issues/1851 + */ +PHP_METHOD(Stub_Oo_PropertyAccess, getPrivatevariable) { zval *this_ptr = getThis(); diff --git a/ext/stub/oo/propertyaccess.zep.h b/ext/stub/oo/propertyaccess.zep.h new file mode 100644 index 0000000000..27b9c41a5e --- /dev/null +++ b/ext/stub/oo/propertyaccess.zep.h @@ -0,0 +1,23 @@ + +extern zend_class_entry *stub_oo_propertyaccess_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_PropertyAccess); + +PHP_METHOD(Stub_Oo_PropertyAccess, __construct); +PHP_METHOD(Stub_Oo_PropertyAccess, setPrivatevariable); +PHP_METHOD(Stub_Oo_PropertyAccess, getPrivatevariable); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_stub_oo_propertyaccess_setprivatevariable, 0, 1, Stub\\Oo\\PropertyAccess, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_propertyaccess_setprivatevariable, 0, 1, IS_OBJECT, "Stub\\Oo\\PropertyAccess", 0) +#endif + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_propertyaccess_method_entry) { + PHP_ME(Stub_Oo_PropertyAccess, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Stub_Oo_PropertyAccess, setPrivatevariable, arginfo_stub_oo_propertyaccess_setprivatevariable, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_PropertyAccess, getPrivatevariable, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/oo/scopes/abstractclass.zep.c b/ext/stub/oo/scopes/abstractclass.zep.c similarity index 68% rename from ext/test/oo/scopes/abstractclass.zep.c rename to ext/stub/oo/scopes/abstractclass.zep.c index 08ec667cf6..a170114a0f 100644 --- a/ext/test/oo/scopes/abstractclass.zep.c +++ b/ext/stub/oo/scopes/abstractclass.zep.c @@ -17,19 +17,19 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Oo_Scopes_AbstractClass) { +ZEPHIR_INIT_CLASS(Stub_Oo_Scopes_AbstractClass) { - ZEPHIR_REGISTER_CLASS(Test\\Oo\\Scopes, AbstractClass, test, oo_scopes_abstractclass, test_oo_scopes_abstractclass_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + ZEPHIR_REGISTER_CLASS(Stub\\Oo\\Scopes, AbstractClass, stub, oo_scopes_abstractclass, stub_oo_scopes_abstractclass_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); - zend_declare_property_string(test_oo_scopes_abstractclass_ce, SL("privateProperty2"), "private2", ZEND_ACC_PRIVATE); + zend_declare_property_string(stub_oo_scopes_abstractclass_ce, SL("privateProperty2"), "private2", ZEND_ACC_PRIVATE); - zend_declare_property_string(test_oo_scopes_abstractclass_ce, SL("protectedProperty2"), "protected2", ZEND_ACC_PROTECTED); + zend_declare_property_string(stub_oo_scopes_abstractclass_ce, SL("protectedProperty2"), "protected2", ZEND_ACC_PROTECTED); return SUCCESS; } -PHP_METHOD(Test_Oo_Scopes_AbstractClass, setProperty) { +PHP_METHOD(Stub_Oo_Scopes_AbstractClass, setProperty) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *name_param = NULL, *value, value_sub; @@ -50,7 +50,7 @@ PHP_METHOD(Test_Oo_Scopes_AbstractClass, setProperty) { } -PHP_METHOD(Test_Oo_Scopes_AbstractClass, getPrivateProperty2) { +PHP_METHOD(Stub_Oo_Scopes_AbstractClass, getPrivateProperty2) { zval *this_ptr = getThis(); @@ -59,7 +59,7 @@ PHP_METHOD(Test_Oo_Scopes_AbstractClass, getPrivateProperty2) { } -PHP_METHOD(Test_Oo_Scopes_AbstractClass, getProtectedProperty2) { +PHP_METHOD(Stub_Oo_Scopes_AbstractClass, getProtectedProperty2) { zval *this_ptr = getThis(); diff --git a/ext/stub/oo/scopes/abstractclass.zep.h b/ext/stub/oo/scopes/abstractclass.zep.h new file mode 100644 index 0000000000..e7143f1339 --- /dev/null +++ b/ext/stub/oo/scopes/abstractclass.zep.h @@ -0,0 +1,24 @@ + +extern zend_class_entry *stub_oo_scopes_abstractclass_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Scopes_AbstractClass); + +PHP_METHOD(Stub_Oo_Scopes_AbstractClass, setProperty); +PHP_METHOD(Stub_Oo_Scopes_AbstractClass, getPrivateProperty2); +PHP_METHOD(Stub_Oo_Scopes_AbstractClass, getProtectedProperty2); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_scopes_abstractclass_setproperty, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_scopes_abstractclass_method_entry) { + PHP_ME(Stub_Oo_Scopes_AbstractClass, setProperty, arginfo_stub_oo_scopes_abstractclass_setproperty, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_Scopes_AbstractClass, getPrivateProperty2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_Scopes_AbstractClass, getProtectedProperty2, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/oo/scopes/abstractclassmagic.zep.c b/ext/stub/oo/scopes/abstractclassmagic.zep.c similarity index 71% rename from ext/test/oo/scopes/abstractclassmagic.zep.c rename to ext/stub/oo/scopes/abstractclassmagic.zep.c index a259fa5a47..68e80620ad 100644 --- a/ext/test/oo/scopes/abstractclassmagic.zep.c +++ b/ext/stub/oo/scopes/abstractclassmagic.zep.c @@ -17,23 +17,23 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Oo_Scopes_AbstractClassMagic) { +ZEPHIR_INIT_CLASS(Stub_Oo_Scopes_AbstractClassMagic) { - ZEPHIR_REGISTER_CLASS(Test\\Oo\\Scopes, AbstractClassMagic, test, oo_scopes_abstractclassmagic, test_oo_scopes_abstractclassmagic_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + ZEPHIR_REGISTER_CLASS(Stub\\Oo\\Scopes, AbstractClassMagic, stub, oo_scopes_abstractclassmagic, stub_oo_scopes_abstractclassmagic_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); - zend_declare_property_long(test_oo_scopes_abstractclassmagic_ce, SL("setCount"), 0, ZEND_ACC_PUBLIC); + zend_declare_property_long(stub_oo_scopes_abstractclassmagic_ce, SL("setCount"), 0, ZEND_ACC_PUBLIC); - zend_declare_property_string(test_oo_scopes_abstractclassmagic_ce, SL("privateProperty"), "private", ZEND_ACC_PRIVATE); + zend_declare_property_string(stub_oo_scopes_abstractclassmagic_ce, SL("privateProperty"), "private", ZEND_ACC_PRIVATE); - zend_declare_property_string(test_oo_scopes_abstractclassmagic_ce, SL("protectedProperty"), "protected", ZEND_ACC_PROTECTED); + zend_declare_property_string(stub_oo_scopes_abstractclassmagic_ce, SL("protectedProperty"), "protected", ZEND_ACC_PROTECTED); - zend_declare_property_string(test_oo_scopes_abstractclassmagic_ce, SL("publicProperty"), "public", ZEND_ACC_PUBLIC); + zend_declare_property_string(stub_oo_scopes_abstractclassmagic_ce, SL("publicProperty"), "public", ZEND_ACC_PUBLIC); return SUCCESS; } -PHP_METHOD(Test_Oo_Scopes_AbstractClassMagic, __set) { +PHP_METHOD(Stub_Oo_Scopes_AbstractClassMagic, __set) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *name_param = NULL, *value, value_sub, _0, _1; @@ -52,7 +52,7 @@ PHP_METHOD(Test_Oo_Scopes_AbstractClassMagic, __set) { zephir_update_property_zval_zval(this_ptr, &name, value); - zephir_read_property(&_0, this_ptr, SL("setCount"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("setCount"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_ZVAL_NREF(_1); ZVAL_LONG(&_1, (zephir_get_numberval(&_0) + 1)); zephir_update_property_zval(this_ptr, ZEND_STRL("setCount"), &_1); @@ -60,7 +60,7 @@ PHP_METHOD(Test_Oo_Scopes_AbstractClassMagic, __set) { } -PHP_METHOD(Test_Oo_Scopes_AbstractClassMagic, __get) { +PHP_METHOD(Stub_Oo_Scopes_AbstractClassMagic, __get) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *name_param = NULL, _0; diff --git a/ext/stub/oo/scopes/abstractclassmagic.zep.h b/ext/stub/oo/scopes/abstractclassmagic.zep.h new file mode 100644 index 0000000000..2d6a5f83a8 --- /dev/null +++ b/ext/stub/oo/scopes/abstractclassmagic.zep.h @@ -0,0 +1,40 @@ + +extern zend_class_entry *stub_oo_scopes_abstractclassmagic_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Scopes_AbstractClassMagic); + +PHP_METHOD(Stub_Oo_Scopes_AbstractClassMagic, __set); +PHP_METHOD(Stub_Oo_Scopes_AbstractClassMagic, __get); + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_scopes_abstractclassmagic___set, 0, 2, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_scopes_abstractclassmagic___set, 0, 2, IS_VOID, NULL, 0) +#endif +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_scopes_abstractclassmagic___set, 0, 0, 2) +#define arginfo_stub_oo_scopes_abstractclassmagic___set NULL +#endif + +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_scopes_abstractclassmagic___get, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_scopes_abstractclassmagic_method_entry) { + PHP_ME(Stub_Oo_Scopes_AbstractClassMagic, __set, arginfo_stub_oo_scopes_abstractclassmagic___set, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_Scopes_AbstractClassMagic, __get, arginfo_stub_oo_scopes_abstractclassmagic___get, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/oo/scopes/hasprivatemethod.zep.c b/ext/stub/oo/scopes/hasprivatemethod.zep.c similarity index 69% rename from ext/test/oo/scopes/hasprivatemethod.zep.c rename to ext/stub/oo/scopes/hasprivatemethod.zep.c index 41b7fb0999..59d70eda80 100644 --- a/ext/test/oo/scopes/hasprivatemethod.zep.c +++ b/ext/stub/oo/scopes/hasprivatemethod.zep.c @@ -17,15 +17,15 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Oo_Scopes_HasPrivateMethod) { +ZEPHIR_INIT_CLASS(Stub_Oo_Scopes_HasPrivateMethod) { - ZEPHIR_REGISTER_CLASS(Test\\Oo\\Scopes, HasPrivateMethod, test, oo_scopes_hasprivatemethod, test_oo_scopes_hasprivatemethod_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Oo\\Scopes, HasPrivateMethod, stub, oo_scopes_hasprivatemethod, stub_oo_scopes_hasprivatemethod_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Oo_Scopes_HasPrivateMethod, callPrivateMethod) { +PHP_METHOD(Stub_Oo_Scopes_HasPrivateMethod, callPrivateMethod) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -40,7 +40,7 @@ PHP_METHOD(Test_Oo_Scopes_HasPrivateMethod, callPrivateMethod) { } -PHP_METHOD(Test_Oo_Scopes_HasPrivateMethod, isPrivate) { +PHP_METHOD(Stub_Oo_Scopes_HasPrivateMethod, isPrivate) { zval *this_ptr = getThis(); diff --git a/ext/stub/oo/scopes/hasprivatemethod.zep.h b/ext/stub/oo/scopes/hasprivatemethod.zep.h new file mode 100644 index 0000000000..6164f3d359 --- /dev/null +++ b/ext/stub/oo/scopes/hasprivatemethod.zep.h @@ -0,0 +1,27 @@ + +extern zend_class_entry *stub_oo_scopes_hasprivatemethod_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Scopes_HasPrivateMethod); + +PHP_METHOD(Stub_Oo_Scopes_HasPrivateMethod, callPrivateMethod); +PHP_METHOD(Stub_Oo_Scopes_HasPrivateMethod, isPrivate); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_scopes_hasprivatemethod_callprivatemethod, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_scopes_hasprivatemethod_callprivatemethod, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_scopes_hasprivatemethod_isprivate, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_scopes_hasprivatemethod_isprivate, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_scopes_hasprivatemethod_method_entry) { + PHP_ME(Stub_Oo_Scopes_HasPrivateMethod, callPrivateMethod, arginfo_stub_oo_scopes_hasprivatemethod_callprivatemethod, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_Scopes_HasPrivateMethod, isPrivate, arginfo_stub_oo_scopes_hasprivatemethod_isprivate, ZEND_ACC_PRIVATE) + PHP_FE_END +}; diff --git a/ext/test/oo/scopes/privatescopetester.zep.c b/ext/stub/oo/scopes/privatescopetester.zep.c similarity index 82% rename from ext/test/oo/scopes/privatescopetester.zep.c rename to ext/stub/oo/scopes/privatescopetester.zep.c index 3e1497df1b..2cb82a7f4d 100644 --- a/ext/test/oo/scopes/privatescopetester.zep.c +++ b/ext/stub/oo/scopes/privatescopetester.zep.c @@ -18,16 +18,16 @@ #include "kernel/operators.h" -ZEPHIR_INIT_CLASS(Test_Oo_Scopes_PrivateScopeTester) { +ZEPHIR_INIT_CLASS(Stub_Oo_Scopes_PrivateScopeTester) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Oo\\Scopes, PrivateScopeTester, test, oo_scopes_privatescopetester, test_oo_scopes_hasprivatemethod_ce, test_oo_scopes_privatescopetester_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Oo\\Scopes, PrivateScopeTester, stub, oo_scopes_privatescopetester, stub_oo_scopes_hasprivatemethod_ce, stub_oo_scopes_privatescopetester_method_entry, 0); - zend_class_implements(test_oo_scopes_privatescopetester_ce, 1, test_oo_scopes_scopetesterinterface_ce); + zend_class_implements(stub_oo_scopes_privatescopetester_ce, 1, stub_oo_scopes_scopetesterinterface_ce); return SUCCESS; } -PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, run) { +PHP_METHOD(Stub_Oo_Scopes_PrivateScopeTester, run) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -45,7 +45,7 @@ PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, run) { /** * @issue https://github.com/phalcon/zephir/issues/2057 */ -PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, setPropertyObj) { +PHP_METHOD(Stub_Oo_Scopes_PrivateScopeTester, setPropertyObj) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval property; @@ -74,7 +74,7 @@ PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, setPropertyObj) { /** * @issue https://github.com/phalcon/zephir/issues/2057 */ -PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, setPropertyNew) { +PHP_METHOD(Stub_Oo_Scopes_PrivateScopeTester, setPropertyNew) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -105,7 +105,7 @@ PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, setPropertyNew) { /** * @issue https://github.com/phalcon/zephir/issues/2057 */ -PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, getObjVars) { +PHP_METHOD(Stub_Oo_Scopes_PrivateScopeTester, getObjVars) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -128,7 +128,7 @@ PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, getObjVars) { /** * @issue https://github.com/phalcon/zephir/issues/2057 */ -PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, getNewVars) { +PHP_METHOD(Stub_Oo_Scopes_PrivateScopeTester, getNewVars) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; diff --git a/ext/stub/oo/scopes/privatescopetester.zep.h b/ext/stub/oo/scopes/privatescopetester.zep.h new file mode 100644 index 0000000000..9b592d5383 --- /dev/null +++ b/ext/stub/oo/scopes/privatescopetester.zep.h @@ -0,0 +1,62 @@ + +extern zend_class_entry *stub_oo_scopes_privatescopetester_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Scopes_PrivateScopeTester); + +PHP_METHOD(Stub_Oo_Scopes_PrivateScopeTester, run); +PHP_METHOD(Stub_Oo_Scopes_PrivateScopeTester, setPropertyObj); +PHP_METHOD(Stub_Oo_Scopes_PrivateScopeTester, setPropertyNew); +PHP_METHOD(Stub_Oo_Scopes_PrivateScopeTester, getObjVars); +PHP_METHOD(Stub_Oo_Scopes_PrivateScopeTester, getNewVars); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_scopes_privatescopetester_run, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_scopes_privatescopetester_run, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_scopes_privatescopetester_setpropertyobj, 0, 0, 3) + ZEND_ARG_INFO(0, obj) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, property) +#endif + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_scopes_privatescopetester_setpropertynew, 0, 0, 3) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, className, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, className) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, property) +#endif + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_scopes_privatescopetester_getobjvars, 0, 0, 1) + ZEND_ARG_INFO(0, obj) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_oo_scopes_privatescopetester_getnewvars, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, className, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, className) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_scopes_privatescopetester_method_entry) { + PHP_ME(Stub_Oo_Scopes_PrivateScopeTester, run, arginfo_stub_oo_scopes_privatescopetester_run, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_Scopes_PrivateScopeTester, setPropertyObj, arginfo_stub_oo_scopes_privatescopetester_setpropertyobj, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_Scopes_PrivateScopeTester, setPropertyNew, arginfo_stub_oo_scopes_privatescopetester_setpropertynew, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_Scopes_PrivateScopeTester, getObjVars, arginfo_stub_oo_scopes_privatescopetester_getobjvars, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Oo_Scopes_PrivateScopeTester, getNewVars, arginfo_stub_oo_scopes_privatescopetester_getnewvars, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/oo/scopes/scopetesterinterface.zep.c b/ext/stub/oo/scopes/scopetesterinterface.zep.c similarity index 50% rename from ext/test/oo/scopes/scopetesterinterface.zep.c rename to ext/stub/oo/scopes/scopetesterinterface.zep.c index 1734fbbe48..d6426f7a1d 100644 --- a/ext/test/oo/scopes/scopetesterinterface.zep.c +++ b/ext/stub/oo/scopes/scopetesterinterface.zep.c @@ -12,13 +12,13 @@ #include "kernel/main.h" -ZEPHIR_INIT_CLASS(Test_Oo_Scopes_ScopeTesterInterface) { +ZEPHIR_INIT_CLASS(Stub_Oo_Scopes_ScopeTesterInterface) { - ZEPHIR_REGISTER_INTERFACE(Test\\Oo\\Scopes, ScopeTesterInterface, test, oo_scopes_scopetesterinterface, test_oo_scopes_scopetesterinterface_method_entry); + ZEPHIR_REGISTER_INTERFACE(Stub\\Oo\\Scopes, ScopeTesterInterface, stub, oo_scopes_scopetesterinterface, stub_oo_scopes_scopetesterinterface_method_entry); return SUCCESS; } -ZEPHIR_DOC_METHOD(Test_Oo_Scopes_ScopeTesterInterface, run); +ZEPHIR_DOC_METHOD(Stub_Oo_Scopes_ScopeTesterInterface, run); diff --git a/ext/stub/oo/scopes/scopetesterinterface.zep.h b/ext/stub/oo/scopes/scopetesterinterface.zep.h new file mode 100644 index 0000000000..46eea9512a --- /dev/null +++ b/ext/stub/oo/scopes/scopetesterinterface.zep.h @@ -0,0 +1,16 @@ + +extern zend_class_entry *stub_oo_scopes_scopetesterinterface_ce; + +ZEPHIR_INIT_CLASS(Stub_Oo_Scopes_ScopeTesterInterface); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_scopes_scopetesterinterface_run, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_oo_scopes_scopetesterinterface_run, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_oo_scopes_scopetesterinterface_method_entry) { + PHP_ABSTRACT_ME(Stub_Oo_Scopes_ScopeTesterInterface, run, arginfo_stub_oo_scopes_scopetesterinterface_run) + PHP_FE_END +}; diff --git a/ext/test/ooimpl/abeginning.zep.c b/ext/stub/ooimpl/abeginning.zep.c similarity index 59% rename from ext/test/ooimpl/abeginning.zep.c rename to ext/stub/ooimpl/abeginning.zep.c index 7db3f896cc..2ee7f0fa82 100644 --- a/ext/test/ooimpl/abeginning.zep.c +++ b/ext/stub/ooimpl/abeginning.zep.c @@ -12,11 +12,11 @@ #include "kernel/main.h" -ZEPHIR_INIT_CLASS(Test_OoImpl_ABeginning) { +ZEPHIR_INIT_CLASS(Stub_OoImpl_ABeginning) { - ZEPHIR_REGISTER_INTERFACE(Test\\OoImpl, ABeginning, test, ooimpl_abeginning, NULL); + ZEPHIR_REGISTER_INTERFACE(Stub\\OoImpl, ABeginning, stub, ooimpl_abeginning, NULL); - zend_class_implements(test_ooimpl_abeginning_ce, 1, test_ooimpl_zbeginning_ce); + zend_class_implements(stub_ooimpl_abeginning_ce, 1, stub_ooimpl_zbeginning_ce); return SUCCESS; } diff --git a/ext/stub/ooimpl/abeginning.zep.h b/ext/stub/ooimpl/abeginning.zep.h new file mode 100644 index 0000000000..0a7c395330 --- /dev/null +++ b/ext/stub/ooimpl/abeginning.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_ooimpl_abeginning_ce; + +ZEPHIR_INIT_CLASS(Stub_OoImpl_ABeginning); + diff --git a/ext/test/ooimpl/zbeginning.zep.c b/ext/stub/ooimpl/zbeginning.zep.c similarity index 68% rename from ext/test/ooimpl/zbeginning.zep.c rename to ext/stub/ooimpl/zbeginning.zep.c index e108c5e831..5f669b9d49 100644 --- a/ext/test/ooimpl/zbeginning.zep.c +++ b/ext/stub/ooimpl/zbeginning.zep.c @@ -12,9 +12,9 @@ #include "kernel/main.h" -ZEPHIR_INIT_CLASS(Test_OoImpl_ZBeginning) { +ZEPHIR_INIT_CLASS(Stub_OoImpl_ZBeginning) { - ZEPHIR_REGISTER_INTERFACE(Test\\OoImpl, ZBeginning, test, ooimpl_zbeginning, NULL); + ZEPHIR_REGISTER_INTERFACE(Stub\\OoImpl, ZBeginning, stub, ooimpl_zbeginning, NULL); return SUCCESS; diff --git a/ext/stub/ooimpl/zbeginning.zep.h b/ext/stub/ooimpl/zbeginning.zep.h new file mode 100644 index 0000000000..b17a8230c9 --- /dev/null +++ b/ext/stub/ooimpl/zbeginning.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_ooimpl_zbeginning_ce; + +ZEPHIR_INIT_CLASS(Stub_OoImpl_ZBeginning); + diff --git a/ext/test/operator.zep.c b/ext/stub/operator.zep.c similarity index 89% rename from ext/test/operator.zep.c rename to ext/stub/operator.zep.c index a93d067d22..434f07175b 100644 --- a/ext/test/operator.zep.c +++ b/ext/stub/operator.zep.c @@ -19,15 +19,15 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_Operator) { +ZEPHIR_INIT_CLASS(Stub_Operator) { - ZEPHIR_REGISTER_CLASS(Test, Operator, test, operator, test_operator_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Operator, stub, operator, stub_operator_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Operator, testIdentical) { +PHP_METHOD(Stub_Operator, testIdentical) { zval *param1, param1_sub, *param2, param2_sub; zval *this_ptr = getThis(); @@ -43,7 +43,7 @@ PHP_METHOD(Test_Operator, testIdentical) { } -PHP_METHOD(Test_Operator, testIdenticalIfComplex) { +PHP_METHOD(Stub_Operator, testIdenticalIfComplex) { zend_bool b = 0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -63,7 +63,7 @@ PHP_METHOD(Test_Operator, testIdenticalIfComplex) { zephir_create_array(&a, 1, 0); zephir_array_update_string(&a, SL("1"), input, PH_COPY | PH_SEPARATE); b = 0; - zephir_array_fetch_string(&_0, &a, SL("1"), PH_NOISY | PH_READONLY, "test/operator.zep", 16); + zephir_array_fetch_string(&_0, &a, SL("1"), PH_NOISY | PH_READONLY, "stub/operator.zep", 16); if (!ZEPHIR_IS_FALSE_IDENTICAL(&_0)) { RETURN_MM_BOOL(1); } @@ -71,7 +71,7 @@ PHP_METHOD(Test_Operator, testIdenticalIfComplex) { } -PHP_METHOD(Test_Operator, testIdenticalVarFalse) { +PHP_METHOD(Stub_Operator, testIdenticalVarFalse) { zval *param, param_sub; zval *this_ptr = getThis(); @@ -86,7 +86,7 @@ PHP_METHOD(Test_Operator, testIdenticalVarFalse) { } -PHP_METHOD(Test_Operator, testIdenticalFalseVar) { +PHP_METHOD(Stub_Operator, testIdenticalFalseVar) { zval *param, param_sub; zval *this_ptr = getThis(); @@ -101,7 +101,7 @@ PHP_METHOD(Test_Operator, testIdenticalFalseVar) { } -PHP_METHOD(Test_Operator, testBoolComparison) { +PHP_METHOD(Stub_Operator, testBoolComparison) { zend_bool var1, var2; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -148,7 +148,7 @@ PHP_METHOD(Test_Operator, testBoolComparison) { } -PHP_METHOD(Test_Operator, testNewInstanceOperator) { +PHP_METHOD(Stub_Operator, testNewInstanceOperator) { zend_class_entry *_1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/operator.zep.h b/ext/stub/operator.zep.h new file mode 100644 index 0000000000..ebc0265b81 --- /dev/null +++ b/ext/stub/operator.zep.h @@ -0,0 +1,47 @@ + +extern zend_class_entry *stub_operator_ce; + +ZEPHIR_INIT_CLASS(Stub_Operator); + +PHP_METHOD(Stub_Operator, testIdentical); +PHP_METHOD(Stub_Operator, testIdenticalIfComplex); +PHP_METHOD(Stub_Operator, testIdenticalVarFalse); +PHP_METHOD(Stub_Operator, testIdenticalFalseVar); +PHP_METHOD(Stub_Operator, testBoolComparison); +PHP_METHOD(Stub_Operator, testNewInstanceOperator); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_operator_testidentical, 0, 0, 2) + ZEND_ARG_INFO(0, param1) + ZEND_ARG_INFO(0, param2) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_operator_testidenticalifcomplex, 0, 0, 1) + ZEND_ARG_INFO(0, input) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_operator_testidenticalvarfalse, 0, 0, 1) + ZEND_ARG_INFO(0, param) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_operator_testidenticalfalsevar, 0, 0, 1) + ZEND_ARG_INFO(0, param) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_operator_testboolcomparison, 0, 0, 2) + ZEND_ARG_INFO(0, varTrue) + ZEND_ARG_INFO(0, varFalse) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_operator_testnewinstanceoperator, 0, 0, 1) + ZEND_ARG_INFO(0, className) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_operator_method_entry) { + PHP_ME(Stub_Operator, testIdentical, arginfo_stub_operator_testidentical, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Operator, testIdenticalIfComplex, arginfo_stub_operator_testidenticalifcomplex, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Operator, testIdenticalVarFalse, arginfo_stub_operator_testidenticalvarfalse, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Operator, testIdenticalFalseVar, arginfo_stub_operator_testidenticalfalsevar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Operator, testBoolComparison, arginfo_stub_operator_testboolcomparison, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Operator, testNewInstanceOperator, arginfo_stub_operator_testnewinstanceoperator, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/optimizers/acos.zep.c b/ext/stub/optimizers/acos.zep.c similarity index 83% rename from ext/test/optimizers/acos.zep.c rename to ext/stub/optimizers/acos.zep.c index 319b9e3f79..a581b35c2d 100644 --- a/ext/test/optimizers/acos.zep.c +++ b/ext/stub/optimizers/acos.zep.c @@ -18,15 +18,15 @@ #include "kernel/operators.h" -ZEPHIR_INIT_CLASS(Test_Optimizers_ACos) { +ZEPHIR_INIT_CLASS(Stub_Optimizers_ACos) { - ZEPHIR_REGISTER_CLASS(Test\\Optimizers, ACos, test, optimizers_acos, test_optimizers_acos_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Optimizers, ACos, stub, optimizers_acos, stub_optimizers_acos_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Optimizers_ACos, testInt) { +PHP_METHOD(Stub_Optimizers_ACos, testInt) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -45,7 +45,7 @@ PHP_METHOD(Test_Optimizers_ACos, testInt) { } -PHP_METHOD(Test_Optimizers_ACos, testVar) { +PHP_METHOD(Stub_Optimizers_ACos, testVar) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -64,7 +64,7 @@ PHP_METHOD(Test_Optimizers_ACos, testVar) { } -PHP_METHOD(Test_Optimizers_ACos, testIntValue1) { +PHP_METHOD(Stub_Optimizers_ACos, testIntValue1) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -82,7 +82,7 @@ PHP_METHOD(Test_Optimizers_ACos, testIntValue1) { } -PHP_METHOD(Test_Optimizers_ACos, testIntParameter) { +PHP_METHOD(Stub_Optimizers_ACos, testIntParameter) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a_param = NULL, _0; @@ -104,7 +104,7 @@ PHP_METHOD(Test_Optimizers_ACos, testIntParameter) { } -PHP_METHOD(Test_Optimizers_ACos, testVarParameter) { +PHP_METHOD(Stub_Optimizers_ACos, testVarParameter) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; diff --git a/ext/stub/optimizers/acos.zep.h b/ext/stub/optimizers/acos.zep.h new file mode 100644 index 0000000000..f46d27246d --- /dev/null +++ b/ext/stub/optimizers/acos.zep.h @@ -0,0 +1,31 @@ + +extern zend_class_entry *stub_optimizers_acos_ce; + +ZEPHIR_INIT_CLASS(Stub_Optimizers_ACos); + +PHP_METHOD(Stub_Optimizers_ACos, testInt); +PHP_METHOD(Stub_Optimizers_ACos, testVar); +PHP_METHOD(Stub_Optimizers_ACos, testIntValue1); +PHP_METHOD(Stub_Optimizers_ACos, testIntParameter); +PHP_METHOD(Stub_Optimizers_ACos, testVarParameter); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_acos_testintparameter, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_acos_testvarparameter, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_optimizers_acos_method_entry) { + PHP_ME(Stub_Optimizers_ACos, testInt, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_ACos, testVar, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_ACos, testIntValue1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_ACos, testIntParameter, arginfo_stub_optimizers_acos_testintparameter, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_ACos, testVarParameter, arginfo_stub_optimizers_acos_testvarparameter, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/optimizers/arraymerge.zep.c b/ext/stub/optimizers/arraymerge.zep.c similarity index 77% rename from ext/test/optimizers/arraymerge.zep.c rename to ext/stub/optimizers/arraymerge.zep.c index 457e3d05bf..d923428087 100644 --- a/ext/test/optimizers/arraymerge.zep.c +++ b/ext/stub/optimizers/arraymerge.zep.c @@ -18,15 +18,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Optimizers_ArrayMerge) { +ZEPHIR_INIT_CLASS(Stub_Optimizers_ArrayMerge) { - ZEPHIR_REGISTER_CLASS(Test\\Optimizers, ArrayMerge, test, optimizers_arraymerge, test_optimizers_arraymerge_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Optimizers, ArrayMerge, stub, optimizers_arraymerge, stub_optimizers_arraymerge_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Optimizers_ArrayMerge, mergeTwoRequiredArrays) { +PHP_METHOD(Stub_Optimizers_ArrayMerge, mergeTwoRequiredArrays) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *arr1_param = NULL, *arr2_param = NULL; diff --git a/ext/stub/optimizers/arraymerge.zep.h b/ext/stub/optimizers/arraymerge.zep.h new file mode 100644 index 0000000000..2481a924fb --- /dev/null +++ b/ext/stub/optimizers/arraymerge.zep.h @@ -0,0 +1,16 @@ + +extern zend_class_entry *stub_optimizers_arraymerge_ce; + +ZEPHIR_INIT_CLASS(Stub_Optimizers_ArrayMerge); + +PHP_METHOD(Stub_Optimizers_ArrayMerge, mergeTwoRequiredArrays); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_arraymerge_mergetworequiredarrays, 0, 0, 2) + ZEND_ARG_ARRAY_INFO(0, arr1, 0) + ZEND_ARG_ARRAY_INFO(0, arr2, 0) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_optimizers_arraymerge_method_entry) { + PHP_ME(Stub_Optimizers_ArrayMerge, mergeTwoRequiredArrays, arginfo_stub_optimizers_arraymerge_mergetworequiredarrays, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/optimizers/asin.zep.c b/ext/stub/optimizers/asin.zep.c similarity index 83% rename from ext/test/optimizers/asin.zep.c rename to ext/stub/optimizers/asin.zep.c index 31a867a55a..ba56b7a95f 100644 --- a/ext/test/optimizers/asin.zep.c +++ b/ext/stub/optimizers/asin.zep.c @@ -18,15 +18,15 @@ #include "kernel/operators.h" -ZEPHIR_INIT_CLASS(Test_Optimizers_ASin) { +ZEPHIR_INIT_CLASS(Stub_Optimizers_ASin) { - ZEPHIR_REGISTER_CLASS(Test\\Optimizers, ASin, test, optimizers_asin, test_optimizers_asin_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Optimizers, ASin, stub, optimizers_asin, stub_optimizers_asin_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Optimizers_ASin, testInt) { +PHP_METHOD(Stub_Optimizers_ASin, testInt) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -45,7 +45,7 @@ PHP_METHOD(Test_Optimizers_ASin, testInt) { } -PHP_METHOD(Test_Optimizers_ASin, testVar) { +PHP_METHOD(Stub_Optimizers_ASin, testVar) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -64,7 +64,7 @@ PHP_METHOD(Test_Optimizers_ASin, testVar) { } -PHP_METHOD(Test_Optimizers_ASin, testIntValue1) { +PHP_METHOD(Stub_Optimizers_ASin, testIntValue1) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -82,7 +82,7 @@ PHP_METHOD(Test_Optimizers_ASin, testIntValue1) { } -PHP_METHOD(Test_Optimizers_ASin, testIntParameter) { +PHP_METHOD(Stub_Optimizers_ASin, testIntParameter) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a_param = NULL, _0; @@ -104,7 +104,7 @@ PHP_METHOD(Test_Optimizers_ASin, testIntParameter) { } -PHP_METHOD(Test_Optimizers_ASin, testVarParameter) { +PHP_METHOD(Stub_Optimizers_ASin, testVarParameter) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; diff --git a/ext/stub/optimizers/asin.zep.h b/ext/stub/optimizers/asin.zep.h new file mode 100644 index 0000000000..2263bd695a --- /dev/null +++ b/ext/stub/optimizers/asin.zep.h @@ -0,0 +1,31 @@ + +extern zend_class_entry *stub_optimizers_asin_ce; + +ZEPHIR_INIT_CLASS(Stub_Optimizers_ASin); + +PHP_METHOD(Stub_Optimizers_ASin, testInt); +PHP_METHOD(Stub_Optimizers_ASin, testVar); +PHP_METHOD(Stub_Optimizers_ASin, testIntValue1); +PHP_METHOD(Stub_Optimizers_ASin, testIntParameter); +PHP_METHOD(Stub_Optimizers_ASin, testVarParameter); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_asin_testintparameter, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_asin_testvarparameter, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_optimizers_asin_method_entry) { + PHP_ME(Stub_Optimizers_ASin, testInt, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_ASin, testVar, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_ASin, testIntValue1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_ASin, testIntParameter, arginfo_stub_optimizers_asin_testintparameter, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_ASin, testVarParameter, arginfo_stub_optimizers_asin_testvarparameter, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/optimizers/cos.zep.c b/ext/stub/optimizers/cos.zep.c similarity index 74% rename from ext/test/optimizers/cos.zep.c rename to ext/stub/optimizers/cos.zep.c index 0ebd51f1c0..fe31791a2b 100644 --- a/ext/test/optimizers/cos.zep.c +++ b/ext/stub/optimizers/cos.zep.c @@ -19,15 +19,15 @@ #include "kernel/math.h" -ZEPHIR_INIT_CLASS(Test_Optimizers_Cos) { +ZEPHIR_INIT_CLASS(Stub_Optimizers_Cos) { - ZEPHIR_REGISTER_CLASS(Test\\Optimizers, Cos, test, optimizers_cos, test_optimizers_cos_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Optimizers, Cos, stub, optimizers_cos, stub_optimizers_cos_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Optimizers_Cos, testInt) { +PHP_METHOD(Stub_Optimizers_Cos, testInt) { zval _0; zend_long a; @@ -42,7 +42,7 @@ PHP_METHOD(Test_Optimizers_Cos, testInt) { } -PHP_METHOD(Test_Optimizers_Cos, testVar) { +PHP_METHOD(Stub_Optimizers_Cos, testVar) { zval _0; zend_long a; @@ -57,7 +57,7 @@ PHP_METHOD(Test_Optimizers_Cos, testVar) { } -PHP_METHOD(Test_Optimizers_Cos, testIntValue1) { +PHP_METHOD(Stub_Optimizers_Cos, testIntValue1) { zval _0; zval *this_ptr = getThis(); @@ -70,7 +70,7 @@ PHP_METHOD(Test_Optimizers_Cos, testIntValue1) { } -PHP_METHOD(Test_Optimizers_Cos, testIntValue2) { +PHP_METHOD(Stub_Optimizers_Cos, testIntValue2) { zval _0; zval *this_ptr = getThis(); @@ -83,7 +83,7 @@ PHP_METHOD(Test_Optimizers_Cos, testIntValue2) { } -PHP_METHOD(Test_Optimizers_Cos, testIntParameter) { +PHP_METHOD(Stub_Optimizers_Cos, testIntParameter) { zval *a_param = NULL, _0; zend_long a; @@ -101,7 +101,7 @@ PHP_METHOD(Test_Optimizers_Cos, testIntParameter) { } -PHP_METHOD(Test_Optimizers_Cos, testVarParameter) { +PHP_METHOD(Stub_Optimizers_Cos, testVarParameter) { zval *a, a_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/optimizers/cos.zep.h b/ext/stub/optimizers/cos.zep.h new file mode 100644 index 0000000000..c0a18f354f --- /dev/null +++ b/ext/stub/optimizers/cos.zep.h @@ -0,0 +1,33 @@ + +extern zend_class_entry *stub_optimizers_cos_ce; + +ZEPHIR_INIT_CLASS(Stub_Optimizers_Cos); + +PHP_METHOD(Stub_Optimizers_Cos, testInt); +PHP_METHOD(Stub_Optimizers_Cos, testVar); +PHP_METHOD(Stub_Optimizers_Cos, testIntValue1); +PHP_METHOD(Stub_Optimizers_Cos, testIntValue2); +PHP_METHOD(Stub_Optimizers_Cos, testIntParameter); +PHP_METHOD(Stub_Optimizers_Cos, testVarParameter); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_cos_testintparameter, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_cos_testvarparameter, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_optimizers_cos_method_entry) { + PHP_ME(Stub_Optimizers_Cos, testInt, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Cos, testVar, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Cos, testIntValue1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Cos, testIntValue2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Cos, testIntParameter, arginfo_stub_optimizers_cos_testintparameter, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Cos, testVarParameter, arginfo_stub_optimizers_cos_testvarparameter, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/optimizers/createarray.zep.c b/ext/stub/optimizers/createarray.zep.c similarity index 74% rename from ext/test/optimizers/createarray.zep.c rename to ext/stub/optimizers/createarray.zep.c index 176140cfb3..51e644970f 100644 --- a/ext/test/optimizers/createarray.zep.c +++ b/ext/stub/optimizers/createarray.zep.c @@ -18,15 +18,15 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Optimizers_CreateArray) { +ZEPHIR_INIT_CLASS(Stub_Optimizers_CreateArray) { - ZEPHIR_REGISTER_CLASS(Test\\Optimizers, CreateArray, test, optimizers_createarray, test_optimizers_createarray_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Optimizers, CreateArray, stub, optimizers_createarray, stub_optimizers_createarray_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Optimizers_CreateArray, createNoSize) { +PHP_METHOD(Stub_Optimizers_CreateArray, createNoSize) { zend_long ZEPHIR_LAST_CALL_STATUS; zval *this_ptr = getThis(); @@ -38,7 +38,7 @@ PHP_METHOD(Test_Optimizers_CreateArray, createNoSize) { } -PHP_METHOD(Test_Optimizers_CreateArray, createSize) { +PHP_METHOD(Stub_Optimizers_CreateArray, createSize) { zval *n_param = NULL, _0; zend_long n, ZEPHIR_LAST_CALL_STATUS; diff --git a/ext/stub/optimizers/createarray.zep.h b/ext/stub/optimizers/createarray.zep.h new file mode 100644 index 0000000000..2ac8478401 --- /dev/null +++ b/ext/stub/optimizers/createarray.zep.h @@ -0,0 +1,21 @@ + +extern zend_class_entry *stub_optimizers_createarray_ce; + +ZEPHIR_INIT_CLASS(Stub_Optimizers_CreateArray); + +PHP_METHOD(Stub_Optimizers_CreateArray, createNoSize); +PHP_METHOD(Stub_Optimizers_CreateArray, createSize); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_createarray_createsize, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, n) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_optimizers_createarray_method_entry) { + PHP_ME(Stub_Optimizers_CreateArray, createNoSize, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_CreateArray, createSize, arginfo_stub_optimizers_createarray_createsize, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/optimizers/isscalar.zep.c b/ext/stub/optimizers/isscalar.zep.c similarity index 74% rename from ext/test/optimizers/isscalar.zep.c rename to ext/stub/optimizers/isscalar.zep.c index b5efedff89..55c939319c 100644 --- a/ext/test/optimizers/isscalar.zep.c +++ b/ext/stub/optimizers/isscalar.zep.c @@ -16,15 +16,15 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Optimizers_IsScalar) { +ZEPHIR_INIT_CLASS(Stub_Optimizers_IsScalar) { - ZEPHIR_REGISTER_CLASS(Test\\Optimizers, IsScalar, test, optimizers_isscalar, test_optimizers_isscalar_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Optimizers, IsScalar, stub, optimizers_isscalar, stub_optimizers_isscalar_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Optimizers_IsScalar, testIntVar) { +PHP_METHOD(Stub_Optimizers_IsScalar, testIntVar) { zval _0; zend_long a; @@ -39,7 +39,7 @@ PHP_METHOD(Test_Optimizers_IsScalar, testIntVar) { } -PHP_METHOD(Test_Optimizers_IsScalar, testDoubleVar) { +PHP_METHOD(Stub_Optimizers_IsScalar, testDoubleVar) { zval _0; double a; @@ -54,7 +54,7 @@ PHP_METHOD(Test_Optimizers_IsScalar, testDoubleVar) { } -PHP_METHOD(Test_Optimizers_IsScalar, testBoolVar) { +PHP_METHOD(Stub_Optimizers_IsScalar, testBoolVar) { zval _0; zend_bool a; @@ -69,7 +69,7 @@ PHP_METHOD(Test_Optimizers_IsScalar, testBoolVar) { } -PHP_METHOD(Test_Optimizers_IsScalar, testStringVar) { +PHP_METHOD(Stub_Optimizers_IsScalar, testStringVar) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -85,7 +85,7 @@ PHP_METHOD(Test_Optimizers_IsScalar, testStringVar) { } -PHP_METHOD(Test_Optimizers_IsScalar, testEmptyArrayVar) { +PHP_METHOD(Stub_Optimizers_IsScalar, testEmptyArrayVar) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -101,7 +101,7 @@ PHP_METHOD(Test_Optimizers_IsScalar, testEmptyArrayVar) { } -PHP_METHOD(Test_Optimizers_IsScalar, testVar) { +PHP_METHOD(Stub_Optimizers_IsScalar, testVar) { zval _0; zend_long a; @@ -116,7 +116,7 @@ PHP_METHOD(Test_Optimizers_IsScalar, testVar) { } -PHP_METHOD(Test_Optimizers_IsScalar, testVarParameter) { +PHP_METHOD(Stub_Optimizers_IsScalar, testVarParameter) { zval *a, a_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/optimizers/isscalar.zep.h b/ext/stub/optimizers/isscalar.zep.h new file mode 100644 index 0000000000..e82120fc2e --- /dev/null +++ b/ext/stub/optimizers/isscalar.zep.h @@ -0,0 +1,73 @@ + +extern zend_class_entry *stub_optimizers_isscalar_ce; + +ZEPHIR_INIT_CLASS(Stub_Optimizers_IsScalar); + +PHP_METHOD(Stub_Optimizers_IsScalar, testIntVar); +PHP_METHOD(Stub_Optimizers_IsScalar, testDoubleVar); +PHP_METHOD(Stub_Optimizers_IsScalar, testBoolVar); +PHP_METHOD(Stub_Optimizers_IsScalar, testStringVar); +PHP_METHOD(Stub_Optimizers_IsScalar, testEmptyArrayVar); +PHP_METHOD(Stub_Optimizers_IsScalar, testVar); +PHP_METHOD(Stub_Optimizers_IsScalar, testVarParameter); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_testintvar, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_testintvar, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_testdoublevar, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_testdoublevar, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_testboolvar, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_testboolvar, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_teststringvar, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_teststringvar, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_testemptyarrayvar, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_testemptyarrayvar, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_testvar, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_testvar, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_testvarparameter, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_optimizers_isscalar_testvarparameter, 0, 1, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_optimizers_isscalar_method_entry) { + PHP_ME(Stub_Optimizers_IsScalar, testIntVar, arginfo_stub_optimizers_isscalar_testintvar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_IsScalar, testDoubleVar, arginfo_stub_optimizers_isscalar_testdoublevar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_IsScalar, testBoolVar, arginfo_stub_optimizers_isscalar_testboolvar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_IsScalar, testStringVar, arginfo_stub_optimizers_isscalar_teststringvar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_IsScalar, testEmptyArrayVar, arginfo_stub_optimizers_isscalar_testemptyarrayvar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_IsScalar, testVar, arginfo_stub_optimizers_isscalar_testvar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_IsScalar, testVarParameter, arginfo_stub_optimizers_isscalar_testvarparameter, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/optimizers/ldexp.zep.c b/ext/stub/optimizers/ldexp.zep.c similarity index 80% rename from ext/test/optimizers/ldexp.zep.c rename to ext/stub/optimizers/ldexp.zep.c index 058834d02a..0dd892cd24 100644 --- a/ext/test/optimizers/ldexp.zep.c +++ b/ext/stub/optimizers/ldexp.zep.c @@ -18,15 +18,15 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Optimizers_Ldexp) { +ZEPHIR_INIT_CLASS(Stub_Optimizers_Ldexp) { - ZEPHIR_REGISTER_CLASS(Test\\Optimizers, Ldexp, test, optimizers_ldexp, test_optimizers_ldexp_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Optimizers, Ldexp, stub, optimizers_ldexp, stub_optimizers_ldexp_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Optimizers_Ldexp, testInt) { +PHP_METHOD(Stub_Optimizers_Ldexp, testInt) { zval _0, _1; zend_long x, exponent; @@ -44,7 +44,7 @@ PHP_METHOD(Test_Optimizers_Ldexp, testInt) { } -PHP_METHOD(Test_Optimizers_Ldexp, testDoubleInt) { +PHP_METHOD(Stub_Optimizers_Ldexp, testDoubleInt) { zval _0, _1; zend_long exponent; @@ -63,7 +63,7 @@ PHP_METHOD(Test_Optimizers_Ldexp, testDoubleInt) { } -PHP_METHOD(Test_Optimizers_Ldexp, testDouble) { +PHP_METHOD(Stub_Optimizers_Ldexp, testDouble) { zval _0, _1; double x, exponent; @@ -81,7 +81,7 @@ PHP_METHOD(Test_Optimizers_Ldexp, testDouble) { } -PHP_METHOD(Test_Optimizers_Ldexp, testVar) { +PHP_METHOD(Stub_Optimizers_Ldexp, testVar) { zval _0, _1; zend_long x, exponent; @@ -99,7 +99,7 @@ PHP_METHOD(Test_Optimizers_Ldexp, testVar) { } -PHP_METHOD(Test_Optimizers_Ldexp, testIntValue1) { +PHP_METHOD(Stub_Optimizers_Ldexp, testIntValue1) { zval _0, _1; zval *this_ptr = getThis(); @@ -114,7 +114,7 @@ PHP_METHOD(Test_Optimizers_Ldexp, testIntValue1) { } -PHP_METHOD(Test_Optimizers_Ldexp, testIntParameter) { +PHP_METHOD(Stub_Optimizers_Ldexp, testIntParameter) { zval *x_param = NULL, *exponent_param = NULL, _0, _1; zend_long x, exponent; @@ -135,7 +135,7 @@ PHP_METHOD(Test_Optimizers_Ldexp, testIntParameter) { } -PHP_METHOD(Test_Optimizers_Ldexp, testVarParameter) { +PHP_METHOD(Stub_Optimizers_Ldexp, testVarParameter) { zval *x, x_sub, *exponent, exponent_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/optimizers/ldexp.zep.h b/ext/stub/optimizers/ldexp.zep.h new file mode 100644 index 0000000000..2173105f53 --- /dev/null +++ b/ext/stub/optimizers/ldexp.zep.h @@ -0,0 +1,41 @@ + +extern zend_class_entry *stub_optimizers_ldexp_ce; + +ZEPHIR_INIT_CLASS(Stub_Optimizers_Ldexp); + +PHP_METHOD(Stub_Optimizers_Ldexp, testInt); +PHP_METHOD(Stub_Optimizers_Ldexp, testDoubleInt); +PHP_METHOD(Stub_Optimizers_Ldexp, testDouble); +PHP_METHOD(Stub_Optimizers_Ldexp, testVar); +PHP_METHOD(Stub_Optimizers_Ldexp, testIntValue1); +PHP_METHOD(Stub_Optimizers_Ldexp, testIntParameter); +PHP_METHOD(Stub_Optimizers_Ldexp, testVarParameter); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_ldexp_testintparameter, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, exponent, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, exponent) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_ldexp_testvarparameter, 0, 0, 2) + ZEND_ARG_INFO(0, x) + ZEND_ARG_INFO(0, exponent) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_optimizers_ldexp_method_entry) { + PHP_ME(Stub_Optimizers_Ldexp, testInt, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Ldexp, testDoubleInt, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Ldexp, testDouble, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Ldexp, testVar, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Ldexp, testIntValue1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Ldexp, testIntParameter, arginfo_stub_optimizers_ldexp_testintparameter, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Ldexp, testVarParameter, arginfo_stub_optimizers_ldexp_testvarparameter, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/optimizers/sin.zep.c b/ext/stub/optimizers/sin.zep.c similarity index 74% rename from ext/test/optimizers/sin.zep.c rename to ext/stub/optimizers/sin.zep.c index 063c5c4b7e..00615a4240 100644 --- a/ext/test/optimizers/sin.zep.c +++ b/ext/stub/optimizers/sin.zep.c @@ -19,15 +19,15 @@ #include "kernel/math.h" -ZEPHIR_INIT_CLASS(Test_Optimizers_Sin) { +ZEPHIR_INIT_CLASS(Stub_Optimizers_Sin) { - ZEPHIR_REGISTER_CLASS(Test\\Optimizers, Sin, test, optimizers_sin, test_optimizers_sin_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Optimizers, Sin, stub, optimizers_sin, stub_optimizers_sin_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Optimizers_Sin, testInt) { +PHP_METHOD(Stub_Optimizers_Sin, testInt) { zval _0; zend_long a; @@ -42,7 +42,7 @@ PHP_METHOD(Test_Optimizers_Sin, testInt) { } -PHP_METHOD(Test_Optimizers_Sin, testVar) { +PHP_METHOD(Stub_Optimizers_Sin, testVar) { zval _0; zend_long a; @@ -57,7 +57,7 @@ PHP_METHOD(Test_Optimizers_Sin, testVar) { } -PHP_METHOD(Test_Optimizers_Sin, testIntValue1) { +PHP_METHOD(Stub_Optimizers_Sin, testIntValue1) { zval _0; zval *this_ptr = getThis(); @@ -70,7 +70,7 @@ PHP_METHOD(Test_Optimizers_Sin, testIntValue1) { } -PHP_METHOD(Test_Optimizers_Sin, testIntValue2) { +PHP_METHOD(Stub_Optimizers_Sin, testIntValue2) { zval _0; zval *this_ptr = getThis(); @@ -83,7 +83,7 @@ PHP_METHOD(Test_Optimizers_Sin, testIntValue2) { } -PHP_METHOD(Test_Optimizers_Sin, testIntParameter) { +PHP_METHOD(Stub_Optimizers_Sin, testIntParameter) { zval *a_param = NULL, _0; zend_long a; @@ -101,7 +101,7 @@ PHP_METHOD(Test_Optimizers_Sin, testIntParameter) { } -PHP_METHOD(Test_Optimizers_Sin, testVarParameter) { +PHP_METHOD(Stub_Optimizers_Sin, testVarParameter) { zval *a, a_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/optimizers/sin.zep.h b/ext/stub/optimizers/sin.zep.h new file mode 100644 index 0000000000..b4bbf21e81 --- /dev/null +++ b/ext/stub/optimizers/sin.zep.h @@ -0,0 +1,33 @@ + +extern zend_class_entry *stub_optimizers_sin_ce; + +ZEPHIR_INIT_CLASS(Stub_Optimizers_Sin); + +PHP_METHOD(Stub_Optimizers_Sin, testInt); +PHP_METHOD(Stub_Optimizers_Sin, testVar); +PHP_METHOD(Stub_Optimizers_Sin, testIntValue1); +PHP_METHOD(Stub_Optimizers_Sin, testIntValue2); +PHP_METHOD(Stub_Optimizers_Sin, testIntParameter); +PHP_METHOD(Stub_Optimizers_Sin, testVarParameter); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_sin_testintparameter, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_sin_testvarparameter, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_optimizers_sin_method_entry) { + PHP_ME(Stub_Optimizers_Sin, testInt, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Sin, testVar, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Sin, testIntValue1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Sin, testIntValue2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Sin, testIntParameter, arginfo_stub_optimizers_sin_testintparameter, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Sin, testVarParameter, arginfo_stub_optimizers_sin_testvarparameter, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/optimizers/sqrt.zep.c b/ext/stub/optimizers/sqrt.zep.c similarity index 74% rename from ext/test/optimizers/sqrt.zep.c rename to ext/stub/optimizers/sqrt.zep.c index dab8c044be..bf98b18fe3 100644 --- a/ext/test/optimizers/sqrt.zep.c +++ b/ext/stub/optimizers/sqrt.zep.c @@ -19,15 +19,15 @@ #include "kernel/math.h" -ZEPHIR_INIT_CLASS(Test_Optimizers_Sqrt) { +ZEPHIR_INIT_CLASS(Stub_Optimizers_Sqrt) { - ZEPHIR_REGISTER_CLASS(Test\\Optimizers, Sqrt, test, optimizers_sqrt, test_optimizers_sqrt_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Optimizers, Sqrt, stub, optimizers_sqrt, stub_optimizers_sqrt_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Optimizers_Sqrt, testInt) { +PHP_METHOD(Stub_Optimizers_Sqrt, testInt) { zval _0; zend_long a; @@ -42,7 +42,7 @@ PHP_METHOD(Test_Optimizers_Sqrt, testInt) { } -PHP_METHOD(Test_Optimizers_Sqrt, testVar) { +PHP_METHOD(Stub_Optimizers_Sqrt, testVar) { zval _0; zend_long a; @@ -57,7 +57,7 @@ PHP_METHOD(Test_Optimizers_Sqrt, testVar) { } -PHP_METHOD(Test_Optimizers_Sqrt, testIntValue1) { +PHP_METHOD(Stub_Optimizers_Sqrt, testIntValue1) { zval _0; zval *this_ptr = getThis(); @@ -70,7 +70,7 @@ PHP_METHOD(Test_Optimizers_Sqrt, testIntValue1) { } -PHP_METHOD(Test_Optimizers_Sqrt, testIntValue2) { +PHP_METHOD(Stub_Optimizers_Sqrt, testIntValue2) { zval _0; zval *this_ptr = getThis(); @@ -83,7 +83,7 @@ PHP_METHOD(Test_Optimizers_Sqrt, testIntValue2) { } -PHP_METHOD(Test_Optimizers_Sqrt, testIntParameter) { +PHP_METHOD(Stub_Optimizers_Sqrt, testIntParameter) { zval *a_param = NULL, _0; zend_long a; @@ -101,7 +101,7 @@ PHP_METHOD(Test_Optimizers_Sqrt, testIntParameter) { } -PHP_METHOD(Test_Optimizers_Sqrt, testVarParameter) { +PHP_METHOD(Stub_Optimizers_Sqrt, testVarParameter) { zval *a, a_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/optimizers/sqrt.zep.h b/ext/stub/optimizers/sqrt.zep.h new file mode 100644 index 0000000000..5854131572 --- /dev/null +++ b/ext/stub/optimizers/sqrt.zep.h @@ -0,0 +1,33 @@ + +extern zend_class_entry *stub_optimizers_sqrt_ce; + +ZEPHIR_INIT_CLASS(Stub_Optimizers_Sqrt); + +PHP_METHOD(Stub_Optimizers_Sqrt, testInt); +PHP_METHOD(Stub_Optimizers_Sqrt, testVar); +PHP_METHOD(Stub_Optimizers_Sqrt, testIntValue1); +PHP_METHOD(Stub_Optimizers_Sqrt, testIntValue2); +PHP_METHOD(Stub_Optimizers_Sqrt, testIntParameter); +PHP_METHOD(Stub_Optimizers_Sqrt, testVarParameter); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_sqrt_testintparameter, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_sqrt_testvarparameter, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_optimizers_sqrt_method_entry) { + PHP_ME(Stub_Optimizers_Sqrt, testInt, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Sqrt, testVar, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Sqrt, testIntValue1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Sqrt, testIntValue2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Sqrt, testIntParameter, arginfo_stub_optimizers_sqrt_testintparameter, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Sqrt, testVarParameter, arginfo_stub_optimizers_sqrt_testvarparameter, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/optimizers/strreplace.zep.c b/ext/stub/optimizers/strreplace.zep.c similarity index 93% rename from ext/test/optimizers/strreplace.zep.c rename to ext/stub/optimizers/strreplace.zep.c index 42a2d078b2..b46d11593f 100644 --- a/ext/test/optimizers/strreplace.zep.c +++ b/ext/stub/optimizers/strreplace.zep.c @@ -19,9 +19,9 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_Optimizers_StrReplace) { +ZEPHIR_INIT_CLASS(Stub_Optimizers_StrReplace) { - ZEPHIR_REGISTER_CLASS(Test\\Optimizers, StrReplace, test, optimizers_strreplace, test_optimizers_strreplace_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Optimizers, StrReplace, stub, optimizers_strreplace, stub_optimizers_strreplace_method_entry, 0); return SUCCESS; @@ -30,7 +30,7 @@ ZEPHIR_INIT_CLASS(Test_Optimizers_StrReplace) { /** * @link https://github.com/phalcon/zephir/issues/1055 */ -PHP_METHOD(Test_Optimizers_StrReplace, issue1055) { +PHP_METHOD(Stub_Optimizers_StrReplace, issue1055) { zval _1, _3; zval _0, _2; @@ -62,7 +62,7 @@ PHP_METHOD(Test_Optimizers_StrReplace, issue1055) { } -PHP_METHOD(Test_Optimizers_StrReplace, issue1087) { +PHP_METHOD(Stub_Optimizers_StrReplace, issue1087) { zval filtered, sanitize, _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -112,7 +112,7 @@ PHP_METHOD(Test_Optimizers_StrReplace, issue1087) { } -PHP_METHOD(Test_Optimizers_StrReplace, issue732A) { +PHP_METHOD(Stub_Optimizers_StrReplace, issue732A) { zval subject; zval _0; @@ -169,7 +169,7 @@ PHP_METHOD(Test_Optimizers_StrReplace, issue732A) { } -PHP_METHOD(Test_Optimizers_StrReplace, issue732B) { +PHP_METHOD(Stub_Optimizers_StrReplace, issue732B) { zval subject; zval _0; diff --git a/ext/stub/optimizers/strreplace.zep.h b/ext/stub/optimizers/strreplace.zep.h new file mode 100644 index 0000000000..fb328b9e61 --- /dev/null +++ b/ext/stub/optimizers/strreplace.zep.h @@ -0,0 +1,17 @@ + +extern zend_class_entry *stub_optimizers_strreplace_ce; + +ZEPHIR_INIT_CLASS(Stub_Optimizers_StrReplace); + +PHP_METHOD(Stub_Optimizers_StrReplace, issue1055); +PHP_METHOD(Stub_Optimizers_StrReplace, issue1087); +PHP_METHOD(Stub_Optimizers_StrReplace, issue732A); +PHP_METHOD(Stub_Optimizers_StrReplace, issue732B); + +ZEPHIR_INIT_FUNCS(stub_optimizers_strreplace_method_entry) { + PHP_ME(Stub_Optimizers_StrReplace, issue1055, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_StrReplace, issue1087, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_StrReplace, issue732A, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_StrReplace, issue732B, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/optimizers/substr.zep.c b/ext/stub/optimizers/substr.zep.c similarity index 79% rename from ext/test/optimizers/substr.zep.c rename to ext/stub/optimizers/substr.zep.c index 6b5c81108b..1d66c007d4 100644 --- a/ext/test/optimizers/substr.zep.c +++ b/ext/stub/optimizers/substr.zep.c @@ -18,15 +18,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Optimizers_Substr) { +ZEPHIR_INIT_CLASS(Stub_Optimizers_Substr) { - ZEPHIR_REGISTER_CLASS(Test\\Optimizers, Substr, test, optimizers_substr, test_optimizers_substr_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Optimizers, Substr, stub, optimizers_substr, stub_optimizers_substr_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Optimizers_Substr, testTwoArguments) { +PHP_METHOD(Stub_Optimizers_Substr, testTwoArguments) { zval *str, str_sub, *start, start_sub; zval *this_ptr = getThis(); @@ -43,7 +43,7 @@ PHP_METHOD(Test_Optimizers_Substr, testTwoArguments) { } -PHP_METHOD(Test_Optimizers_Substr, testThreeArguments) { +PHP_METHOD(Stub_Optimizers_Substr, testThreeArguments) { zval *str, str_sub, *start, start_sub, *offset, offset_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/optimizers/substr.zep.h b/ext/stub/optimizers/substr.zep.h new file mode 100644 index 0000000000..9bec93cfbf --- /dev/null +++ b/ext/stub/optimizers/substr.zep.h @@ -0,0 +1,24 @@ + +extern zend_class_entry *stub_optimizers_substr_ce; + +ZEPHIR_INIT_CLASS(Stub_Optimizers_Substr); + +PHP_METHOD(Stub_Optimizers_Substr, testTwoArguments); +PHP_METHOD(Stub_Optimizers_Substr, testThreeArguments); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_substr_testtwoarguments, 0, 0, 2) + ZEND_ARG_INFO(0, str) + ZEND_ARG_INFO(0, start) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_substr_testthreearguments, 0, 0, 3) + ZEND_ARG_INFO(0, str) + ZEND_ARG_INFO(0, start) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_optimizers_substr_method_entry) { + PHP_ME(Stub_Optimizers_Substr, testTwoArguments, arginfo_stub_optimizers_substr_testtwoarguments, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Substr, testThreeArguments, arginfo_stub_optimizers_substr_testthreearguments, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/optimizers/tan.zep.c b/ext/stub/optimizers/tan.zep.c similarity index 74% rename from ext/test/optimizers/tan.zep.c rename to ext/stub/optimizers/tan.zep.c index 7cc1537d10..84dd90e94b 100644 --- a/ext/test/optimizers/tan.zep.c +++ b/ext/stub/optimizers/tan.zep.c @@ -19,15 +19,15 @@ #include "kernel/math.h" -ZEPHIR_INIT_CLASS(Test_Optimizers_Tan) { +ZEPHIR_INIT_CLASS(Stub_Optimizers_Tan) { - ZEPHIR_REGISTER_CLASS(Test\\Optimizers, Tan, test, optimizers_tan, test_optimizers_tan_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Optimizers, Tan, stub, optimizers_tan, stub_optimizers_tan_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Optimizers_Tan, testInt) { +PHP_METHOD(Stub_Optimizers_Tan, testInt) { zval _0; zend_long a; @@ -42,7 +42,7 @@ PHP_METHOD(Test_Optimizers_Tan, testInt) { } -PHP_METHOD(Test_Optimizers_Tan, testVar) { +PHP_METHOD(Stub_Optimizers_Tan, testVar) { zval _0; zend_long a; @@ -57,7 +57,7 @@ PHP_METHOD(Test_Optimizers_Tan, testVar) { } -PHP_METHOD(Test_Optimizers_Tan, testVar2) { +PHP_METHOD(Stub_Optimizers_Tan, testVar2) { zval _0; zend_long a; @@ -72,7 +72,7 @@ PHP_METHOD(Test_Optimizers_Tan, testVar2) { } -PHP_METHOD(Test_Optimizers_Tan, testIntValue1) { +PHP_METHOD(Stub_Optimizers_Tan, testIntValue1) { zval _0; zval *this_ptr = getThis(); @@ -85,7 +85,7 @@ PHP_METHOD(Test_Optimizers_Tan, testIntValue1) { } -PHP_METHOD(Test_Optimizers_Tan, testIntValue2) { +PHP_METHOD(Stub_Optimizers_Tan, testIntValue2) { zval _0; zval *this_ptr = getThis(); @@ -98,7 +98,7 @@ PHP_METHOD(Test_Optimizers_Tan, testIntValue2) { } -PHP_METHOD(Test_Optimizers_Tan, testIntParameter) { +PHP_METHOD(Stub_Optimizers_Tan, testIntParameter) { zval *a_param = NULL, _0; zend_long a; @@ -116,7 +116,7 @@ PHP_METHOD(Test_Optimizers_Tan, testIntParameter) { } -PHP_METHOD(Test_Optimizers_Tan, testVarParameter) { +PHP_METHOD(Stub_Optimizers_Tan, testVarParameter) { zval *a, a_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/optimizers/tan.zep.h b/ext/stub/optimizers/tan.zep.h new file mode 100644 index 0000000000..01495c3c69 --- /dev/null +++ b/ext/stub/optimizers/tan.zep.h @@ -0,0 +1,35 @@ + +extern zend_class_entry *stub_optimizers_tan_ce; + +ZEPHIR_INIT_CLASS(Stub_Optimizers_Tan); + +PHP_METHOD(Stub_Optimizers_Tan, testInt); +PHP_METHOD(Stub_Optimizers_Tan, testVar); +PHP_METHOD(Stub_Optimizers_Tan, testVar2); +PHP_METHOD(Stub_Optimizers_Tan, testIntValue1); +PHP_METHOD(Stub_Optimizers_Tan, testIntValue2); +PHP_METHOD(Stub_Optimizers_Tan, testIntParameter); +PHP_METHOD(Stub_Optimizers_Tan, testVarParameter); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_tan_testintparameter, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_optimizers_tan_testvarparameter, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_optimizers_tan_method_entry) { + PHP_ME(Stub_Optimizers_Tan, testInt, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Tan, testVar, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Tan, testVar2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Tan, testIntValue1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Tan, testIntValue2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Tan, testIntParameter, arginfo_stub_optimizers_tan_testintparameter, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Optimizers_Tan, testVarParameter, arginfo_stub_optimizers_tan_testvarparameter, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/pdostatement.zep.c b/ext/stub/pdostatement.zep.c similarity index 77% rename from ext/test/pdostatement.zep.c rename to ext/stub/pdostatement.zep.c index b8e37b4ca5..6a96133560 100644 --- a/ext/test/pdostatement.zep.c +++ b/ext/stub/pdostatement.zep.c @@ -15,9 +15,9 @@ #include "kernel/main.h" -ZEPHIR_INIT_CLASS(Test_PdoStatement) { +ZEPHIR_INIT_CLASS(Stub_PdoStatement) { - ZEPHIR_REGISTER_CLASS_EX(Test, PdoStatement, test, pdostatement, zephir_get_internal_ce(SL("pdostatement")), NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub, PdoStatement, stub, pdostatement, zephir_get_internal_ce(SL("pdostatement")), NULL, 0); return SUCCESS; diff --git a/ext/stub/pdostatement.zep.h b/ext/stub/pdostatement.zep.h new file mode 100644 index 0000000000..f6867af2c6 --- /dev/null +++ b/ext/stub/pdostatement.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_pdostatement_ce; + +ZEPHIR_INIT_CLASS(Stub_PdoStatement); + diff --git a/ext/test/pregmatch.zep.c b/ext/stub/pregmatch.zep.c similarity index 90% rename from ext/test/pregmatch.zep.c rename to ext/stub/pregmatch.zep.c index f616de50dd..60f40c45ca 100644 --- a/ext/test/pregmatch.zep.c +++ b/ext/stub/pregmatch.zep.c @@ -20,15 +20,15 @@ #include "kernel/array.h" -ZEPHIR_INIT_CLASS(Test_Pregmatch) { +ZEPHIR_INIT_CLASS(Stub_Pregmatch) { - ZEPHIR_REGISTER_CLASS(Test, Pregmatch, test, pregmatch, test_pregmatch_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Pregmatch, stub, pregmatch, stub_pregmatch_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Pregmatch, testWithoutReturnAndMatches) { +PHP_METHOD(Stub_Pregmatch, testWithoutReturnAndMatches) { zval pattern, subject, _0, _1, _2; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -55,7 +55,7 @@ PHP_METHOD(Test_Pregmatch, testWithoutReturnAndMatches) { } -PHP_METHOD(Test_Pregmatch, testWithoutReturns) { +PHP_METHOD(Stub_Pregmatch, testWithoutReturns) { zval pattern, subject, matches, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -80,7 +80,7 @@ PHP_METHOD(Test_Pregmatch, testWithoutReturns) { } -PHP_METHOD(Test_Pregmatch, testWithoutMatches) { +PHP_METHOD(Stub_Pregmatch, testWithoutMatches) { zval pattern, subject, matched, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -104,7 +104,7 @@ PHP_METHOD(Test_Pregmatch, testWithoutMatches) { } -PHP_METHOD(Test_Pregmatch, testPregMatchAll) { +PHP_METHOD(Stub_Pregmatch, testPregMatchAll) { zval pattern, subject, results; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -127,7 +127,7 @@ PHP_METHOD(Test_Pregmatch, testPregMatchAll) { } -PHP_METHOD(Test_Pregmatch, testPregMatchFallback) { +PHP_METHOD(Stub_Pregmatch, testPregMatchFallback) { zval pattern, subject, matches; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -152,7 +152,7 @@ PHP_METHOD(Test_Pregmatch, testPregMatchFallback) { } -PHP_METHOD(Test_Pregmatch, testPregMatch2Params) { +PHP_METHOD(Stub_Pregmatch, testPregMatch2Params) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *pattern, pattern_sub, *subject, subject_sub, _0; @@ -173,7 +173,7 @@ PHP_METHOD(Test_Pregmatch, testPregMatch2Params) { } -PHP_METHOD(Test_Pregmatch, testPregMatch3Params) { +PHP_METHOD(Stub_Pregmatch, testPregMatch3Params) { zval *pattern, pattern_sub, *subject, subject_sub, *matches, matches_sub; zval *this_ptr = getThis(); @@ -191,7 +191,7 @@ PHP_METHOD(Test_Pregmatch, testPregMatch3Params) { } -PHP_METHOD(Test_Pregmatch, testPregMatch4Params) { +PHP_METHOD(Stub_Pregmatch, testPregMatch4Params) { zval *pattern, pattern_sub, *subject, subject_sub, *matches, matches_sub, *flags, flags_sub; zval *this_ptr = getThis(); @@ -210,7 +210,7 @@ PHP_METHOD(Test_Pregmatch, testPregMatch4Params) { } -PHP_METHOD(Test_Pregmatch, testPregMatch5Params) { +PHP_METHOD(Stub_Pregmatch, testPregMatch5Params) { zval *pattern, pattern_sub, *subject, subject_sub, *matches, matches_sub, *flags, flags_sub, *offset, offset_sub; zval *this_ptr = getThis(); @@ -233,7 +233,7 @@ PHP_METHOD(Test_Pregmatch, testPregMatch5Params) { /** * @link https://github.com/phalcon/zephir/issues/287 */ -PHP_METHOD(Test_Pregmatch, testPregMatchSaveMatches) { +PHP_METHOD(Stub_Pregmatch, testPregMatchSaveMatches) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL, *pattern_param = NULL, matches, _0; @@ -260,7 +260,7 @@ PHP_METHOD(Test_Pregmatch, testPregMatchSaveMatches) { } -PHP_METHOD(Test_Pregmatch, testMatchAll) { +PHP_METHOD(Stub_Pregmatch, testMatchAll) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *flags, flags_sub, text, matches, _0, _1, _2; @@ -292,7 +292,7 @@ PHP_METHOD(Test_Pregmatch, testMatchAll) { } -PHP_METHOD(Test_Pregmatch, testMatchAllInZep) { +PHP_METHOD(Stub_Pregmatch, testMatchAllInZep) { zval m1, m2, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/pregmatch.zep.h b/ext/stub/pregmatch.zep.h new file mode 100644 index 0000000000..24a80f7836 --- /dev/null +++ b/ext/stub/pregmatch.zep.h @@ -0,0 +1,76 @@ + +extern zend_class_entry *stub_pregmatch_ce; + +ZEPHIR_INIT_CLASS(Stub_Pregmatch); + +PHP_METHOD(Stub_Pregmatch, testWithoutReturnAndMatches); +PHP_METHOD(Stub_Pregmatch, testWithoutReturns); +PHP_METHOD(Stub_Pregmatch, testWithoutMatches); +PHP_METHOD(Stub_Pregmatch, testPregMatchAll); +PHP_METHOD(Stub_Pregmatch, testPregMatchFallback); +PHP_METHOD(Stub_Pregmatch, testPregMatch2Params); +PHP_METHOD(Stub_Pregmatch, testPregMatch3Params); +PHP_METHOD(Stub_Pregmatch, testPregMatch4Params); +PHP_METHOD(Stub_Pregmatch, testPregMatch5Params); +PHP_METHOD(Stub_Pregmatch, testPregMatchSaveMatches); +PHP_METHOD(Stub_Pregmatch, testMatchAll); +PHP_METHOD(Stub_Pregmatch, testMatchAllInZep); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_pregmatch_testpregmatch2params, 0, 0, 2) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, subject) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_pregmatch_testpregmatch3params, 0, 0, 3) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, subject) + ZEND_ARG_INFO(0, matches) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_pregmatch_testpregmatch4params, 0, 0, 4) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, subject) + ZEND_ARG_INFO(0, matches) + ZEND_ARG_INFO(0, flags) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_pregmatch_testpregmatch5params, 0, 0, 5) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, subject) + ZEND_ARG_INFO(0, matches) + ZEND_ARG_INFO(0, flags) + ZEND_ARG_INFO(0, offset) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_pregmatch_testpregmatchsavematches, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, str) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, pattern) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_pregmatch_testmatchall, 0, 0, 1) + ZEND_ARG_INFO(0, flags) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_pregmatch_method_entry) { + PHP_ME(Stub_Pregmatch, testWithoutReturnAndMatches, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Pregmatch, testWithoutReturns, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Pregmatch, testWithoutMatches, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Pregmatch, testPregMatchAll, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Pregmatch, testPregMatchFallback, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Pregmatch, testPregMatch2Params, arginfo_stub_pregmatch_testpregmatch2params, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Pregmatch, testPregMatch3Params, arginfo_stub_pregmatch_testpregmatch3params, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Pregmatch, testPregMatch4Params, arginfo_stub_pregmatch_testpregmatch4params, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Pregmatch, testPregMatch5Params, arginfo_stub_pregmatch_testpregmatch5params, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Pregmatch, testPregMatchSaveMatches, arginfo_stub_pregmatch_testpregmatchsavematches, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Pregmatch, testMatchAll, arginfo_stub_pregmatch_testmatchall, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Pregmatch, testMatchAllInZep, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/properties/app.zep.c b/ext/stub/properties/app.zep.c similarity index 66% rename from ext/test/properties/app.zep.c rename to ext/stub/properties/app.zep.c index 16a246ac79..e481281dbc 100644 --- a/ext/test/properties/app.zep.c +++ b/ext/stub/properties/app.zep.c @@ -17,12 +17,12 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_Properties_App) { +ZEPHIR_INIT_CLASS(Stub_Properties_App) { - ZEPHIR_REGISTER_CLASS(Test\\Properties, App, test, properties_app, test_properties_app_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Properties, App, stub, properties_app, stub_properties_app_method_entry, 0); - /** @var \Test\Properties\StaticPrivateProperties */ - zend_declare_property_null(test_properties_app_ce, SL("instance"), ZEND_ACC_PROTECTED); + /** @var \Stub\Properties\StaticPrivateProperties */ + zend_declare_property_null(stub_properties_app_ce, SL("instance"), ZEND_ACC_PROTECTED); return SUCCESS; @@ -30,7 +30,7 @@ ZEPHIR_INIT_CLASS(Test_Properties_App) { /** */ -PHP_METHOD(Test_Properties_App, getInstance) { +PHP_METHOD(Stub_Properties_App, getInstance) { zval *this_ptr = getThis(); @@ -39,7 +39,7 @@ PHP_METHOD(Test_Properties_App, getInstance) { } -PHP_METHOD(Test_Properties_App, __construct) { +PHP_METHOD(Stub_Properties_App, __construct) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -51,7 +51,7 @@ PHP_METHOD(Test_Properties_App, __construct) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&_0, test_properties_staticprivateproperties_ce, "getinstance", &_1, 0); + ZEPHIR_CALL_CE_STATIC(&_0, stub_properties_staticprivateproperties_ce, "getinstance", &_1, 0); zephir_check_call_status(); zephir_update_property_zval(this_ptr, ZEND_STRL("instance"), &_0); ZEPHIR_MM_RESTORE(); diff --git a/ext/stub/properties/app.zep.h b/ext/stub/properties/app.zep.h new file mode 100644 index 0000000000..f9e3aed486 --- /dev/null +++ b/ext/stub/properties/app.zep.h @@ -0,0 +1,13 @@ + +extern zend_class_entry *stub_properties_app_ce; + +ZEPHIR_INIT_CLASS(Stub_Properties_App); + +PHP_METHOD(Stub_Properties_App, getInstance); +PHP_METHOD(Stub_Properties_App, __construct); + +ZEPHIR_INIT_FUNCS(stub_properties_app_method_entry) { + PHP_ME(Stub_Properties_App, getInstance, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_App, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_FE_END +}; diff --git a/ext/test/properties/extendspublicproperties.zep.c b/ext/stub/properties/extendspublicproperties.zep.c similarity index 69% rename from ext/test/properties/extendspublicproperties.zep.c rename to ext/stub/properties/extendspublicproperties.zep.c index 621196914d..60798f3703 100644 --- a/ext/test/properties/extendspublicproperties.zep.c +++ b/ext/stub/properties/extendspublicproperties.zep.c @@ -18,20 +18,20 @@ #include "kernel/array.h" -ZEPHIR_INIT_CLASS(Test_Properties_ExtendsPublicProperties) { +ZEPHIR_INIT_CLASS(Stub_Properties_ExtendsPublicProperties) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Properties, ExtendsPublicProperties, test, properties_extendspublicproperties, test_properties_publicproperties_ce, NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Properties, ExtendsPublicProperties, stub, properties_extendspublicproperties, stub_properties_publicproperties_ce, NULL, 0); - zend_declare_property_long(test_properties_extendspublicproperties_ce, SL("testPropertyFromClassNameConstantValue"), 123, ZEND_ACC_PUBLIC); + zend_declare_property_long(stub_properties_extendspublicproperties_ce, SL("testPropertyFromClassNameConstantValue"), 123, ZEND_ACC_PUBLIC); - zend_declare_property_null(test_properties_extendspublicproperties_ce, SL("someGetterSetterArray"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_properties_extendspublicproperties_ce, SL("someGetterSetterArray"), ZEND_ACC_PROTECTED); - test_properties_extendspublicproperties_ce->create_object = zephir_init_properties_Test_Properties_ExtendsPublicProperties; + stub_properties_extendspublicproperties_ce->create_object = zephir_init_properties_Stub_Properties_ExtendsPublicProperties; return SUCCESS; } -zend_object *zephir_init_properties_Test_Properties_ExtendsPublicProperties(zend_class_entry *class_type TSRMLS_DC) { +zend_object *zephir_init_properties_Stub_Properties_ExtendsPublicProperties(zend_class_entry *class_type TSRMLS_DC) { zval _1$$3, _2$$3, _4$$4, _6$$5, _11$$7; zval _0, _3, _5, _8, _10, _7$$5, _9$$6, _12$$7; @@ -55,7 +55,7 @@ zend_object *zephir_init_properties_Test_Properties_ExtendsPublicProperties(zend { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); - zephir_read_property(&_0, this_ptr, SL("someArrayWithSubArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_0, this_ptr, ZEND_STRL("someArrayWithSubArray"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_0) == IS_NULL) { ZEPHIR_INIT_VAR(&_1$$3); zephir_create_array(&_1$$3, 4, 0); @@ -75,18 +75,18 @@ zend_object *zephir_init_properties_Test_Properties_ExtendsPublicProperties(zend zephir_create_array(&_2$$3, 1, 0); add_assoc_stringl_ex(&_2$$3, SL("class"), SL("alert alert-danger")); zephir_array_update_string(&_1$$3, SL("danger"), &_2$$3, PH_COPY | PH_SEPARATE); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("someArrayWithSubArray"), &_1$$3); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("someArrayWithSubArray"), &_1$$3); } - zephir_read_property(&_3, this_ptr, SL("someArrayWithSpecifyKeys"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_3, this_ptr, ZEND_STRL("someArrayWithSpecifyKeys"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_3) == IS_NULL) { ZEPHIR_INIT_VAR(&_4$$4); zephir_create_array(&_4$$4, 3, 0); add_assoc_stringl_ex(&_4$$4, SL("a"), SL("A")); add_assoc_stringl_ex(&_4$$4, SL("b"), SL("B")); add_assoc_stringl_ex(&_4$$4, SL("c"), SL("C")); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("someArrayWithSpecifyKeys"), &_4$$4); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("someArrayWithSpecifyKeys"), &_4$$4); } - zephir_read_property(&_5, this_ptr, SL("someArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_5, this_ptr, ZEND_STRL("someArray"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_5) == IS_NULL) { ZEPHIR_INIT_VAR(&_6$$5); zephir_create_array(&_6$$5, 4, 0); @@ -102,22 +102,22 @@ zend_object *zephir_init_properties_Test_Properties_ExtendsPublicProperties(zend ZEPHIR_INIT_NVAR(&_7$$5); ZVAL_LONG(&_7$$5, 4); zephir_array_fast_append(&_6$$5, &_7$$5); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("someArray"), &_6$$5); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("someArray"), &_6$$5); } - zephir_read_property(&_8, this_ptr, SL("someEmptyArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_8, this_ptr, ZEND_STRL("someEmptyArray"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_8) == IS_NULL) { ZEPHIR_INIT_VAR(&_9$$6); array_init(&_9$$6); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("someEmptyArray"), &_9$$6); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("someEmptyArray"), &_9$$6); } - zephir_read_property(&_10, this_ptr, SL("someGetterSetterArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_10, this_ptr, ZEND_STRL("someGetterSetterArray"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_10) == IS_NULL) { ZEPHIR_INIT_VAR(&_11$$7); zephir_create_array(&_11$$7, 1, 0); ZEPHIR_INIT_VAR(&_12$$7); ZVAL_STRING(&_12$$7, "holy"); zephir_array_fast_append(&_11$$7, &_12$$7); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("someGetterSetterArray"), &_11$$7); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("someGetterSetterArray"), &_11$$7); } ZEPHIR_MM_RESTORE(); return Z_OBJ_P(this_ptr); diff --git a/ext/stub/properties/extendspublicproperties.zep.h b/ext/stub/properties/extendspublicproperties.zep.h new file mode 100644 index 0000000000..c5fb590bcf --- /dev/null +++ b/ext/stub/properties/extendspublicproperties.zep.h @@ -0,0 +1,10 @@ + +extern zend_class_entry *stub_properties_extendspublicproperties_ce; + +ZEPHIR_INIT_CLASS(Stub_Properties_ExtendsPublicProperties); + +zend_object *zephir_init_properties_Stub_Properties_ExtendsPublicProperties(zend_class_entry *class_type TSRMLS_DC); + +ZEPHIR_INIT_FUNCS(stub_properties_extendspublicproperties_method_entry) { + PHP_FE_END +}; diff --git a/ext/test/properties/privateproperties.zep.c b/ext/stub/properties/privateproperties.zep.c similarity index 60% rename from ext/test/properties/privateproperties.zep.c rename to ext/stub/properties/privateproperties.zep.c index 5177ca3d06..bd32e24587 100644 --- a/ext/test/properties/privateproperties.zep.c +++ b/ext/stub/properties/privateproperties.zep.c @@ -15,50 +15,50 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Properties_PrivateProperties) { +ZEPHIR_INIT_CLASS(Stub_Properties_PrivateProperties) { - ZEPHIR_REGISTER_CLASS(Test\\Properties, PrivateProperties, test, properties_privateproperties, test_properties_privateproperties_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Properties, PrivateProperties, stub, properties_privateproperties, stub_properties_privateproperties_method_entry, 0); /** * This is a private property with no initial value */ - zend_declare_property_null(test_properties_privateproperties_ce, SL("someNull"), ZEND_ACC_PRIVATE); + zend_declare_property_null(stub_properties_privateproperties_ce, SL("someNull"), ZEND_ACC_PRIVATE); /** * This is a private property with initial null value */ - zend_declare_property_null(test_properties_privateproperties_ce, SL("someNullInitial"), ZEND_ACC_PRIVATE); + zend_declare_property_null(stub_properties_privateproperties_ce, SL("someNullInitial"), ZEND_ACC_PRIVATE); /** * This is a private property with initial boolean false */ - zend_declare_property_bool(test_properties_privateproperties_ce, SL("someFalse"), 0, ZEND_ACC_PRIVATE); + zend_declare_property_bool(stub_properties_privateproperties_ce, SL("someFalse"), 0, ZEND_ACC_PRIVATE); /** * This is a private property with initial boolean true */ - zend_declare_property_bool(test_properties_privateproperties_ce, SL("someTrue"), 1, ZEND_ACC_PRIVATE); + zend_declare_property_bool(stub_properties_privateproperties_ce, SL("someTrue"), 1, ZEND_ACC_PRIVATE); /** * This is a private property with an initial integer value */ - zend_declare_property_long(test_properties_privateproperties_ce, SL("someInteger"), 10, ZEND_ACC_PRIVATE); + zend_declare_property_long(stub_properties_privateproperties_ce, SL("someInteger"), 10, ZEND_ACC_PRIVATE); /** * This is a private property with an initial double value */ - zend_declare_property_double(test_properties_privateproperties_ce, SL("someDouble"), 10.25, ZEND_ACC_PRIVATE); + zend_declare_property_double(stub_properties_privateproperties_ce, SL("someDouble"), 10.25, ZEND_ACC_PRIVATE); /** * This is a private property with an initial string value */ - zend_declare_property_string(test_properties_privateproperties_ce, SL("someString"), "test", ZEND_ACC_PRIVATE); + zend_declare_property_string(stub_properties_privateproperties_ce, SL("someString"), "test", ZEND_ACC_PRIVATE); return SUCCESS; } -PHP_METHOD(Test_Properties_PrivateProperties, getSomeNull) { +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeNull) { zval *this_ptr = getThis(); @@ -67,7 +67,7 @@ PHP_METHOD(Test_Properties_PrivateProperties, getSomeNull) { } -PHP_METHOD(Test_Properties_PrivateProperties, getSomeNullInitial) { +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeNullInitial) { zval *this_ptr = getThis(); @@ -76,7 +76,7 @@ PHP_METHOD(Test_Properties_PrivateProperties, getSomeNullInitial) { } -PHP_METHOD(Test_Properties_PrivateProperties, getSomeFalse) { +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeFalse) { zval *this_ptr = getThis(); @@ -85,7 +85,7 @@ PHP_METHOD(Test_Properties_PrivateProperties, getSomeFalse) { } -PHP_METHOD(Test_Properties_PrivateProperties, getSomeTrue) { +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeTrue) { zval *this_ptr = getThis(); @@ -94,7 +94,7 @@ PHP_METHOD(Test_Properties_PrivateProperties, getSomeTrue) { } -PHP_METHOD(Test_Properties_PrivateProperties, getSomeInteger) { +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeInteger) { zval *this_ptr = getThis(); @@ -103,7 +103,7 @@ PHP_METHOD(Test_Properties_PrivateProperties, getSomeInteger) { } -PHP_METHOD(Test_Properties_PrivateProperties, getSomeDouble) { +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeDouble) { zval *this_ptr = getThis(); @@ -112,7 +112,7 @@ PHP_METHOD(Test_Properties_PrivateProperties, getSomeDouble) { } -PHP_METHOD(Test_Properties_PrivateProperties, getSomeString) { +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeString) { zval *this_ptr = getThis(); diff --git a/ext/stub/properties/privateproperties.zep.h b/ext/stub/properties/privateproperties.zep.h new file mode 100644 index 0000000000..b7c61c3a3c --- /dev/null +++ b/ext/stub/properties/privateproperties.zep.h @@ -0,0 +1,23 @@ + +extern zend_class_entry *stub_properties_privateproperties_ce; + +ZEPHIR_INIT_CLASS(Stub_Properties_PrivateProperties); + +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeNull); +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeNullInitial); +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeFalse); +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeTrue); +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeInteger); +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeDouble); +PHP_METHOD(Stub_Properties_PrivateProperties, getSomeString); + +ZEPHIR_INIT_FUNCS(stub_properties_privateproperties_method_entry) { + PHP_ME(Stub_Properties_PrivateProperties, getSomeNull, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_PrivateProperties, getSomeNullInitial, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_PrivateProperties, getSomeFalse, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_PrivateProperties, getSomeTrue, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_PrivateProperties, getSomeInteger, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_PrivateProperties, getSomeDouble, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_PrivateProperties, getSomeString, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/properties/propertyarray.zep.c b/ext/stub/properties/propertyarray.zep.c similarity index 71% rename from ext/test/properties/propertyarray.zep.c rename to ext/stub/properties/propertyarray.zep.c index aa164a4e17..f7bfd1b028 100644 --- a/ext/test/properties/propertyarray.zep.c +++ b/ext/stub/properties/propertyarray.zep.c @@ -22,31 +22,31 @@ /** * @link https://github.com/phalcon/zephir/issues/520 */ -ZEPHIR_INIT_CLASS(Test_Properties_PropertyArray) { +ZEPHIR_INIT_CLASS(Stub_Properties_PropertyArray) { - ZEPHIR_REGISTER_CLASS(Test\\Properties, PropertyArray, test, properties_propertyarray, test_properties_propertyarray_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Properties, PropertyArray, stub, properties_propertyarray, stub_properties_propertyarray_method_entry, 0); /** * This is a public property with an initial empty-array value */ - zend_declare_property_null(test_properties_propertyarray_ce, SL("someEmptyArray"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_properties_propertyarray_ce, SL("someEmptyArray"), ZEND_ACC_PUBLIC); /** * This is a public property with an initial array value */ - zend_declare_property_null(test_properties_propertyarray_ce, SL("someArray"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_properties_propertyarray_ce, SL("someArray"), ZEND_ACC_PUBLIC); /** * This is a protected property with an initial empty-array value */ - zend_declare_property_null(test_properties_propertyarray_ce, SL("otherArray"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_properties_propertyarray_ce, SL("otherArray"), ZEND_ACC_PROTECTED); - test_properties_propertyarray_ce->create_object = zephir_init_properties_Test_Properties_PropertyArray; + stub_properties_propertyarray_ce->create_object = zephir_init_properties_Stub_Properties_PropertyArray; return SUCCESS; } -PHP_METHOD(Test_Properties_PropertyArray, __construct) { +PHP_METHOD(Stub_Properties_PropertyArray, __construct) { zval _1; zval _0; @@ -68,7 +68,7 @@ PHP_METHOD(Test_Properties_PropertyArray, __construct) { } -PHP_METHOD(Test_Properties_PropertyArray, appendSome) { +PHP_METHOD(Stub_Properties_PropertyArray, appendSome) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -89,7 +89,7 @@ PHP_METHOD(Test_Properties_PropertyArray, appendSome) { } -PHP_METHOD(Test_Properties_PropertyArray, setOtherArray) { +PHP_METHOD(Stub_Properties_PropertyArray, setOtherArray) { zval *arr, arr_sub; zval *this_ptr = getThis(); @@ -104,7 +104,7 @@ PHP_METHOD(Test_Properties_PropertyArray, setOtherArray) { } -PHP_METHOD(Test_Properties_PropertyArray, getOtherArray) { +PHP_METHOD(Stub_Properties_PropertyArray, getOtherArray) { zval *this_ptr = getThis(); @@ -113,7 +113,7 @@ PHP_METHOD(Test_Properties_PropertyArray, getOtherArray) { } -PHP_METHOD(Test_Properties_PropertyArray, testIssues1831) { +PHP_METHOD(Stub_Properties_PropertyArray, testIssues1831) { zval info, headers, _0$$3, _2$$3, _3$$3, _5$$5; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -136,7 +136,7 @@ PHP_METHOD(Test_Properties_PropertyArray, testIssues1831) { if (!(1)) { break; } - zephir_read_property(&_0$$3, this_ptr, SL("otherArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0$$3, this_ptr, ZEND_STRL("otherArray"), PH_NOISY_CC | PH_READONLY); ZEPHIR_MAKE_REF(&_0$$3); ZEPHIR_CALL_FUNCTION(&info, "array_shift", &_1, 74, &_0$$3); ZEPHIR_UNREF(&_0$$3); @@ -146,10 +146,10 @@ PHP_METHOD(Test_Properties_PropertyArray, testIssues1831) { ZEPHIR_CALL_FUNCTION(&_3$$3, "stripos", &_4, 75, &info, &_2$$3); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(&_3$$3)) { - zephir_array_append(&headers, &info, PH_SEPARATE, "test/properties/propertyarray.zep", 51); + zephir_array_append(&headers, &info, PH_SEPARATE, "stub/properties/propertyarray.zep", 51); continue; } else { - zephir_read_property(&_5$$5, this_ptr, SL("otherArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_5$$5, this_ptr, ZEND_STRL("otherArray"), PH_NOISY_CC | PH_READONLY); ZEPHIR_MAKE_REF(&_5$$5); ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", &_6, 76, &_5$$5, &info); ZEPHIR_UNREF(&_5$$5); @@ -161,7 +161,7 @@ PHP_METHOD(Test_Properties_PropertyArray, testIssues1831) { } -zend_object *zephir_init_properties_Test_Properties_PropertyArray(zend_class_entry *class_type TSRMLS_DC) { +zend_object *zephir_init_properties_Stub_Properties_PropertyArray(zend_class_entry *class_type TSRMLS_DC) { zval _3$$4; zval _0, _2, _5, _1$$3, _4$$4, _6$$5; @@ -179,13 +179,13 @@ zend_object *zephir_init_properties_Test_Properties_PropertyArray(zend_class_ent { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); - zephir_read_property(&_0, this_ptr, SL("otherArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_0, this_ptr, ZEND_STRL("otherArray"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_0) == IS_NULL) { ZEPHIR_INIT_VAR(&_1$$3); array_init(&_1$$3); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("otherArray"), &_1$$3); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("otherArray"), &_1$$3); } - zephir_read_property(&_2, this_ptr, SL("someArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_2, this_ptr, ZEND_STRL("someArray"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_2) == IS_NULL) { ZEPHIR_INIT_VAR(&_3$$4); zephir_create_array(&_3$$4, 4, 0); @@ -201,13 +201,13 @@ zend_object *zephir_init_properties_Test_Properties_PropertyArray(zend_class_ent ZEPHIR_INIT_NVAR(&_4$$4); ZVAL_LONG(&_4$$4, 4); zephir_array_fast_append(&_3$$4, &_4$$4); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("someArray"), &_3$$4); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("someArray"), &_3$$4); } - zephir_read_property(&_5, this_ptr, SL("someEmptyArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_5, this_ptr, ZEND_STRL("someEmptyArray"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_5) == IS_NULL) { ZEPHIR_INIT_VAR(&_6$$5); array_init(&_6$$5); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("someEmptyArray"), &_6$$5); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("someEmptyArray"), &_6$$5); } ZEPHIR_MM_RESTORE(); return Z_OBJ_P(this_ptr); diff --git a/ext/stub/properties/propertyarray.zep.h b/ext/stub/properties/propertyarray.zep.h new file mode 100644 index 0000000000..d8268dc7a6 --- /dev/null +++ b/ext/stub/properties/propertyarray.zep.h @@ -0,0 +1,28 @@ + +extern zend_class_entry *stub_properties_propertyarray_ce; + +ZEPHIR_INIT_CLASS(Stub_Properties_PropertyArray); + +PHP_METHOD(Stub_Properties_PropertyArray, __construct); +PHP_METHOD(Stub_Properties_PropertyArray, appendSome); +PHP_METHOD(Stub_Properties_PropertyArray, setOtherArray); +PHP_METHOD(Stub_Properties_PropertyArray, getOtherArray); +PHP_METHOD(Stub_Properties_PropertyArray, testIssues1831); +zend_object *zephir_init_properties_Stub_Properties_PropertyArray(zend_class_entry *class_type TSRMLS_DC); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_properties_propertyarray_appendsome, 0, 0, 1) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_properties_propertyarray_setotherarray, 0, 0, 1) + ZEND_ARG_INFO(0, arr) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_properties_propertyarray_method_entry) { + PHP_ME(Stub_Properties_PropertyArray, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Stub_Properties_PropertyArray, appendSome, arginfo_stub_properties_propertyarray_appendsome, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_PropertyArray, setOtherArray, arginfo_stub_properties_propertyarray_setotherarray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_PropertyArray, getOtherArray, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_PropertyArray, testIssues1831, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/properties/propertyupdate.zep.c b/ext/stub/properties/propertyupdate.zep.c similarity index 69% rename from ext/test/properties/propertyupdate.zep.c rename to ext/stub/properties/propertyupdate.zep.c index bb302b8f57..20a467b89a 100644 --- a/ext/test/properties/propertyupdate.zep.c +++ b/ext/stub/properties/propertyupdate.zep.c @@ -16,17 +16,17 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Properties_PropertyUpdate) { +ZEPHIR_INIT_CLASS(Stub_Properties_PropertyUpdate) { - ZEPHIR_REGISTER_CLASS(Test\\Properties, PropertyUpdate, test, properties_propertyupdate, test_properties_propertyupdate_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Properties, PropertyUpdate, stub, properties_propertyupdate, stub_properties_propertyupdate_method_entry, 0); - zend_declare_property_null(test_properties_propertyupdate_ce, SL("p1"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_properties_propertyupdate_ce, SL("p1"), ZEND_ACC_PUBLIC); return SUCCESS; } -PHP_METHOD(Test_Properties_PropertyUpdate, update1) { +PHP_METHOD(Stub_Properties_PropertyUpdate, update1) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/properties/propertyupdate.zep.h b/ext/stub/properties/propertyupdate.zep.h new file mode 100644 index 0000000000..58df44435d --- /dev/null +++ b/ext/stub/properties/propertyupdate.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_properties_propertyupdate_ce; + +ZEPHIR_INIT_CLASS(Stub_Properties_PropertyUpdate); + +PHP_METHOD(Stub_Properties_PropertyUpdate, update1); + +ZEPHIR_INIT_FUNCS(stub_properties_propertyupdate_method_entry) { + PHP_ME(Stub_Properties_PropertyUpdate, update1, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/stub/properties/protectedproperties.zep.c b/ext/stub/properties/protectedproperties.zep.c new file mode 100644 index 0000000000..a5e682c57f --- /dev/null +++ b/ext/stub/properties/protectedproperties.zep.c @@ -0,0 +1,267 @@ + +#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/object.h" +#include "kernel/memory.h" +#include "kernel/operators.h" + + +/** + * Stub\Properties\ProtectedProperties + */ +ZEPHIR_INIT_CLASS(Stub_Properties_ProtectedProperties) { + + ZEPHIR_REGISTER_CLASS(Stub\\Properties, ProtectedProperties, stub, properties_protectedproperties, stub_properties_protectedproperties_method_entry, 0); + + /** + * This is a protected property with no initial value + */ + zend_declare_property_null(stub_properties_protectedproperties_ce, SL("someNull"), ZEND_ACC_PROTECTED); + + /** + * This is a protected property with initial null value + */ + zend_declare_property_null(stub_properties_protectedproperties_ce, SL("someNullInitial"), ZEND_ACC_PROTECTED); + + /** + * This is a protected property with initial boolean false + */ + zend_declare_property_bool(stub_properties_protectedproperties_ce, SL("someFalse"), 0, ZEND_ACC_PROTECTED); + + /** + * This is a protected property with initial boolean true + */ + zend_declare_property_bool(stub_properties_protectedproperties_ce, SL("someTrue"), 1, ZEND_ACC_PROTECTED); + + /** + * This is a protected property with an initial integer value + */ + zend_declare_property_long(stub_properties_protectedproperties_ce, SL("someInteger"), 10, ZEND_ACC_PROTECTED); + + /** + * This is a protected property with an initial double value + */ + zend_declare_property_double(stub_properties_protectedproperties_ce, SL("someDouble"), 10.25, ZEND_ACC_PROTECTED); + + /** + * This is a protected property with an initial string value + */ + zend_declare_property_string(stub_properties_protectedproperties_ce, SL("someString"), "test", ZEND_ACC_PROTECTED); + + /** + * @var null|mixed + */ + zend_declare_property_null(stub_properties_protectedproperties_ce, SL("someVar"), ZEND_ACC_PROTECTED); + + /** + * This is a property to test default value on extends + * @var array + */ + zend_declare_property_null(stub_properties_protectedproperties_ce, SL("someArrayVar"), ZEND_ACC_PROTECTED); + + stub_properties_protectedproperties_ce->create_object = zephir_init_properties_Stub_Properties_ProtectedProperties; + return SUCCESS; + +} + +/** + */ +PHP_METHOD(Stub_Properties_ProtectedProperties, setSomeVar) { + + zval *someVar, someVar_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&someVar_sub); + + zephir_fetch_params_without_memory_grow(1, 0, &someVar); + + + + zephir_update_property_zval(this_ptr, ZEND_STRL("someVar"), someVar); + RETURN_THISW(); + +} + +/** + */ +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeVar) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "someVar"); + +} + +/** + * This is a property to test default value on extends + */ +PHP_METHOD(Stub_Properties_ProtectedProperties, setSomeArrayVar) { + + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + zval *someArrayVar_param = NULL; + zval someArrayVar; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(&someArrayVar); + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 1, 0, &someArrayVar_param); + + zephir_get_arrval(&someArrayVar, someArrayVar_param); + + + zephir_update_property_zval(this_ptr, ZEND_STRL("someArrayVar"), &someArrayVar); + RETURN_THIS(); + +} + +/** + * This is a property to test default value on extends + */ +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeArrayVar) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "someArrayVar"); + +} + +/** + * @return null|mixed + */ +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeNull) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "someNull"); + +} + +/** + * @return void + */ +PHP_METHOD(Stub_Properties_ProtectedProperties, setSomeNull) { + + zval *param, param_sub; + zval *this_ptr = getThis(); + + ZVAL_UNDEF(¶m_sub); + + zephir_fetch_params_without_memory_grow(1, 0, ¶m); + + + + zephir_update_property_zval(this_ptr, ZEND_STRL("someNull"), param); + +} + +/** + * @return null + */ +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeNullInitial) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "someNullInitial"); + +} + +/** + * @return bool + */ +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeFalse) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "someFalse"); + +} + +/** + * @return bool + */ +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeTrue) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "someTrue"); + +} + +/** + * @return int + */ +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeInteger) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "someInteger"); + +} + +/** + * @return float + */ +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeDouble) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "someDouble"); + +} + +/** + * @return string + */ +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeString) { + + zval *this_ptr = getThis(); + + + RETURN_MEMBER(getThis(), "someString"); + +} + +zend_object *zephir_init_properties_Stub_Properties_ProtectedProperties(zend_class_entry *class_type TSRMLS_DC) { + + zval _0, _1$$3; + zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1$$3); + + ZEPHIR_MM_GROW(); + + { + zval local_this_ptr, *this_ptr = &local_this_ptr; + ZEPHIR_CREATE_OBJECT(this_ptr, class_type); + zephir_read_property_ex(&_0, this_ptr, ZEND_STRL("someArrayVar"), PH_NOISY_CC | PH_READONLY); + if (Z_TYPE_P(&_0) == IS_NULL) { + ZEPHIR_INIT_VAR(&_1$$3); + array_init(&_1$$3); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("someArrayVar"), &_1$$3); + } + ZEPHIR_MM_RESTORE(); + return Z_OBJ_P(this_ptr); + } + +} + diff --git a/ext/stub/properties/protectedproperties.zep.h b/ext/stub/properties/protectedproperties.zep.h new file mode 100644 index 0000000000..25da3ea6cd --- /dev/null +++ b/ext/stub/properties/protectedproperties.zep.h @@ -0,0 +1,53 @@ + +extern zend_class_entry *stub_properties_protectedproperties_ce; + +ZEPHIR_INIT_CLASS(Stub_Properties_ProtectedProperties); + +PHP_METHOD(Stub_Properties_ProtectedProperties, setSomeVar); +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeVar); +PHP_METHOD(Stub_Properties_ProtectedProperties, setSomeArrayVar); +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeArrayVar); +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeNull); +PHP_METHOD(Stub_Properties_ProtectedProperties, setSomeNull); +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeNullInitial); +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeFalse); +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeTrue); +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeInteger); +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeDouble); +PHP_METHOD(Stub_Properties_ProtectedProperties, getSomeString); +zend_object *zephir_init_properties_Stub_Properties_ProtectedProperties(zend_class_entry *class_type TSRMLS_DC); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_properties_protectedproperties_setsomevar, 0, 0, 1) + ZEND_ARG_INFO(0, someVar) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_properties_protectedproperties_setsomearrayvar, 0, 0, 1) + ZEND_ARG_ARRAY_INFO(0, someArrayVar, 0) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_properties_protectedproperties_getsomearrayvar, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_properties_protectedproperties_getsomearrayvar, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_properties_protectedproperties_setsomenull, 0, 0, 1) + ZEND_ARG_INFO(0, param) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_properties_protectedproperties_method_entry) { + PHP_ME(Stub_Properties_ProtectedProperties, setSomeVar, arginfo_stub_properties_protectedproperties_setsomevar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_ProtectedProperties, getSomeVar, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_ProtectedProperties, setSomeArrayVar, arginfo_stub_properties_protectedproperties_setsomearrayvar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_ProtectedProperties, getSomeArrayVar, arginfo_stub_properties_protectedproperties_getsomearrayvar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_ProtectedProperties, getSomeNull, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_ProtectedProperties, setSomeNull, arginfo_stub_properties_protectedproperties_setsomenull, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_ProtectedProperties, getSomeNullInitial, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_ProtectedProperties, getSomeFalse, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_ProtectedProperties, getSomeTrue, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_ProtectedProperties, getSomeInteger, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_ProtectedProperties, getSomeDouble, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_ProtectedProperties, getSomeString, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/properties/publicproperties.zep.c b/ext/stub/properties/publicproperties.zep.c similarity index 66% rename from ext/test/properties/publicproperties.zep.c rename to ext/stub/properties/publicproperties.zep.c index 8ceb410700..8cf40fc47b 100644 --- a/ext/test/properties/publicproperties.zep.c +++ b/ext/stub/properties/publicproperties.zep.c @@ -18,81 +18,81 @@ #include "kernel/array.h" -ZEPHIR_INIT_CLASS(Test_Properties_PublicProperties) { +ZEPHIR_INIT_CLASS(Stub_Properties_PublicProperties) { - ZEPHIR_REGISTER_CLASS(Test\\Properties, PublicProperties, test, properties_publicproperties, test_properties_publicproperties_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Properties, PublicProperties, stub, properties_publicproperties, stub_properties_publicproperties_method_entry, 0); /** * This is a public property with no initial value */ - zend_declare_property_null(test_properties_publicproperties_ce, SL("someNull"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_properties_publicproperties_ce, SL("someNull"), ZEND_ACC_PUBLIC); /** * This is a public property with initial null value */ - zend_declare_property_null(test_properties_publicproperties_ce, SL("someNullInitial"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_properties_publicproperties_ce, SL("someNullInitial"), ZEND_ACC_PUBLIC); /** * This is a public property with initial boolean false */ - zend_declare_property_bool(test_properties_publicproperties_ce, SL("someFalse"), 0, ZEND_ACC_PUBLIC); + zend_declare_property_bool(stub_properties_publicproperties_ce, SL("someFalse"), 0, ZEND_ACC_PUBLIC); /** * This is a public property with initial boolean true */ - zend_declare_property_bool(test_properties_publicproperties_ce, SL("someTrue"), 1, ZEND_ACC_PUBLIC); + zend_declare_property_bool(stub_properties_publicproperties_ce, SL("someTrue"), 1, ZEND_ACC_PUBLIC); /** * This is a public property with an initial integer value */ - zend_declare_property_long(test_properties_publicproperties_ce, SL("someInteger"), 10, ZEND_ACC_PUBLIC); + zend_declare_property_long(stub_properties_publicproperties_ce, SL("someInteger"), 10, ZEND_ACC_PUBLIC); /** * This is a public property with an initial double value */ - zend_declare_property_double(test_properties_publicproperties_ce, SL("someDouble"), 10.25, ZEND_ACC_PUBLIC); + zend_declare_property_double(stub_properties_publicproperties_ce, SL("someDouble"), 10.25, ZEND_ACC_PUBLIC); /** * This is a public property with an initial string value */ - zend_declare_property_string(test_properties_publicproperties_ce, SL("someString"), "test", ZEND_ACC_PUBLIC); + zend_declare_property_string(stub_properties_publicproperties_ce, SL("someString"), "test", ZEND_ACC_PUBLIC); /** * This is a public property with an initial empty-array value */ - zend_declare_property_null(test_properties_publicproperties_ce, SL("someEmptyArray"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_properties_publicproperties_ce, SL("someEmptyArray"), ZEND_ACC_PUBLIC); /** * This is a public property with an initial array value */ - zend_declare_property_null(test_properties_publicproperties_ce, SL("someArray"), ZEND_ACC_PUBLIC); + zend_declare_property_null(stub_properties_publicproperties_ce, SL("someArray"), ZEND_ACC_PUBLIC); /** * It's needed to test ide stubs * @link https://github.com/phalcon/zephir/issues/731 */ - zend_declare_property_null(test_properties_publicproperties_ce, SL("someArrayWithSpecifyKeys"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_properties_publicproperties_ce, SL("someArrayWithSpecifyKeys"), ZEND_ACC_PROTECTED); /** * It's needed to test ide stubs * @link https://github.com/phalcon/zephir/issues/731 */ - zend_declare_property_null(test_properties_publicproperties_ce, SL("someArrayWithSubArray"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_properties_publicproperties_ce, SL("someArrayWithSubArray"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_properties_publicproperties_ce, SL("someGetterSetterArray"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_properties_publicproperties_ce, SL("someGetterSetterArray"), ZEND_ACC_PROTECTED); - zend_declare_property_long(test_properties_publicproperties_ce, SL("testPropertyFromSelfConstantValue"), 123, ZEND_ACC_PUBLIC); + zend_declare_property_long(stub_properties_publicproperties_ce, SL("testPropertyFromSelfConstantValue"), 123, ZEND_ACC_PUBLIC); - zend_declare_property_long(test_properties_publicproperties_ce, SL("testPropertyFromClassNameConstantValue"), 123, ZEND_ACC_PUBLIC); + zend_declare_property_long(stub_properties_publicproperties_ce, SL("testPropertyFromClassNameConstantValue"), 123, ZEND_ACC_PUBLIC); - test_properties_publicproperties_ce->create_object = zephir_init_properties_Test_Properties_PublicProperties; - zephir_declare_class_constant_long(test_properties_publicproperties_ce, SL("TEST_CONST"), 123); + stub_properties_publicproperties_ce->create_object = zephir_init_properties_Stub_Properties_PublicProperties; + zephir_declare_class_constant_long(stub_properties_publicproperties_ce, SL("TEST_CONST"), 123); return SUCCESS; } -PHP_METHOD(Test_Properties_PublicProperties, setSomeGetterSetterArray) { +PHP_METHOD(Stub_Properties_PublicProperties, setSomeGetterSetterArray) { zval *someGetterSetterArray, someGetterSetterArray_sub; zval *this_ptr = getThis(); @@ -108,7 +108,7 @@ PHP_METHOD(Test_Properties_PublicProperties, setSomeGetterSetterArray) { } -PHP_METHOD(Test_Properties_PublicProperties, getSomeGetterSetterArray) { +PHP_METHOD(Stub_Properties_PublicProperties, getSomeGetterSetterArray) { zval *this_ptr = getThis(); @@ -117,7 +117,7 @@ PHP_METHOD(Test_Properties_PublicProperties, getSomeGetterSetterArray) { } -PHP_METHOD(Test_Properties_PublicProperties, test394Issue) { +PHP_METHOD(Stub_Properties_PublicProperties, test394Issue) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -128,12 +128,12 @@ PHP_METHOD(Test_Properties_PublicProperties, test394Issue) { ZEPHIR_MM_GROW(); ZEPHIR_OBS_VAR(&_0); - zephir_read_property(&_0, this_ptr, SL("someTrue"), PH_NOISY_CC); + zephir_read_property(&_0, this_ptr, ZEND_STRL("someTrue"), PH_NOISY_CC); RETURN_CCTOR(&_0); } -zend_object *zephir_init_properties_Test_Properties_PublicProperties(zend_class_entry *class_type TSRMLS_DC) { +zend_object *zephir_init_properties_Stub_Properties_PublicProperties(zend_class_entry *class_type TSRMLS_DC) { zval _3$$4, _4$$4, _6$$5, _8$$6; zval _0, _2, _5, _7, _10, _1$$3, _9$$6, _11$$7; @@ -156,13 +156,13 @@ zend_object *zephir_init_properties_Test_Properties_PublicProperties(zend_class_ { zval local_this_ptr, *this_ptr = &local_this_ptr; ZEPHIR_CREATE_OBJECT(this_ptr, class_type); - zephir_read_property(&_0, this_ptr, SL("someGetterSetterArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_0, this_ptr, ZEND_STRL("someGetterSetterArray"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_0) == IS_NULL) { ZEPHIR_INIT_VAR(&_1$$3); array_init(&_1$$3); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("someGetterSetterArray"), &_1$$3); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("someGetterSetterArray"), &_1$$3); } - zephir_read_property(&_2, this_ptr, SL("someArrayWithSubArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_2, this_ptr, ZEND_STRL("someArrayWithSubArray"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_2) == IS_NULL) { ZEPHIR_INIT_VAR(&_3$$4); zephir_create_array(&_3$$4, 4, 0); @@ -182,18 +182,18 @@ zend_object *zephir_init_properties_Test_Properties_PublicProperties(zend_class_ zephir_create_array(&_4$$4, 1, 0); add_assoc_stringl_ex(&_4$$4, SL("class"), SL("alert alert-danger")); zephir_array_update_string(&_3$$4, SL("danger"), &_4$$4, PH_COPY | PH_SEPARATE); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("someArrayWithSubArray"), &_3$$4); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("someArrayWithSubArray"), &_3$$4); } - zephir_read_property(&_5, this_ptr, SL("someArrayWithSpecifyKeys"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_5, this_ptr, ZEND_STRL("someArrayWithSpecifyKeys"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_5) == IS_NULL) { ZEPHIR_INIT_VAR(&_6$$5); zephir_create_array(&_6$$5, 3, 0); add_assoc_stringl_ex(&_6$$5, SL("a"), SL("A")); add_assoc_stringl_ex(&_6$$5, SL("b"), SL("B")); add_assoc_stringl_ex(&_6$$5, SL("c"), SL("C")); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("someArrayWithSpecifyKeys"), &_6$$5); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("someArrayWithSpecifyKeys"), &_6$$5); } - zephir_read_property(&_7, this_ptr, SL("someArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_7, this_ptr, ZEND_STRL("someArray"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_7) == IS_NULL) { ZEPHIR_INIT_VAR(&_8$$6); zephir_create_array(&_8$$6, 4, 0); @@ -209,13 +209,13 @@ zend_object *zephir_init_properties_Test_Properties_PublicProperties(zend_class_ ZEPHIR_INIT_NVAR(&_9$$6); ZVAL_LONG(&_9$$6, 4); zephir_array_fast_append(&_8$$6, &_9$$6); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("someArray"), &_8$$6); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("someArray"), &_8$$6); } - zephir_read_property(&_10, this_ptr, SL("someEmptyArray"), PH_NOISY_CC | PH_READONLY); + zephir_read_property_ex(&_10, this_ptr, ZEND_STRL("someEmptyArray"), PH_NOISY_CC | PH_READONLY); if (Z_TYPE_P(&_10) == IS_NULL) { ZEPHIR_INIT_VAR(&_11$$7); array_init(&_11$$7); - zend_update_property(Z_OBJCE_P(this_ptr), this_ptr, ZEND_STRL("someEmptyArray"), &_11$$7); + zephir_update_property_zval_ex(this_ptr, ZEND_STRL("someEmptyArray"), &_11$$7); } ZEPHIR_MM_RESTORE(); return Z_OBJ_P(this_ptr); diff --git a/ext/stub/properties/publicproperties.zep.h b/ext/stub/properties/publicproperties.zep.h new file mode 100644 index 0000000000..714dc88874 --- /dev/null +++ b/ext/stub/properties/publicproperties.zep.h @@ -0,0 +1,20 @@ + +extern zend_class_entry *stub_properties_publicproperties_ce; + +ZEPHIR_INIT_CLASS(Stub_Properties_PublicProperties); + +PHP_METHOD(Stub_Properties_PublicProperties, setSomeGetterSetterArray); +PHP_METHOD(Stub_Properties_PublicProperties, getSomeGetterSetterArray); +PHP_METHOD(Stub_Properties_PublicProperties, test394Issue); +zend_object *zephir_init_properties_Stub_Properties_PublicProperties(zend_class_entry *class_type TSRMLS_DC); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_properties_publicproperties_setsomegettersetterarray, 0, 0, 1) + ZEND_ARG_INFO(0, someGetterSetterArray) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_properties_publicproperties_method_entry) { + PHP_ME(Stub_Properties_PublicProperties, setSomeGetterSetterArray, arginfo_stub_properties_publicproperties_setsomegettersetterarray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_PublicProperties, getSomeGetterSetterArray, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_PublicProperties, test394Issue, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/properties/staticprivateproperties.zep.c b/ext/stub/properties/staticprivateproperties.zep.c similarity index 67% rename from ext/test/properties/staticprivateproperties.zep.c rename to ext/stub/properties/staticprivateproperties.zep.c index 4690923cbe..2f593f2920 100644 --- a/ext/test/properties/staticprivateproperties.zep.c +++ b/ext/stub/properties/staticprivateproperties.zep.c @@ -17,17 +17,17 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_Properties_StaticPrivateProperties) { +ZEPHIR_INIT_CLASS(Stub_Properties_StaticPrivateProperties) { - ZEPHIR_REGISTER_CLASS(Test\\Properties, StaticPrivateProperties, test, properties_staticprivateproperties, test_properties_staticprivateproperties_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Properties, StaticPrivateProperties, stub, properties_staticprivateproperties, stub_properties_staticprivateproperties_method_entry, 0); - zend_declare_property_null(test_properties_staticprivateproperties_ce, SL("instance"), ZEND_ACC_PRIVATE|ZEND_ACC_STATIC); + zend_declare_property_null(stub_properties_staticprivateproperties_ce, SL("instance"), ZEND_ACC_PRIVATE|ZEND_ACC_STATIC); return SUCCESS; } -PHP_METHOD(Test_Properties_StaticPrivateProperties, getInstance) { +PHP_METHOD(Stub_Properties_StaticPrivateProperties, getInstance) { zval localInstance, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -40,17 +40,17 @@ PHP_METHOD(Test_Properties_StaticPrivateProperties, getInstance) { ZEPHIR_MM_GROW(); ZEPHIR_OBS_VAR(&localInstance); - zephir_read_static_property_ce(&localInstance, test_properties_staticprivateproperties_ce, SL("instance"), PH_NOISY_CC); + zephir_read_static_property_ce(&localInstance, stub_properties_staticprivateproperties_ce, SL("instance"), PH_NOISY_CC); if (UNEXPECTED(Z_TYPE_P(&localInstance) != IS_OBJECT)) { ZEPHIR_INIT_NVAR(&localInstance); - object_init_ex(&localInstance, test_properties_staticprivateproperties_ce); + object_init_ex(&localInstance, stub_properties_staticprivateproperties_ce); if (zephir_has_constructor(&localInstance)) { ZEPHIR_CALL_METHOD(NULL, &localInstance, "__construct", NULL, 0); zephir_check_call_status(); } - zephir_update_static_property_ce(test_properties_staticprivateproperties_ce, ZEND_STRL("instance"), &localInstance); + zephir_update_static_property_ce(stub_properties_staticprivateproperties_ce, ZEND_STRL("instance"), &localInstance); } - zephir_read_static_property_ce(&_0, test_properties_staticprivateproperties_ce, SL("instance"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_0, stub_properties_staticprivateproperties_ce, SL("instance"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_0); } diff --git a/ext/stub/properties/staticprivateproperties.zep.h b/ext/stub/properties/staticprivateproperties.zep.h new file mode 100644 index 0000000000..c3b83278e3 --- /dev/null +++ b/ext/stub/properties/staticprivateproperties.zep.h @@ -0,0 +1,18 @@ + +extern zend_class_entry *stub_properties_staticprivateproperties_ce; + +ZEPHIR_INIT_CLASS(Stub_Properties_StaticPrivateProperties); + +PHP_METHOD(Stub_Properties_StaticPrivateProperties, getInstance); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_stub_properties_staticprivateproperties_getinstance, 0, 0, Stub\\Properties\\StaticPrivateProperties, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_properties_staticprivateproperties_getinstance, 0, 0, IS_OBJECT, "Stub\\Properties\\StaticPrivateProperties", 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_properties_staticprivateproperties_method_entry) { + PHP_ME(Stub_Properties_StaticPrivateProperties, getInstance, arginfo_stub_properties_staticprivateproperties_getinstance, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/properties/staticpropertyarray.zep.c b/ext/stub/properties/staticpropertyarray.zep.c similarity index 74% rename from ext/test/properties/staticpropertyarray.zep.c rename to ext/stub/properties/staticpropertyarray.zep.c index d467b44469..c25dd1e90b 100644 --- a/ext/test/properties/staticpropertyarray.zep.c +++ b/ext/stub/properties/staticpropertyarray.zep.c @@ -21,25 +21,25 @@ * @link https://github.com/phalcon/zephir/issues/367 * @link https://github.com/phalcon/zephir/issues/188 */ -ZEPHIR_INIT_CLASS(Test_Properties_StaticPropertyArray) { +ZEPHIR_INIT_CLASS(Stub_Properties_StaticPropertyArray) { - ZEPHIR_REGISTER_CLASS(Test\\Properties, StaticPropertyArray, test, properties_staticpropertyarray, NULL, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Properties, StaticPropertyArray, stub, properties_staticpropertyarray, NULL, 0); /** * This is a public property with an initial empty-array value */ - zend_declare_property_null(test_properties_staticpropertyarray_ce, SL("someEmptyArray"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_null(stub_properties_staticpropertyarray_ce, SL("someEmptyArray"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); /** * This is a public property with an initial array value */ - zend_declare_property_null(test_properties_staticpropertyarray_ce, SL("someArray"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_null(stub_properties_staticpropertyarray_ce, SL("someArray"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); return SUCCESS; } -void zephir_init_static_properties_Test_Properties_StaticPropertyArray(TSRMLS_D) { +void zephir_init_static_properties_Stub_Properties_StaticPropertyArray(TSRMLS_D) { zval _1; zval _0; @@ -63,10 +63,10 @@ void zephir_init_static_properties_Test_Properties_StaticPropertyArray(TSRMLS_D) ZEPHIR_INIT_NVAR(&_1); ZVAL_LONG(&_1, 4); zephir_array_fast_append(&_0, &_1); - zephir_update_static_property_ce(test_properties_staticpropertyarray_ce, ZEND_STRL("someArray"), &_0); + zephir_update_static_property_ce(stub_properties_staticpropertyarray_ce, ZEND_STRL("someArray"), &_0); ZEPHIR_INIT_NVAR(&_1); array_init(&_1); - zephir_update_static_property_ce(test_properties_staticpropertyarray_ce, ZEND_STRL("someEmptyArray"), &_1); + zephir_update_static_property_ce(stub_properties_staticpropertyarray_ce, ZEND_STRL("someEmptyArray"), &_1); ZEPHIR_MM_RESTORE(); } diff --git a/ext/stub/properties/staticpropertyarray.zep.h b/ext/stub/properties/staticpropertyarray.zep.h new file mode 100644 index 0000000000..87a6466845 --- /dev/null +++ b/ext/stub/properties/staticpropertyarray.zep.h @@ -0,0 +1,10 @@ + +extern zend_class_entry *stub_properties_staticpropertyarray_ce; + +ZEPHIR_INIT_CLASS(Stub_Properties_StaticPropertyArray); + +void zephir_init_static_properties_Stub_Properties_StaticPropertyArray(TSRMLS_D); + +ZEPHIR_INIT_FUNCS(stub_properties_staticpropertyarray_method_entry) { + PHP_FE_END +}; diff --git a/ext/test/properties/staticprotectedproperties.zep.c b/ext/stub/properties/staticprotectedproperties.zep.c similarity index 62% rename from ext/test/properties/staticprotectedproperties.zep.c rename to ext/stub/properties/staticprotectedproperties.zep.c index 7404121be3..4ec925b52f 100644 --- a/ext/test/properties/staticprotectedproperties.zep.c +++ b/ext/stub/properties/staticprotectedproperties.zep.c @@ -16,52 +16,52 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Properties_StaticProtectedProperties) { +ZEPHIR_INIT_CLASS(Stub_Properties_StaticProtectedProperties) { - ZEPHIR_REGISTER_CLASS(Test\\Properties, StaticProtectedProperties, test, properties_staticprotectedproperties, test_properties_staticprotectedproperties_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Properties, StaticProtectedProperties, stub, properties_staticprotectedproperties, stub_properties_staticprotectedproperties_method_entry, 0); /** * This is a protected property with no initial value */ - zend_declare_property_null(test_properties_staticprotectedproperties_ce, SL("someNull"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_null(stub_properties_staticprotectedproperties_ce, SL("someNull"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); /** * This is a protected property with initial null value */ - zend_declare_property_null(test_properties_staticprotectedproperties_ce, SL("someNullInitial"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_null(stub_properties_staticprotectedproperties_ce, SL("someNullInitial"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); /** * This is a protected property with initial boolean false */ - zend_declare_property_bool(test_properties_staticprotectedproperties_ce, SL("someFalse"), 0, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_bool(stub_properties_staticprotectedproperties_ce, SL("someFalse"), 0, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); /** * This is a protected property with initial boolean true */ - zend_declare_property_bool(test_properties_staticprotectedproperties_ce, SL("someTrue"), 1, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_bool(stub_properties_staticprotectedproperties_ce, SL("someTrue"), 1, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); /** * This is a protected property with an initial integer value */ - zend_declare_property_long(test_properties_staticprotectedproperties_ce, SL("someInteger"), 10, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_long(stub_properties_staticprotectedproperties_ce, SL("someInteger"), 10, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); /** * This is a protected property with an initial double value */ - zend_declare_property_double(test_properties_staticprotectedproperties_ce, SL("someDouble"), 10.25, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_double(stub_properties_staticprotectedproperties_ce, SL("someDouble"), 10.25, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); /** * This is a protected property with an initial string value */ - zend_declare_property_string(test_properties_staticprotectedproperties_ce, SL("someString"), "test", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_string(stub_properties_staticprotectedproperties_ce, SL("someString"), "test", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); - zend_declare_property_null(test_properties_staticprotectedproperties_ce, SL("someVar"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_null(stub_properties_staticprotectedproperties_ce, SL("someVar"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); return SUCCESS; } -PHP_METHOD(Test_Properties_StaticProtectedProperties, setSomeVar) { +PHP_METHOD(Stub_Properties_StaticProtectedProperties, setSomeVar) { zval *someVar, someVar_sub; zval *this_ptr = getThis(); @@ -77,7 +77,7 @@ PHP_METHOD(Test_Properties_StaticProtectedProperties, setSomeVar) { } -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeVar) { +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeVar) { zval *this_ptr = getThis(); @@ -86,7 +86,7 @@ PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeVar) { } -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeNull) { +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeNull) { zval _0; zval *this_ptr = getThis(); @@ -94,12 +94,12 @@ PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeNull) { ZVAL_UNDEF(&_0); - zephir_read_static_property_ce(&_0, test_properties_staticprotectedproperties_ce, SL("someNull"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_0, stub_properties_staticprotectedproperties_ce, SL("someNull"), PH_NOISY_CC | PH_READONLY); RETURN_CTORW(&_0); } -PHP_METHOD(Test_Properties_StaticProtectedProperties, setSomeNull) { +PHP_METHOD(Stub_Properties_StaticProtectedProperties, setSomeNull) { zval *param, param_sub; zval *this_ptr = getThis(); @@ -110,11 +110,11 @@ PHP_METHOD(Test_Properties_StaticProtectedProperties, setSomeNull) { - zephir_update_static_property_ce(test_properties_staticprotectedproperties_ce, ZEND_STRL("someNull"), param); + zephir_update_static_property_ce(stub_properties_staticprotectedproperties_ce, ZEND_STRL("someNull"), param); } -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeNullInitial) { +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeNullInitial) { zval _0; zval *this_ptr = getThis(); @@ -122,12 +122,12 @@ PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeNullInitial) { ZVAL_UNDEF(&_0); - zephir_read_static_property_ce(&_0, test_properties_staticprotectedproperties_ce, SL("someNullInitial"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_0, stub_properties_staticprotectedproperties_ce, SL("someNullInitial"), PH_NOISY_CC | PH_READONLY); RETURN_CTORW(&_0); } -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeFalse) { +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeFalse) { zval _0; zval *this_ptr = getThis(); @@ -135,12 +135,12 @@ PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeFalse) { ZVAL_UNDEF(&_0); - zephir_read_static_property_ce(&_0, test_properties_staticprotectedproperties_ce, SL("someFalse"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_0, stub_properties_staticprotectedproperties_ce, SL("someFalse"), PH_NOISY_CC | PH_READONLY); RETURN_CTORW(&_0); } -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeTrue) { +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeTrue) { zval _0; zval *this_ptr = getThis(); @@ -148,12 +148,12 @@ PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeTrue) { ZVAL_UNDEF(&_0); - zephir_read_static_property_ce(&_0, test_properties_staticprotectedproperties_ce, SL("someTrue"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_0, stub_properties_staticprotectedproperties_ce, SL("someTrue"), PH_NOISY_CC | PH_READONLY); RETURN_CTORW(&_0); } -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeInteger) { +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeInteger) { zval _0; zval *this_ptr = getThis(); @@ -161,12 +161,12 @@ PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeInteger) { ZVAL_UNDEF(&_0); - zephir_read_static_property_ce(&_0, test_properties_staticprotectedproperties_ce, SL("someInteger"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_0, stub_properties_staticprotectedproperties_ce, SL("someInteger"), PH_NOISY_CC | PH_READONLY); RETURN_CTORW(&_0); } -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeDouble) { +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeDouble) { zval _0; zval *this_ptr = getThis(); @@ -174,12 +174,12 @@ PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeDouble) { ZVAL_UNDEF(&_0); - zephir_read_static_property_ce(&_0, test_properties_staticprotectedproperties_ce, SL("someDouble"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_0, stub_properties_staticprotectedproperties_ce, SL("someDouble"), PH_NOISY_CC | PH_READONLY); RETURN_CTORW(&_0); } -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeString) { +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeString) { zval _0; zval *this_ptr = getThis(); @@ -187,7 +187,7 @@ PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeString) { ZVAL_UNDEF(&_0); - zephir_read_static_property_ce(&_0, test_properties_staticprotectedproperties_ce, SL("someString"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_0, stub_properties_staticprotectedproperties_ce, SL("someString"), PH_NOISY_CC | PH_READONLY); RETURN_CTORW(&_0); } diff --git a/ext/stub/properties/staticprotectedproperties.zep.h b/ext/stub/properties/staticprotectedproperties.zep.h new file mode 100644 index 0000000000..f5b106040d --- /dev/null +++ b/ext/stub/properties/staticprotectedproperties.zep.h @@ -0,0 +1,37 @@ + +extern zend_class_entry *stub_properties_staticprotectedproperties_ce; + +ZEPHIR_INIT_CLASS(Stub_Properties_StaticProtectedProperties); + +PHP_METHOD(Stub_Properties_StaticProtectedProperties, setSomeVar); +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeVar); +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeNull); +PHP_METHOD(Stub_Properties_StaticProtectedProperties, setSomeNull); +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeNullInitial); +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeFalse); +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeTrue); +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeInteger); +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeDouble); +PHP_METHOD(Stub_Properties_StaticProtectedProperties, getSomeString); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_properties_staticprotectedproperties_setsomevar, 0, 0, 1) + ZEND_ARG_INFO(0, someVar) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_properties_staticprotectedproperties_setsomenull, 0, 0, 1) + ZEND_ARG_INFO(0, param) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_properties_staticprotectedproperties_method_entry) { + PHP_ME(Stub_Properties_StaticProtectedProperties, setSomeVar, arginfo_stub_properties_staticprotectedproperties_setsomevar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_StaticProtectedProperties, getSomeVar, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Properties_StaticProtectedProperties, getSomeNull, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Properties_StaticProtectedProperties, setSomeNull, arginfo_stub_properties_staticprotectedproperties_setsomenull, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Properties_StaticProtectedProperties, getSomeNullInitial, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Properties_StaticProtectedProperties, getSomeFalse, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Properties_StaticProtectedProperties, getSomeTrue, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Properties_StaticProtectedProperties, getSomeInteger, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Properties_StaticProtectedProperties, getSomeDouble, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Properties_StaticProtectedProperties, getSomeString, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/properties/staticpublicproperties.zep.c b/ext/stub/properties/staticpublicproperties.zep.c similarity index 62% rename from ext/test/properties/staticpublicproperties.zep.c rename to ext/stub/properties/staticpublicproperties.zep.c index 7c7442850a..057ac928b2 100644 --- a/ext/test/properties/staticpublicproperties.zep.c +++ b/ext/stub/properties/staticpublicproperties.zep.c @@ -16,54 +16,54 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Properties_StaticPublicProperties) { +ZEPHIR_INIT_CLASS(Stub_Properties_StaticPublicProperties) { - ZEPHIR_REGISTER_CLASS(Test\\Properties, StaticPublicProperties, test, properties_staticpublicproperties, test_properties_staticpublicproperties_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Properties, StaticPublicProperties, stub, properties_staticpublicproperties, stub_properties_staticpublicproperties_method_entry, 0); /** * This is a public property with no initial value */ - zend_declare_property_null(test_properties_staticpublicproperties_ce, SL("someNull"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_null(stub_properties_staticpublicproperties_ce, SL("someNull"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); /** * This is a public property with initial null value */ - zend_declare_property_null(test_properties_staticpublicproperties_ce, SL("someNullInitial"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_null(stub_properties_staticpublicproperties_ce, SL("someNullInitial"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); /** * This is a public property with initial boolean false */ - zend_declare_property_bool(test_properties_staticpublicproperties_ce, SL("someFalse"), 0, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_bool(stub_properties_staticpublicproperties_ce, SL("someFalse"), 0, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); /** * This is a public property with initial boolean true */ - zend_declare_property_bool(test_properties_staticpublicproperties_ce, SL("someTrue"), 1, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_bool(stub_properties_staticpublicproperties_ce, SL("someTrue"), 1, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); /** * This is a public property with an initial integer value */ - zend_declare_property_long(test_properties_staticpublicproperties_ce, SL("someInteger"), 10, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_long(stub_properties_staticpublicproperties_ce, SL("someInteger"), 10, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); /** * This is a public property with an initial double value */ - zend_declare_property_double(test_properties_staticpublicproperties_ce, SL("someDouble"), 10.25, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_double(stub_properties_staticpublicproperties_ce, SL("someDouble"), 10.25, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); /** * This is a public property with an initial string value */ - zend_declare_property_string(test_properties_staticpublicproperties_ce, SL("someString"), "test", ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_string(stub_properties_staticpublicproperties_ce, SL("someString"), "test", ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); - zend_declare_property_long(test_properties_staticpublicproperties_ce, SL("someAdd"), 0, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_long(stub_properties_staticpublicproperties_ce, SL("someAdd"), 0, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); - zend_declare_property_long(test_properties_staticpublicproperties_ce, SL("someSub"), 0, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_long(stub_properties_staticpublicproperties_ce, SL("someSub"), 0, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); return SUCCESS; } -PHP_METHOD(Test_Properties_StaticPublicProperties, setSomeString) { +PHP_METHOD(Stub_Properties_StaticPublicProperties, setSomeString) { zval *val, val_sub; zval *this_ptr = getThis(); @@ -74,11 +74,11 @@ PHP_METHOD(Test_Properties_StaticPublicProperties, setSomeString) { - zephir_update_static_property_ce(test_properties_staticpublicproperties_ce, ZEND_STRL("someString"), val); + zephir_update_static_property_ce(stub_properties_staticpublicproperties_ce, ZEND_STRL("someString"), val); } -PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub) { +PHP_METHOD(Stub_Properties_StaticPublicProperties, testAddAndSub) { zval _0; zval *this_ptr = getThis(); @@ -88,14 +88,14 @@ PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub) { ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, 1); - zephir_add_static_property_ce(test_properties_staticpublicproperties_ce, ZEND_STRL("someAdd"), &_0); + zephir_add_static_property_ce(stub_properties_staticpublicproperties_ce, ZEND_STRL("someAdd"), &_0); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, 1); - zephir_sub_static_property_ce(test_properties_staticpublicproperties_ce, ZEND_STRL("someSub"), &_0); + zephir_sub_static_property_ce(stub_properties_staticpublicproperties_ce, ZEND_STRL("someSub"), &_0); } -PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub2) { +PHP_METHOD(Stub_Properties_StaticPublicProperties, testAddAndSub2) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -108,16 +108,16 @@ PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub2) { ZEPHIR_INIT_VAR(&_0); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "2string"); - zephir_add_static_property_ce(test_properties_staticpublicproperties_ce, ZEND_STRL("someAdd"), &_0); + zephir_add_static_property_ce(stub_properties_staticpublicproperties_ce, ZEND_STRL("someAdd"), &_0); ZEPHIR_INIT_NVAR(&_0); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "2string"); - zephir_sub_static_property_ce(test_properties_staticpublicproperties_ce, ZEND_STRL("someSub"), &_0); + zephir_sub_static_property_ce(stub_properties_staticpublicproperties_ce, ZEND_STRL("someSub"), &_0); ZEPHIR_MM_RESTORE(); } -PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub3) { +PHP_METHOD(Stub_Properties_StaticPublicProperties, testAddAndSub3) { zval _0; zval *this_ptr = getThis(); @@ -127,14 +127,14 @@ PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub3) { ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_DOUBLE(&_0, 1.0); - zephir_add_static_property_ce(test_properties_staticpublicproperties_ce, ZEND_STRL("someAdd"), &_0); + zephir_add_static_property_ce(stub_properties_staticpublicproperties_ce, ZEND_STRL("someAdd"), &_0); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_DOUBLE(&_0, 1.0); - zephir_sub_static_property_ce(test_properties_staticpublicproperties_ce, ZEND_STRL("someSub"), &_0); + zephir_sub_static_property_ce(stub_properties_staticpublicproperties_ce, ZEND_STRL("someSub"), &_0); } -PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub4) { +PHP_METHOD(Stub_Properties_StaticPublicProperties, testAddAndSub4) { zval _0; zend_long v = 0; @@ -146,14 +146,14 @@ PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub4) { v = 1; ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, v); - zephir_add_static_property_ce(test_properties_staticpublicproperties_ce, ZEND_STRL("someAdd"), &_0); + zephir_add_static_property_ce(stub_properties_staticpublicproperties_ce, ZEND_STRL("someAdd"), &_0); ZEPHIR_INIT_ZVAL_NREF(_0); ZVAL_LONG(&_0, v); - zephir_sub_static_property_ce(test_properties_staticpublicproperties_ce, ZEND_STRL("someSub"), &_0); + zephir_sub_static_property_ce(stub_properties_staticpublicproperties_ce, ZEND_STRL("someSub"), &_0); } -PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub5) { +PHP_METHOD(Stub_Properties_StaticPublicProperties, testAddAndSub5) { zval v; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -165,8 +165,8 @@ PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub5) { ZEPHIR_INIT_VAR(&v); ZVAL_STRING(&v, "1"); - zephir_add_static_property_ce(test_properties_staticpublicproperties_ce, ZEND_STRL("someAdd"), &v); - zephir_sub_static_property_ce(test_properties_staticpublicproperties_ce, ZEND_STRL("someSub"), &v); + zephir_add_static_property_ce(stub_properties_staticpublicproperties_ce, ZEND_STRL("someAdd"), &v); + zephir_sub_static_property_ce(stub_properties_staticpublicproperties_ce, ZEND_STRL("someSub"), &v); ZEPHIR_MM_RESTORE(); } diff --git a/ext/stub/properties/staticpublicproperties.zep.h b/ext/stub/properties/staticpublicproperties.zep.h new file mode 100644 index 0000000000..f9312f4ce9 --- /dev/null +++ b/ext/stub/properties/staticpublicproperties.zep.h @@ -0,0 +1,25 @@ + +extern zend_class_entry *stub_properties_staticpublicproperties_ce; + +ZEPHIR_INIT_CLASS(Stub_Properties_StaticPublicProperties); + +PHP_METHOD(Stub_Properties_StaticPublicProperties, setSomeString); +PHP_METHOD(Stub_Properties_StaticPublicProperties, testAddAndSub); +PHP_METHOD(Stub_Properties_StaticPublicProperties, testAddAndSub2); +PHP_METHOD(Stub_Properties_StaticPublicProperties, testAddAndSub3); +PHP_METHOD(Stub_Properties_StaticPublicProperties, testAddAndSub4); +PHP_METHOD(Stub_Properties_StaticPublicProperties, testAddAndSub5); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_properties_staticpublicproperties_setsomestring, 0, 0, 1) + ZEND_ARG_INFO(0, val) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_properties_staticpublicproperties_method_entry) { + PHP_ME(Stub_Properties_StaticPublicProperties, setSomeString, arginfo_stub_properties_staticpublicproperties_setsomestring, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Properties_StaticPublicProperties, testAddAndSub, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Properties_StaticPublicProperties, testAddAndSub2, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Properties_StaticPublicProperties, testAddAndSub3, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Properties_StaticPublicProperties, testAddAndSub4, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Properties_StaticPublicProperties, testAddAndSub5, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/quantum.zep.c b/ext/stub/quantum.zep.c similarity index 86% rename from ext/test/quantum.zep.c rename to ext/stub/quantum.zep.c index fa96582c67..df0d91b53a 100644 --- a/ext/test/quantum.zep.c +++ b/ext/stub/quantum.zep.c @@ -20,19 +20,19 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Quantum) { +ZEPHIR_INIT_CLASS(Stub_Quantum) { - ZEPHIR_REGISTER_CLASS(Test, Quantum, test, quantum, test_quantum_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Quantum, stub, quantum, stub_quantum_method_entry, 0); - zephir_declare_class_constant_double(test_quantum_ce, SL("PI"), 3.14159265358979323846); + zephir_declare_class_constant_double(stub_quantum_ce, SL("PI"), 3.14159265358979323846); - zephir_declare_class_constant_long(test_quantum_ce, SL("MAX"), 751); + zephir_declare_class_constant_long(stub_quantum_ce, SL("MAX"), 751); return SUCCESS; } -PHP_METHOD(Test_Quantum, harmos) { +PHP_METHOD(Stub_Quantum, harmos) { zval _8$$4, _10$$4, _11$$4; zend_bool _12, _15$$5, _34$$5, _50$$5; @@ -210,54 +210,54 @@ PHP_METHOD(Test_Quantum, harmos) { _15$$5 = 1; } i = _16$$5; - zephir_array_fetch_long(&_18$$6, &psr, i, PH_NOISY | PH_READONLY, "test/quantum.zep", 50); - zephir_array_fetch_long(&_19$$6, &_18$$6, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 50); - zephir_array_fetch_long(&_20$$6, ¶mater, 2, PH_NOISY | PH_READONLY, "test/quantum.zep", 50); - zephir_array_fetch_long(&_21$$6, &psi, (i + 1), PH_NOISY | PH_READONLY, "test/quantum.zep", 50); - zephir_array_fetch_long(&_22$$6, &_21$$6, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 50); - zephir_array_fetch_long(&_23$$6, &psi, (i - 1), PH_NOISY | PH_READONLY, "test/quantum.zep", 50); - zephir_array_fetch_long(&_24$$6, &_23$$6, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 51); + zephir_array_fetch_long(&_18$$6, &psr, i, PH_NOISY | PH_READONLY, "stub/quantum.zep", 50); + zephir_array_fetch_long(&_19$$6, &_18$$6, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 50); + zephir_array_fetch_long(&_20$$6, ¶mater, 2, PH_NOISY | PH_READONLY, "stub/quantum.zep", 50); + zephir_array_fetch_long(&_21$$6, &psi, (i + 1), PH_NOISY | PH_READONLY, "stub/quantum.zep", 50); + zephir_array_fetch_long(&_22$$6, &_21$$6, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 50); + zephir_array_fetch_long(&_23$$6, &psi, (i - 1), PH_NOISY | PH_READONLY, "stub/quantum.zep", 50); + zephir_array_fetch_long(&_24$$6, &_23$$6, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 51); ZEPHIR_INIT_NVAR(&_25$$6); zephir_add_function(&_25$$6, &_22$$6, &_24$$6); - zephir_array_fetch_long(&_22$$6, &tmp, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 51); - zephir_array_fetch_long(&_24$$6, &psi, i, PH_NOISY | PH_READONLY, "test/quantum.zep", 51); - zephir_array_fetch_long(&_26$$6, &_24$$6, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 51); + zephir_array_fetch_long(&_22$$6, &tmp, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 51); + zephir_array_fetch_long(&_24$$6, &psi, i, PH_NOISY | PH_READONLY, "stub/quantum.zep", 51); + zephir_array_fetch_long(&_26$$6, &_24$$6, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 51); ZEPHIR_INIT_NVAR(&_27$$6); mul_function(&_27$$6, &_22$$6, &_26$$6); ZEPHIR_INIT_NVAR(&_28$$6); zephir_sub_function(&_28$$6, &_25$$6, &_27$$6); ZEPHIR_INIT_NVAR(&_25$$6); mul_function(&_25$$6, &_20$$6, &_28$$6); - zephir_array_fetch_long(&_20$$6, ¶mater, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 51); - zephir_array_fetch_long(&_22$$6, ¶mater, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 51); + zephir_array_fetch_long(&_20$$6, ¶mater, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 51); + zephir_array_fetch_long(&_22$$6, ¶mater, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 51); ZEPHIR_INIT_NVAR(&_28$$6); mul_function(&_28$$6, &_20$$6, &_22$$6); ZEPHIR_INIT_NVAR(&_27$$6); div_function(&_27$$6, &_25$$6, &_28$$6); ZEPHIR_INIT_NVAR(&_25$$6); zephir_sub_function(&_25$$6, &_19$$6, &_27$$6); - zephir_array_fetch_long(&_19$$6, ¶mater, 2, PH_NOISY | PH_READONLY, "test/quantum.zep", 51); - zephir_array_fetch_long(&_20$$6, &v, i, PH_NOISY | PH_READONLY, "test/quantum.zep", 51); - zephir_array_fetch_long(&_22$$6, &_20$$6, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 51); + zephir_array_fetch_long(&_19$$6, ¶mater, 2, PH_NOISY | PH_READONLY, "stub/quantum.zep", 51); + zephir_array_fetch_long(&_20$$6, &v, i, PH_NOISY | PH_READONLY, "stub/quantum.zep", 51); + zephir_array_fetch_long(&_22$$6, &_20$$6, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 51); ZEPHIR_INIT_NVAR(&_27$$6); mul_function(&_27$$6, &_19$$6, &_22$$6); - zephir_array_fetch_long(&_19$$6, &psi, i, PH_NOISY | PH_READONLY, "test/quantum.zep", 51); - zephir_array_fetch_long(&_22$$6, &_19$$6, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 51); + zephir_array_fetch_long(&_19$$6, &psi, i, PH_NOISY | PH_READONLY, "stub/quantum.zep", 51); + zephir_array_fetch_long(&_22$$6, &_19$$6, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 51); ZEPHIR_INIT_NVAR(&_29$$6); mul_function(&_29$$6, &_27$$6, &_22$$6); ZEPHIR_INIT_NVAR(&_28$$6); zephir_add_function(&_28$$6, &_25$$6, &_29$$6); zephir_array_update_multi(&psr, &_28$$6, SL("ll"), 2, i, 1); - zephir_array_fetch_long(&_22$$6, &psr, i, PH_NOISY | PH_READONLY, "test/quantum.zep", 53); - zephir_array_fetch_long(&_26$$6, &_22$$6, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 53); - zephir_array_fetch_long(&_30$$6, &psr, i, PH_NOISY | PH_READONLY, "test/quantum.zep", 53); - zephir_array_fetch_long(&_31$$6, &_30$$6, 1, PH_NOISY | PH_READONLY, "test/quantum.zep", 53); + zephir_array_fetch_long(&_22$$6, &psr, i, PH_NOISY | PH_READONLY, "stub/quantum.zep", 53); + zephir_array_fetch_long(&_26$$6, &_22$$6, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 53); + zephir_array_fetch_long(&_30$$6, &psr, i, PH_NOISY | PH_READONLY, "stub/quantum.zep", 53); + zephir_array_fetch_long(&_31$$6, &_30$$6, 1, PH_NOISY | PH_READONLY, "stub/quantum.zep", 53); ZEPHIR_INIT_NVAR(&_25$$6); mul_function(&_25$$6, &_26$$6, &_31$$6); - zephir_array_fetch_long(&_26$$6, &psi, i, PH_NOISY | PH_READONLY, "test/quantum.zep", 53); - zephir_array_fetch_long(&_31$$6, &_26$$6, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 53); - zephir_array_fetch_long(&_32$$6, &psi, i, PH_NOISY | PH_READONLY, "test/quantum.zep", 53); - zephir_array_fetch_long(&_33$$6, &_32$$6, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 53); + zephir_array_fetch_long(&_26$$6, &psi, i, PH_NOISY | PH_READONLY, "stub/quantum.zep", 53); + zephir_array_fetch_long(&_31$$6, &_26$$6, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 53); + zephir_array_fetch_long(&_32$$6, &psi, i, PH_NOISY | PH_READONLY, "stub/quantum.zep", 53); + zephir_array_fetch_long(&_33$$6, &_32$$6, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 53); ZEPHIR_INIT_NVAR(&_27$$6); mul_function(&_27$$6, &_31$$6, &_33$$6); ZEPHIR_INIT_NVAR(&_28$$6); @@ -285,39 +285,39 @@ PHP_METHOD(Test_Quantum, harmos) { ZEPHIR_INIT_NVAR(&_37$$7); ZVAL_LONG(&_37$$7, 0); zephir_array_update_multi(&psr, &_37$$7, SL("ll"), 2, 751, 1); - zephir_array_fetch_long(&_38$$7, &psi, j, PH_NOISY | PH_READONLY, "test/quantum.zep", 58); - zephir_array_fetch_long(&_39$$7, &_38$$7, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 58); - zephir_array_fetch_long(&_40$$7, ¶mater, 2, PH_NOISY | PH_READONLY, "test/quantum.zep", 58); - zephir_array_fetch_long(&_41$$7, &psr, (j + 1), PH_NOISY | PH_READONLY, "test/quantum.zep", 58); - zephir_array_fetch_long(&_42$$7, &_41$$7, 1, PH_NOISY | PH_READONLY, "test/quantum.zep", 58); - zephir_array_fetch_long(&_43$$7, &psr, (j - 1), PH_NOISY | PH_READONLY, "test/quantum.zep", 58); - zephir_array_fetch_long(&_44$$7, &_43$$7, 1, PH_NOISY | PH_READONLY, "test/quantum.zep", 59); + zephir_array_fetch_long(&_38$$7, &psi, j, PH_NOISY | PH_READONLY, "stub/quantum.zep", 58); + zephir_array_fetch_long(&_39$$7, &_38$$7, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 58); + zephir_array_fetch_long(&_40$$7, ¶mater, 2, PH_NOISY | PH_READONLY, "stub/quantum.zep", 58); + zephir_array_fetch_long(&_41$$7, &psr, (j + 1), PH_NOISY | PH_READONLY, "stub/quantum.zep", 58); + zephir_array_fetch_long(&_42$$7, &_41$$7, 1, PH_NOISY | PH_READONLY, "stub/quantum.zep", 58); + zephir_array_fetch_long(&_43$$7, &psr, (j - 1), PH_NOISY | PH_READONLY, "stub/quantum.zep", 58); + zephir_array_fetch_long(&_44$$7, &_43$$7, 1, PH_NOISY | PH_READONLY, "stub/quantum.zep", 59); ZEPHIR_INIT_NVAR(&_45$$7); zephir_add_function(&_45$$7, &_42$$7, &_44$$7); - zephir_array_fetch_long(&_42$$7, &tmp, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 59); - zephir_array_fetch_long(&_44$$7, &psr, j, PH_NOISY | PH_READONLY, "test/quantum.zep", 59); - zephir_array_fetch_long(&_46$$7, &_44$$7, 1, PH_NOISY | PH_READONLY, "test/quantum.zep", 59); + zephir_array_fetch_long(&_42$$7, &tmp, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 59); + zephir_array_fetch_long(&_44$$7, &psr, j, PH_NOISY | PH_READONLY, "stub/quantum.zep", 59); + zephir_array_fetch_long(&_46$$7, &_44$$7, 1, PH_NOISY | PH_READONLY, "stub/quantum.zep", 59); ZEPHIR_INIT_NVAR(&_47$$7); mul_function(&_47$$7, &_42$$7, &_46$$7); ZEPHIR_INIT_NVAR(&_48$$7); zephir_sub_function(&_48$$7, &_45$$7, &_47$$7); ZEPHIR_INIT_NVAR(&_45$$7); mul_function(&_45$$7, &_40$$7, &_48$$7); - zephir_array_fetch_long(&_40$$7, ¶mater, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 59); - zephir_array_fetch_long(&_42$$7, ¶mater, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 59); + zephir_array_fetch_long(&_40$$7, ¶mater, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 59); + zephir_array_fetch_long(&_42$$7, ¶mater, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 59); ZEPHIR_INIT_NVAR(&_48$$7); mul_function(&_48$$7, &_40$$7, &_42$$7); ZEPHIR_INIT_NVAR(&_47$$7); div_function(&_47$$7, &_45$$7, &_48$$7); ZEPHIR_INIT_NVAR(&_45$$7); zephir_add_function(&_45$$7, &_39$$7, &_47$$7); - zephir_array_fetch_long(&_39$$7, ¶mater, 2, PH_NOISY | PH_READONLY, "test/quantum.zep", 59); - zephir_array_fetch_long(&_40$$7, &v, j, PH_NOISY | PH_READONLY, "test/quantum.zep", 59); - zephir_array_fetch_long(&_42$$7, &_40$$7, 0, PH_NOISY | PH_READONLY, "test/quantum.zep", 59); + zephir_array_fetch_long(&_39$$7, ¶mater, 2, PH_NOISY | PH_READONLY, "stub/quantum.zep", 59); + zephir_array_fetch_long(&_40$$7, &v, j, PH_NOISY | PH_READONLY, "stub/quantum.zep", 59); + zephir_array_fetch_long(&_42$$7, &_40$$7, 0, PH_NOISY | PH_READONLY, "stub/quantum.zep", 59); ZEPHIR_INIT_NVAR(&_47$$7); mul_function(&_47$$7, &_39$$7, &_42$$7); - zephir_array_fetch_long(&_39$$7, &psr, j, PH_NOISY | PH_READONLY, "test/quantum.zep", 59); - zephir_array_fetch_long(&_42$$7, &_39$$7, 1, PH_NOISY | PH_READONLY, "test/quantum.zep", 59); + zephir_array_fetch_long(&_39$$7, &psr, j, PH_NOISY | PH_READONLY, "stub/quantum.zep", 59); + zephir_array_fetch_long(&_42$$7, &_39$$7, 1, PH_NOISY | PH_READONLY, "stub/quantum.zep", 59); ZEPHIR_INIT_NVAR(&_49$$7); mul_function(&_49$$7, &_47$$7, &_42$$7); ZEPHIR_INIT_NVAR(&_48$$7); @@ -335,7 +335,7 @@ PHP_METHOD(Test_Quantum, harmos) { if (!(i < (751 - 1))) { break; } - zephir_array_fetch_long(&_51$$9, &p2, i, PH_NOISY | PH_READONLY, "test/quantum.zep", 67); + zephir_array_fetch_long(&_51$$9, &p2, i, PH_NOISY | PH_READONLY, "stub/quantum.zep", 67); ZEPHIR_INIT_NVAR(&_52$$9); ZVAL_STRING(&_52$$9, "%16.8lf %16.8lf %16.8lf \n"); ZVAL_DOUBLE(&_53$$9, ((double) i * dx)); @@ -354,11 +354,11 @@ PHP_METHOD(Test_Quantum, harmos) { if (!(j < (751 - 1))) { break; } - zephir_array_fetch_long(&_57$$10, &psi, j, PH_NOISY | PH_READONLY, "test/quantum.zep", 76); - zephir_array_fetch_long(&_58$$10, &_57$$10, 1, PH_NOISY | PH_READONLY, "test/quantum.zep", 76); + zephir_array_fetch_long(&_57$$10, &psi, j, PH_NOISY | PH_READONLY, "stub/quantum.zep", 76); + zephir_array_fetch_long(&_58$$10, &_57$$10, 1, PH_NOISY | PH_READONLY, "stub/quantum.zep", 76); zephir_array_update_multi(&psi, &_58$$10, SL("ll"), 2, j, 0); - zephir_array_fetch_long(&_58$$10, &psr, j, PH_NOISY | PH_READONLY, "test/quantum.zep", 77); - zephir_array_fetch_long(&_59$$10, &_58$$10, 1, PH_NOISY | PH_READONLY, "test/quantum.zep", 77); + zephir_array_fetch_long(&_58$$10, &psr, j, PH_NOISY | PH_READONLY, "stub/quantum.zep", 77); + zephir_array_fetch_long(&_59$$10, &_58$$10, 1, PH_NOISY | PH_READONLY, "stub/quantum.zep", 77); zephir_array_update_multi(&psr, &_59$$10, SL("ll"), 2, j, 0); j++; } diff --git a/ext/stub/quantum.zep.h b/ext/stub/quantum.zep.h new file mode 100644 index 0000000000..23c054e174 --- /dev/null +++ b/ext/stub/quantum.zep.h @@ -0,0 +1,19 @@ + +extern zend_class_entry *stub_quantum_ce; + +ZEPHIR_INIT_CLASS(Stub_Quantum); + +PHP_METHOD(Stub_Quantum, harmos); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_quantum_harmos, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_quantum_method_entry) { + PHP_ME(Stub_Quantum, harmos, arginfo_stub_quantum_harmos, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/range.zep.c b/ext/stub/range.zep.c similarity index 88% rename from ext/test/range.zep.c rename to ext/stub/range.zep.c index aa90289d50..8c75d20c43 100644 --- a/ext/test/range.zep.c +++ b/ext/stub/range.zep.c @@ -21,15 +21,15 @@ /** * Arithmetic operations */ -ZEPHIR_INIT_CLASS(Test_Range) { +ZEPHIR_INIT_CLASS(Stub_Range) { - ZEPHIR_REGISTER_CLASS(Test, Range, test, range, test_range_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Range, stub, range, stub_range_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Range, inclusive1) { +PHP_METHOD(Stub_Range, inclusive1) { zval _3; zval _0, _1, _2; @@ -53,7 +53,7 @@ PHP_METHOD(Test_Range, inclusive1) { } -PHP_METHOD(Test_Range, exclusive1) { +PHP_METHOD(Stub_Range, exclusive1) { zval _3; zval _0, _1, _2; diff --git a/ext/stub/range.zep.h b/ext/stub/range.zep.h new file mode 100644 index 0000000000..febec7f57c --- /dev/null +++ b/ext/stub/range.zep.h @@ -0,0 +1,13 @@ + +extern zend_class_entry *stub_range_ce; + +ZEPHIR_INIT_CLASS(Stub_Range); + +PHP_METHOD(Stub_Range, inclusive1); +PHP_METHOD(Stub_Range, exclusive1); + +ZEPHIR_INIT_FUNCS(stub_range_method_entry) { + PHP_ME(Stub_Range, inclusive1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Range, exclusive1, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/references.zep.c b/ext/stub/references.zep.c similarity index 71% rename from ext/test/references.zep.c rename to ext/stub/references.zep.c index 688d4f1e6f..58e8a3198f 100644 --- a/ext/test/references.zep.c +++ b/ext/stub/references.zep.c @@ -15,15 +15,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_References) { +ZEPHIR_INIT_CLASS(Stub_References) { - ZEPHIR_REGISTER_CLASS(Test, References, test, references, test_references_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, References, stub, references, stub_references_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_References, assignByRef) { +PHP_METHOD(Stub_References, assignByRef) { zval *this_ptr = getThis(); diff --git a/ext/stub/references.zep.h b/ext/stub/references.zep.h new file mode 100644 index 0000000000..793401b785 --- /dev/null +++ b/ext/stub/references.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *stub_references_ce; + +ZEPHIR_INIT_CLASS(Stub_References); + +PHP_METHOD(Stub_References, assignByRef); + +ZEPHIR_INIT_FUNCS(stub_references_method_entry) { + PHP_ME(Stub_References, assignByRef, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/regexdna.zep.c b/ext/stub/regexdna.zep.c similarity index 79% rename from ext/test/regexdna.zep.c rename to ext/stub/regexdna.zep.c index 3164b07348..c5153c785a 100644 --- a/ext/test/regexdna.zep.c +++ b/ext/stub/regexdna.zep.c @@ -26,15 +26,15 @@ * * @see http://www.haskell.org/haskellwiki/Shootout/Regex_DNA */ -ZEPHIR_INIT_CLASS(Test_RegexDNA) { +ZEPHIR_INIT_CLASS(Stub_RegexDNA) { - ZEPHIR_REGISTER_CLASS(Test, RegexDNA, test, regexdna, test_regexdna_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, RegexDNA, stub, regexdna, stub_regexdna_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_RegexDNA, process) { +PHP_METHOD(Stub_RegexDNA, process) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -103,70 +103,70 @@ PHP_METHOD(Test_RegexDNA, process) { array_init(&vIUBnew); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/B/S"); - zephir_array_append(&vIUB, &_0, PH_SEPARATE, "test/regexdna.zep", 30); + zephir_array_append(&vIUB, &_0, PH_SEPARATE, "stub/regexdna.zep", 30); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "(c|g|t)"); - zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "test/regexdna.zep", 30); + zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "stub/regexdna.zep", 30); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/D/S"); - zephir_array_append(&vIUB, &_0, PH_SEPARATE, "test/regexdna.zep", 31); + zephir_array_append(&vIUB, &_0, PH_SEPARATE, "stub/regexdna.zep", 31); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "(a|g|t)"); - zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "test/regexdna.zep", 31); + zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "stub/regexdna.zep", 31); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/H/S"); - zephir_array_append(&vIUB, &_0, PH_SEPARATE, "test/regexdna.zep", 32); + zephir_array_append(&vIUB, &_0, PH_SEPARATE, "stub/regexdna.zep", 32); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "(a|c|t)"); - zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "test/regexdna.zep", 32); + zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "stub/regexdna.zep", 32); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/K/S"); - zephir_array_append(&vIUB, &_0, PH_SEPARATE, "test/regexdna.zep", 33); + zephir_array_append(&vIUB, &_0, PH_SEPARATE, "stub/regexdna.zep", 33); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "(g|t)"); - zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "test/regexdna.zep", 33); + zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "stub/regexdna.zep", 33); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/M/S"); - zephir_array_append(&vIUB, &_0, PH_SEPARATE, "test/regexdna.zep", 34); + zephir_array_append(&vIUB, &_0, PH_SEPARATE, "stub/regexdna.zep", 34); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "(a|c)"); - zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "test/regexdna.zep", 34); + zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "stub/regexdna.zep", 34); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/N/S"); - zephir_array_append(&vIUB, &_0, PH_SEPARATE, "test/regexdna.zep", 35); + zephir_array_append(&vIUB, &_0, PH_SEPARATE, "stub/regexdna.zep", 35); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "(a|c|g|t)"); - zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "test/regexdna.zep", 35); + zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "stub/regexdna.zep", 35); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/R/S"); - zephir_array_append(&vIUB, &_0, PH_SEPARATE, "test/regexdna.zep", 36); + zephir_array_append(&vIUB, &_0, PH_SEPARATE, "stub/regexdna.zep", 36); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "(a|g)"); - zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "test/regexdna.zep", 36); + zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "stub/regexdna.zep", 36); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/S/S"); - zephir_array_append(&vIUB, &_0, PH_SEPARATE, "test/regexdna.zep", 37); + zephir_array_append(&vIUB, &_0, PH_SEPARATE, "stub/regexdna.zep", 37); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "(c|g)"); - zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "test/regexdna.zep", 37); + zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "stub/regexdna.zep", 37); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/V/S"); - zephir_array_append(&vIUB, &_0, PH_SEPARATE, "test/regexdna.zep", 38); + zephir_array_append(&vIUB, &_0, PH_SEPARATE, "stub/regexdna.zep", 38); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "(a|c|g)"); - zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "test/regexdna.zep", 38); + zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "stub/regexdna.zep", 38); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/W/S"); - zephir_array_append(&vIUB, &_0, PH_SEPARATE, "test/regexdna.zep", 39); + zephir_array_append(&vIUB, &_0, PH_SEPARATE, "stub/regexdna.zep", 39); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "(a|t)"); - zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "test/regexdna.zep", 39); + zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "stub/regexdna.zep", 39); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/Y/S"); - zephir_array_append(&vIUB, &_0, PH_SEPARATE, "test/regexdna.zep", 40); + zephir_array_append(&vIUB, &_0, PH_SEPARATE, "stub/regexdna.zep", 40); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "(c|t)"); - zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "test/regexdna.zep", 40); + zephir_array_append(&vIUBnew, &_0, PH_SEPARATE, "stub/regexdna.zep", 40); ZEPHIR_INIT_VAR(&stuffToRemove); ZVAL_STRING(&stuffToRemove, "^>.*$|\n"); ZEPHIR_INIT_NVAR(&discard); @@ -184,7 +184,7 @@ PHP_METHOD(Test_RegexDNA, process) { ZEPHIR_CPY_WRT(&contents, &_2); ZEPHIR_INIT_VAR(&codeLength); ZVAL_LONG(&codeLength, zephir_fast_strlen_ev(&contents)); - zephir_is_iterable(&variants, 0, "test/regexdna.zep", 59); + zephir_is_iterable(&variants, 0, "stub/regexdna.zep", 59); if (Z_TYPE_P(&variants) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&variants), _4) { diff --git a/ext/stub/regexdna.zep.h b/ext/stub/regexdna.zep.h new file mode 100644 index 0000000000..317ddaf5c8 --- /dev/null +++ b/ext/stub/regexdna.zep.h @@ -0,0 +1,15 @@ + +extern zend_class_entry *stub_regexdna_ce; + +ZEPHIR_INIT_CLASS(Stub_RegexDNA); + +PHP_METHOD(Stub_RegexDNA, process); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_regexdna_process, 0, 0, 1) + ZEND_ARG_INFO(0, path) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_regexdna_method_entry) { + PHP_ME(Stub_RegexDNA, process, arginfo_stub_regexdna_process, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/requires.zep.c b/ext/stub/requires.zep.c similarity index 89% rename from ext/test/requires.zep.c rename to ext/stub/requires.zep.c index 7b5c493c9f..0ba65e44e9 100644 --- a/ext/test/requires.zep.c +++ b/ext/stub/requires.zep.c @@ -21,17 +21,17 @@ #include "kernel/operators.h" -ZEPHIR_INIT_CLASS(Test_Requires) { +ZEPHIR_INIT_CLASS(Stub_Requires) { - ZEPHIR_REGISTER_CLASS(Test, Requires, test, requires, test_requires_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Requires, stub, requires, stub_requires_method_entry, 0); - zend_declare_property_null(test_requires_ce, SL("content"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_requires_ce, SL("content"), ZEND_ACC_PROTECTED); return SUCCESS; } -PHP_METHOD(Test_Requires, requireExternal1) { +PHP_METHOD(Stub_Requires, requireExternal1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *path, path_sub, _0; @@ -53,7 +53,7 @@ PHP_METHOD(Test_Requires, requireExternal1) { } -PHP_METHOD(Test_Requires, requireExternal2) { +PHP_METHOD(Stub_Requires, requireExternal2) { zval *path, path_sub; zval *this_ptr = getThis(); @@ -71,7 +71,7 @@ PHP_METHOD(Test_Requires, requireExternal2) { } -PHP_METHOD(Test_Requires, requireExternal3) { +PHP_METHOD(Stub_Requires, requireExternal3) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -91,7 +91,7 @@ PHP_METHOD(Test_Requires, requireExternal3) { ZEPHIR_CREATE_SYMBOL_TABLE(); ZEPHIR_INIT_VAR(&external3); - object_init_ex(&external3, test_requires_external3_ce); + object_init_ex(&external3, stub_requires_external3_ce); if (zephir_has_constructor(&external3)) { ZEPHIR_CALL_METHOD(NULL, &external3, "__construct", NULL, 0); zephir_check_call_status(); @@ -102,7 +102,7 @@ PHP_METHOD(Test_Requires, requireExternal3) { } -PHP_METHOD(Test_Requires, setContent) { +PHP_METHOD(Stub_Requires, setContent) { zval *content, content_sub; zval *this_ptr = getThis(); @@ -117,7 +117,7 @@ PHP_METHOD(Test_Requires, setContent) { } -PHP_METHOD(Test_Requires, renderTemplate) { +PHP_METHOD(Stub_Requires, renderTemplate) { zend_string *_4$$3; zend_ulong _3$$3; @@ -156,7 +156,7 @@ PHP_METHOD(Test_Requires, renderTemplate) { ZEPHIR_CREATE_SYMBOL_TABLE(); if (Z_TYPE_P(params) == IS_ARRAY) { - zephir_is_iterable(params, 0, "test/requires.zep", 47); + zephir_is_iterable(params, 0, "stub/requires.zep", 47); if (Z_TYPE_P(params) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(params), _3$$3, _4$$3, _1$$3) { diff --git a/ext/stub/requires.zep.h b/ext/stub/requires.zep.h new file mode 100644 index 0000000000..871ec1f71e --- /dev/null +++ b/ext/stub/requires.zep.h @@ -0,0 +1,54 @@ + +extern zend_class_entry *stub_requires_ce; + +ZEPHIR_INIT_CLASS(Stub_Requires); + +PHP_METHOD(Stub_Requires, requireExternal1); +PHP_METHOD(Stub_Requires, requireExternal2); +PHP_METHOD(Stub_Requires, requireExternal3); +PHP_METHOD(Stub_Requires, setContent); +PHP_METHOD(Stub_Requires, renderTemplate); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_requires_requireexternal1, 0, 0, 1) + ZEND_ARG_INFO(0, path) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_requires_requireexternal2, 0, 0, 1) + ZEND_ARG_INFO(0, path) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_requires_requireexternal3, 0, 0, 1) + ZEND_ARG_INFO(0, path) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_requires_setcontent, 0, 1, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_requires_setcontent, 0, 1, IS_VOID, NULL, 0) +#endif +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_requires_setcontent, 0, 0, 1) +#define arginfo_stub_requires_setcontent NULL +#endif + + ZEND_ARG_INFO(0, content) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_requires_rendertemplate, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, templatePath, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, templatePath) +#endif + ZEND_ARG_INFO(0, params) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_requires_method_entry) { + PHP_ME(Stub_Requires, requireExternal1, arginfo_stub_requires_requireexternal1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Requires, requireExternal2, arginfo_stub_requires_requireexternal2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Requires, requireExternal3, arginfo_stub_requires_requireexternal3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Requires, setContent, arginfo_stub_requires_setcontent, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Requires, renderTemplate, arginfo_stub_requires_rendertemplate, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/requires/external3.zep.c b/ext/stub/requires/external3.zep.c similarity index 80% rename from ext/test/requires/external3.zep.c rename to ext/stub/requires/external3.zep.c index 8e88885fae..229a3a2e75 100644 --- a/ext/test/requires/external3.zep.c +++ b/ext/stub/requires/external3.zep.c @@ -21,17 +21,17 @@ /** * External3 operations */ -ZEPHIR_INIT_CLASS(Test_Requires_External3) { +ZEPHIR_INIT_CLASS(Stub_Requires_External3) { - ZEPHIR_REGISTER_CLASS(Test\\Requires, External3, test, requires_external3, test_requires_external3_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Requires, External3, stub, requires_external3, stub_requires_external3_method_entry, 0); - zend_declare_property_null(test_requires_external3_ce, SL("someVariable"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_requires_external3_ce, SL("someVariable"), ZEND_ACC_PROTECTED); return SUCCESS; } -PHP_METHOD(Test_Requires_External3, req) { +PHP_METHOD(Stub_Requires_External3, req) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; diff --git a/ext/stub/requires/external3.zep.h b/ext/stub/requires/external3.zep.h new file mode 100644 index 0000000000..6221f2ab71 --- /dev/null +++ b/ext/stub/requires/external3.zep.h @@ -0,0 +1,26 @@ + +extern zend_class_entry *stub_requires_external3_ce; + +ZEPHIR_INIT_CLASS(Stub_Requires_External3); + +PHP_METHOD(Stub_Requires_External3, req); + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_requires_external3_req, 0, 2, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_requires_external3_req, 0, 2, IS_VOID, NULL, 0) +#endif +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_requires_external3_req, 0, 0, 2) +#define arginfo_stub_requires_external3_req NULL +#endif + + ZEND_ARG_INFO(0, path) + ZEND_ARG_INFO(0, requires) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_requires_external3_method_entry) { + PHP_ME(Stub_Requires_External3, req, arginfo_stub_requires_external3_req, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/resourcetest.zep.c b/ext/stub/resourcetest.zep.c similarity index 80% rename from ext/test/resourcetest.zep.c rename to ext/stub/resourcetest.zep.c index ec5cbc3aa4..e7cb7f2b01 100644 --- a/ext/test/resourcetest.zep.c +++ b/ext/stub/resourcetest.zep.c @@ -17,15 +17,15 @@ #include "kernel/fcall.h" -ZEPHIR_INIT_CLASS(Test_ResourceTest) { +ZEPHIR_INIT_CLASS(Stub_ResourceTest) { - ZEPHIR_REGISTER_CLASS(Test, ResourceTest, test, resourcetest, test_resourcetest_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, ResourceTest, stub, resourcetest, stub_resourcetest_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_ResourceTest, testLetStatementSTDIN) { +PHP_METHOD(Stub_ResourceTest, testLetStatementSTDIN) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -41,7 +41,7 @@ PHP_METHOD(Test_ResourceTest, testLetStatementSTDIN) { } -PHP_METHOD(Test_ResourceTest, testLetStatementSTDOUT) { +PHP_METHOD(Stub_ResourceTest, testLetStatementSTDOUT) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -57,7 +57,7 @@ PHP_METHOD(Test_ResourceTest, testLetStatementSTDOUT) { } -PHP_METHOD(Test_ResourceTest, testLetStatementSTDERR) { +PHP_METHOD(Stub_ResourceTest, testLetStatementSTDERR) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -73,7 +73,7 @@ PHP_METHOD(Test_ResourceTest, testLetStatementSTDERR) { } -PHP_METHOD(Test_ResourceTest, testTypeOffResource) { +PHP_METHOD(Stub_ResourceTest, testTypeOffResource) { zval a, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -92,7 +92,7 @@ PHP_METHOD(Test_ResourceTest, testTypeOffResource) { } -PHP_METHOD(Test_ResourceTest, testIsResource) { +PHP_METHOD(Stub_ResourceTest, testIsResource) { zval a; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -108,7 +108,7 @@ PHP_METHOD(Test_ResourceTest, testIsResource) { } -PHP_METHOD(Test_ResourceTest, testFunctionsForSTDIN) { +PHP_METHOD(Stub_ResourceTest, testFunctionsForSTDIN) { zval a, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/resourcetest.zep.h b/ext/stub/resourcetest.zep.h new file mode 100644 index 0000000000..ef69f4198d --- /dev/null +++ b/ext/stub/resourcetest.zep.h @@ -0,0 +1,21 @@ + +extern zend_class_entry *stub_resourcetest_ce; + +ZEPHIR_INIT_CLASS(Stub_ResourceTest); + +PHP_METHOD(Stub_ResourceTest, testLetStatementSTDIN); +PHP_METHOD(Stub_ResourceTest, testLetStatementSTDOUT); +PHP_METHOD(Stub_ResourceTest, testLetStatementSTDERR); +PHP_METHOD(Stub_ResourceTest, testTypeOffResource); +PHP_METHOD(Stub_ResourceTest, testIsResource); +PHP_METHOD(Stub_ResourceTest, testFunctionsForSTDIN); + +ZEPHIR_INIT_FUNCS(stub_resourcetest_method_entry) { + PHP_ME(Stub_ResourceTest, testLetStatementSTDIN, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ResourceTest, testLetStatementSTDOUT, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ResourceTest, testLetStatementSTDERR, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ResourceTest, testTypeOffResource, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ResourceTest, testIsResource, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ResourceTest, testFunctionsForSTDIN, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/returns.zep.c b/ext/stub/returns.zep.c similarity index 73% rename from ext/test/returns.zep.c rename to ext/stub/returns.zep.c index 44809bd898..4a0aac1a17 100644 --- a/ext/test/returns.zep.c +++ b/ext/stub/returns.zep.c @@ -17,15 +17,15 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_Returns) { +ZEPHIR_INIT_CLASS(Stub_Returns) { - ZEPHIR_REGISTER_CLASS(Test, Returns, test, returns, test_returns_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Returns, stub, returns, stub_returns_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Returns, testReturnCast1) { +PHP_METHOD(Stub_Returns, testReturnCast1) { zval *this_ptr = getThis(); @@ -34,7 +34,7 @@ PHP_METHOD(Test_Returns, testReturnCast1) { } -PHP_METHOD(Test_Returns, testReturnCast2) { +PHP_METHOD(Stub_Returns, testReturnCast2) { zval *this_ptr = getThis(); @@ -43,7 +43,7 @@ PHP_METHOD(Test_Returns, testReturnCast2) { } -PHP_METHOD(Test_Returns, testReturnCast3) { +PHP_METHOD(Stub_Returns, testReturnCast3) { zval *this_ptr = getThis(); @@ -52,7 +52,7 @@ PHP_METHOD(Test_Returns, testReturnCast3) { } -PHP_METHOD(Test_Returns, testReturnCast4) { +PHP_METHOD(Stub_Returns, testReturnCast4) { zval *this_ptr = getThis(); @@ -65,7 +65,7 @@ PHP_METHOD(Test_Returns, testReturnCast4) { } -PHP_METHOD(Test_Returns, returnWithParameter) { +PHP_METHOD(Stub_Returns, returnWithParameter) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *parameter_param = NULL; @@ -84,7 +84,7 @@ PHP_METHOD(Test_Returns, returnWithParameter) { } -PHP_METHOD(Test_Returns, returnWithoutParameter) { +PHP_METHOD(Stub_Returns, returnWithoutParameter) { zval *this_ptr = getThis(); diff --git a/ext/stub/returns.zep.h b/ext/stub/returns.zep.h new file mode 100644 index 0000000000..72d4bc0b31 --- /dev/null +++ b/ext/stub/returns.zep.h @@ -0,0 +1,57 @@ + +extern zend_class_entry *stub_returns_ce; + +ZEPHIR_INIT_CLASS(Stub_Returns); + +PHP_METHOD(Stub_Returns, testReturnCast1); +PHP_METHOD(Stub_Returns, testReturnCast2); +PHP_METHOD(Stub_Returns, testReturnCast3); +PHP_METHOD(Stub_Returns, testReturnCast4); +PHP_METHOD(Stub_Returns, returnWithParameter); +PHP_METHOD(Stub_Returns, returnWithoutParameter); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_returns_testreturncast1, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_returns_testreturncast1, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_returns_testreturncast2, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_returns_testreturncast2, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_returns_testreturncast3, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_returns_testreturncast3, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_returns_testreturncast4, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_returns_testreturncast4, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_returns_returnwithparameter, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, parameter, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, parameter) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_returns_method_entry) { + PHP_ME(Stub_Returns, testReturnCast1, arginfo_stub_returns_testreturncast1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Returns, testReturnCast2, arginfo_stub_returns_testreturncast2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Returns, testReturnCast3, arginfo_stub_returns_testreturncast3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Returns, testReturnCast4, arginfo_stub_returns_testreturncast4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Returns, returnWithParameter, arginfo_stub_returns_returnwithparameter, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Returns, returnWithoutParameter, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/router.zep.c b/ext/stub/router.zep.c similarity index 84% rename from ext/test/router.zep.c rename to ext/stub/router.zep.c index d40d300073..1a147ca97b 100644 --- a/ext/test/router.zep.c +++ b/ext/stub/router.zep.c @@ -23,16 +23,16 @@ /** - * Test\Router + * Stub\Router * - *

Test\Router is the standard framework router. Routing is the + *

Stub\Router is the standard framework router. Routing is the * process of taking a URI endpoint (that part of the URI which comes after the base URL) and * decomposing it into parameters to determine which module, controller, and * action of that controller should receive the request

* * * - * $router = new Test\Router(); + * $router = new Stub\Router(); * * $router->add( * "/documentation/{chapter}/{name}.{type:[a-z]+}", @@ -48,60 +48,60 @@ * * */ -ZEPHIR_INIT_CLASS(Test_Router) { +ZEPHIR_INIT_CLASS(Stub_Router) { - ZEPHIR_REGISTER_CLASS(Test, Router, test, router, test_router_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Router, stub, router, stub_router_method_entry, 0); - zend_declare_property_null(test_router_ce, SL("_dependencyInjector"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_dependencyInjector"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_uriSource"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_uriSource"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_namespace"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_namespace"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_module"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_module"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_controller"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_controller"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_action"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_action"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_params"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_params"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_routes"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_routes"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_matchedRoute"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_matchedRoute"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_matches"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_matches"), ZEND_ACC_PROTECTED); - zend_declare_property_bool(test_router_ce, SL("_wasMatched"), 0, ZEND_ACC_PROTECTED); + zend_declare_property_bool(stub_router_ce, SL("_wasMatched"), 0, ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_defaultNamespace"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_defaultNamespace"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_defaultModule"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_defaultModule"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_defaultController"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_defaultController"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_defaultAction"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_defaultAction"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_defaultParams"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_defaultParams"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_removeExtraSlashes"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_removeExtraSlashes"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_ce, SL("_notFoundPaths"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_ce, SL("_notFoundPaths"), ZEND_ACC_PROTECTED); - zephir_declare_class_constant_long(test_router_ce, SL("URI_SOURCE_GET_URL"), 0); + zephir_declare_class_constant_long(stub_router_ce, SL("URI_SOURCE_GET_URL"), 0); - zephir_declare_class_constant_long(test_router_ce, SL("URI_SOURCE_SERVER_REQUEST_URI"), 1); + zephir_declare_class_constant_long(stub_router_ce, SL("URI_SOURCE_SERVER_REQUEST_URI"), 1); return SUCCESS; } /** - * Test\Router constructor + * Stub\Router constructor * * @param boolean defaultRoutes */ -PHP_METHOD(Test_Router, __construct) { +PHP_METHOD(Stub_Router, __construct) { zval _1$$3, _4$$3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -133,7 +133,7 @@ PHP_METHOD(Test_Router, __construct) { array_init(&routes); if (defaultRoutes == 1) { ZEPHIR_INIT_VAR(&_0$$3); - object_init_ex(&_0$$3, test_router_route_ce); + object_init_ex(&_0$$3, stub_router_route_ce); ZEPHIR_INIT_VAR(&_1$$3); zephir_create_array(&_1$$3, 1, 0); add_assoc_long_ex(&_1$$3, SL("controller"), 1); @@ -141,9 +141,9 @@ PHP_METHOD(Test_Router, __construct) { ZVAL_STRING(&_2$$3, "#^/([a-zA-Z0-9\\_\\-]+)[/]{0,1}$#"); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 83, &_2$$3, &_1$$3); zephir_check_call_status(); - zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "test/router.zep", 89); + zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "stub/router.zep", 89); ZEPHIR_INIT_NVAR(&_2$$3); - object_init_ex(&_2$$3, test_router_route_ce); + object_init_ex(&_2$$3, stub_router_route_ce); ZEPHIR_INIT_VAR(&_4$$3); zephir_create_array(&_4$$3, 3, 0); add_assoc_long_ex(&_4$$3, SL("controller"), 1); @@ -153,7 +153,7 @@ PHP_METHOD(Test_Router, __construct) { ZVAL_STRING(&_5$$3, "#^/([a-zA-Z0-9\\_\\-]+)/([a-zA-Z0-9\\.\\_]+)(/.*)*$#"); ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 83, &_5$$3, &_4$$3); zephir_check_call_status(); - zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "test/router.zep", 95); + zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "stub/router.zep", 95); } ZEPHIR_INIT_VAR(&_6); array_init(&_6); @@ -166,9 +166,9 @@ PHP_METHOD(Test_Router, __construct) { /** * Sets the dependency injector * - * @param Test\DiInterface dependencyInjector + * @param Stub\DiInterface dependencyInjector */ -PHP_METHOD(Test_Router, setDI) { +PHP_METHOD(Stub_Router, setDI) { zval *dependencyInjector, dependencyInjector_sub; zval *this_ptr = getThis(); @@ -186,9 +186,9 @@ PHP_METHOD(Test_Router, setDI) { /** * Returns the internal dependency injector * - * @return Test\DiInterface + * @return Stub\DiInterface */ -PHP_METHOD(Test_Router, getDI) { +PHP_METHOD(Stub_Router, getDI) { zval *this_ptr = getThis(); @@ -202,7 +202,7 @@ PHP_METHOD(Test_Router, getDI) { * * @return string */ -PHP_METHOD(Test_Router, getRewriteUri) { +PHP_METHOD(Stub_Router, getRewriteUri) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval _GET, _SERVER, url, urlParts, realUri, _0; @@ -219,7 +219,7 @@ PHP_METHOD(Test_Router, getRewriteUri) { zephir_get_global(&_SERVER, SL("_SERVER")); zephir_get_global(&_GET, SL("_GET")); - zephir_read_property(&_0, this_ptr, SL("_uriSource"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("_uriSource"), PH_NOISY_CC | PH_READONLY); if (!(zephir_is_true(&_0))) { ZEPHIR_OBS_VAR(&url); if (zephir_array_isset_string_fetch(&url, &_GET, SL("_url"), 0)) { @@ -232,7 +232,7 @@ PHP_METHOD(Test_Router, getRewriteUri) { if (zephir_array_isset_string_fetch(&url, &_SERVER, SL("REQUEST_URI"), 0)) { ZEPHIR_INIT_VAR(&urlParts); zephir_fast_explode_str(&urlParts, SL("?"), &url, LONG_MAX); - zephir_array_fetch_long(&realUri, &urlParts, 0, PH_NOISY | PH_READONLY, "test/router.zep", 142); + zephir_array_fetch_long(&realUri, &urlParts, 0, PH_NOISY | PH_READONLY, "stub/router.zep", 142); if (!(zephir_is_true(&realUri))) { RETURN_CTOR(&realUri); } @@ -250,9 +250,9 @@ PHP_METHOD(Test_Router, getRewriteUri) { * * * @param string uriSource - * @return Test\Router + * @return Stub\Router */ -PHP_METHOD(Test_Router, setUriSource) { +PHP_METHOD(Stub_Router, setUriSource) { zval *uriSource, uriSource_sub; zval *this_ptr = getThis(); @@ -272,9 +272,9 @@ PHP_METHOD(Test_Router, setUriSource) { * Set whether router must remove the extra slashes in the handled routes * * @param boolean remove - * @return Test\Router + * @return Stub\Router */ -PHP_METHOD(Test_Router, removeExtraSlashes) { +PHP_METHOD(Stub_Router, removeExtraSlashes) { zval *remove, remove_sub; zval *this_ptr = getThis(); @@ -294,9 +294,9 @@ PHP_METHOD(Test_Router, removeExtraSlashes) { * Sets the name of the default namespace * * @param string namespaceName - * @return Test\Router + * @return Stub\Router */ -PHP_METHOD(Test_Router, setDefaultNamespace) { +PHP_METHOD(Stub_Router, setDefaultNamespace) { zval *namespaceName, namespaceName_sub; zval *this_ptr = getThis(); @@ -316,9 +316,9 @@ PHP_METHOD(Test_Router, setDefaultNamespace) { * Sets the name of the default module * * @param string moduleName - * @return Test\Router + * @return Stub\Router */ -PHP_METHOD(Test_Router, setDefaultModule) { +PHP_METHOD(Stub_Router, setDefaultModule) { zval *moduleName, moduleName_sub; zval *this_ptr = getThis(); @@ -338,9 +338,9 @@ PHP_METHOD(Test_Router, setDefaultModule) { * Sets the default controller name * * @param string controllerName - * @return Test\Router + * @return Stub\Router */ -PHP_METHOD(Test_Router, setDefaultController) { +PHP_METHOD(Stub_Router, setDefaultController) { zval *controllerName, controllerName_sub; zval *this_ptr = getThis(); @@ -360,9 +360,9 @@ PHP_METHOD(Test_Router, setDefaultController) { * Sets the default action name * * @param string actionName - * @return Test\Router + * @return Stub\Router */ -PHP_METHOD(Test_Router, setDefaultAction) { +PHP_METHOD(Stub_Router, setDefaultAction) { zval *actionName, actionName_sub; zval *this_ptr = getThis(); @@ -390,9 +390,9 @@ PHP_METHOD(Test_Router, setDefaultAction) { * * * @param array defaults - * @return Test\Router + * @return Stub\Router */ -PHP_METHOD(Test_Router, setDefaults) { +PHP_METHOD(Stub_Router, setDefaults) { zval *defaults, defaults_sub, namespaceName, module, controller, action, params; zval *this_ptr = getThis(); @@ -409,7 +409,7 @@ PHP_METHOD(Test_Router, setDefaults) { if (Z_TYPE_P(defaults) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(test_router_exception_ce, "Defaults must be an array", "test/router.zep", 246); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(stub_router_exception_ce, "Defaults must be an array", "stub/router.zep", 246); return; } if (zephir_array_isset_string_fetch(&namespaceName, defaults, SL("namespace"), 1)) { @@ -434,7 +434,7 @@ PHP_METHOD(Test_Router, setDefaults) { /** * x */ -PHP_METHOD(Test_Router, doRemoveExtraSlashes) { +PHP_METHOD(Stub_Router, doRemoveExtraSlashes) { zval *route, route_sub; zval *this_ptr = getThis(); @@ -463,7 +463,7 @@ PHP_METHOD(Test_Router, doRemoveExtraSlashes) { * * @param string uri */ -PHP_METHOD(Test_Router, handle) { +PHP_METHOD(Stub_Router, handle) { zend_string *_12$$28, *_21$$62; zend_ulong _11$$28, _20$$62; @@ -546,7 +546,7 @@ PHP_METHOD(Test_Router, handle) { } else { ZEPHIR_CPY_WRT(&realUri, uri); } - zephir_read_property(&_0, this_ptr, SL("_removeExtraSlashes"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("_removeExtraSlashes"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { ZEPHIR_CALL_METHOD(&handledUri, this_ptr, "doremoveextraslashes", NULL, 0, &realUri); zephir_check_call_status(); @@ -571,8 +571,8 @@ PHP_METHOD(Test_Router, handle) { zephir_update_property_zval(this_ptr, ZEND_STRL("_wasMatched"), &__$false); } zephir_update_property_zval(this_ptr, ZEND_STRL("_matchedRoute"), &__$null); - zephir_read_property(&_1, this_ptr, SL("_routes"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_1, 0, "test/router.zep", 474); + zephir_read_property(&_1, this_ptr, ZEND_STRL("_routes"), PH_NOISY_CC | PH_READONLY); + zephir_is_iterable(&_1, 0, "stub/router.zep", 474); if (Z_TYPE_P(&_1) == IS_ARRAY) { ZEND_HASH_REVERSE_FOREACH_VAL(Z_ARRVAL_P(&_1), _2) { @@ -582,10 +582,10 @@ PHP_METHOD(Test_Router, handle) { zephir_check_call_status(); if (Z_TYPE_P(&methods) != IS_NULL) { if (Z_TYPE_P(&request) == IS_NULL) { - zephir_read_property(&_4$$9, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_4$$9, this_ptr, ZEND_STRL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&dependencyInjector, &_4$$9); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "A dependency injection container is required to access the 'request' service", "test/router.zep", 342); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "A dependency injection container is required to access the 'request' service", "stub/router.zep", 342); return; } ZEPHIR_INIT_NVAR(&_5$$9); @@ -604,9 +604,9 @@ PHP_METHOD(Test_Router, handle) { if (Z_TYPE_P(&hostname) != IS_NULL) { if (Z_TYPE_P(&request) == IS_NULL) { ZEPHIR_OBS_NVAR(&dependencyInjector); - zephir_read_property(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); + zephir_read_property(&dependencyInjector, this_ptr, ZEND_STRL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "A dependency injection container is required to access the 'request' service", "test/router.zep", 363); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "A dependency injection container is required to access the 'request' service", "stub/router.zep", 363); return; } ZEPHIR_INIT_NVAR(&_7$$13); @@ -621,8 +621,8 @@ PHP_METHOD(Test_Router, handle) { if (Z_TYPE_P(¤tHostName) != IS_NULL) { continue; } - if (zephir_memnstr_str(&hostname, SL("("), "test/router.zep", 380)) { - if (zephir_memnstr_str(&hostname, SL("#"), "test/router.zep", 381)) { + if (zephir_memnstr_str(&hostname, SL("("), "stub/router.zep", 380)) { + if (zephir_memnstr_str(&hostname, SL("#"), "stub/router.zep", 381)) { ZEPHIR_INIT_NVAR(®exHostName); ZEPHIR_CONCAT_SVS(®exHostName, "#^", &hostname, "$#"); } else { @@ -641,7 +641,7 @@ PHP_METHOD(Test_Router, handle) { } ZEPHIR_CALL_METHOD(&pattern, &route, "getcompiledpattern", NULL, 0); zephir_check_call_status(); - if (zephir_memnstr_str(&pattern, SL("^"), "test/router.zep", 399)) { + if (zephir_memnstr_str(&pattern, SL("^"), "stub/router.zep", 399)) { ZEPHIR_INIT_NVAR(&routeFound); zephir_preg_match(&routeFound, &pattern, &handledUri, &matches, 0, 0 , 0 ); } else { @@ -653,7 +653,7 @@ PHP_METHOD(Test_Router, handle) { zephir_check_call_status(); if (Z_TYPE_P(&beforeMatch) != IS_NULL) { if (zephir_is_callable(&beforeMatch)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "Before-Match callback is not callable in matched route", "test/router.zep", 413); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "Before-Match callback is not callable in matched route", "stub/router.zep", 413); return; } } @@ -665,7 +665,7 @@ PHP_METHOD(Test_Router, handle) { if (Z_TYPE_P(&matches) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&converters, &route, "getconverters", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&paths, 0, "test/router.zep", 465); + zephir_is_iterable(&paths, 0, "stub/router.zep", 465); if (Z_TYPE_P(&paths) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _11$$28, _12$$28, _9$$28) { @@ -746,10 +746,10 @@ PHP_METHOD(Test_Router, handle) { zephir_check_call_status(); if (Z_TYPE_P(&methods) != IS_NULL) { if (Z_TYPE_P(&request) == IS_NULL) { - zephir_read_property(&_13$$43, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_13$$43, this_ptr, ZEND_STRL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&dependencyInjector, &_13$$43); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "A dependency injection container is required to access the 'request' service", "test/router.zep", 342); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "A dependency injection container is required to access the 'request' service", "stub/router.zep", 342); return; } ZEPHIR_INIT_NVAR(&_14$$43); @@ -768,9 +768,9 @@ PHP_METHOD(Test_Router, handle) { if (Z_TYPE_P(&hostname) != IS_NULL) { if (Z_TYPE_P(&request) == IS_NULL) { ZEPHIR_OBS_NVAR(&dependencyInjector); - zephir_read_property(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); + zephir_read_property(&dependencyInjector, this_ptr, ZEND_STRL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "A dependency injection container is required to access the 'request' service", "test/router.zep", 363); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "A dependency injection container is required to access the 'request' service", "stub/router.zep", 363); return; } ZEPHIR_INIT_NVAR(&_16$$47); @@ -785,8 +785,8 @@ PHP_METHOD(Test_Router, handle) { if (Z_TYPE_P(¤tHostName) != IS_NULL) { continue; } - if (zephir_memnstr_str(&hostname, SL("("), "test/router.zep", 380)) { - if (zephir_memnstr_str(&hostname, SL("#"), "test/router.zep", 381)) { + if (zephir_memnstr_str(&hostname, SL("("), "stub/router.zep", 380)) { + if (zephir_memnstr_str(&hostname, SL("#"), "stub/router.zep", 381)) { ZEPHIR_INIT_NVAR(®exHostName); ZEPHIR_CONCAT_SVS(®exHostName, "#^", &hostname, "$#"); } else { @@ -805,7 +805,7 @@ PHP_METHOD(Test_Router, handle) { } ZEPHIR_CALL_METHOD(&pattern, &route, "getcompiledpattern", NULL, 0); zephir_check_call_status(); - if (zephir_memnstr_str(&pattern, SL("^"), "test/router.zep", 399)) { + if (zephir_memnstr_str(&pattern, SL("^"), "stub/router.zep", 399)) { ZEPHIR_INIT_NVAR(&routeFound); zephir_preg_match(&routeFound, &pattern, &handledUri, &matches, 0, 0 , 0 ); } else { @@ -817,7 +817,7 @@ PHP_METHOD(Test_Router, handle) { zephir_check_call_status(); if (Z_TYPE_P(&beforeMatch) != IS_NULL) { if (zephir_is_callable(&beforeMatch)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "Before-Match callback is not callable in matched route", "test/router.zep", 413); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "Before-Match callback is not callable in matched route", "stub/router.zep", 413); return; } } @@ -829,7 +829,7 @@ PHP_METHOD(Test_Router, handle) { if (Z_TYPE_P(&matches) == IS_ARRAY) { ZEPHIR_CALL_METHOD(&converters, &route, "getconverters", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&paths, 0, "test/router.zep", 465); + zephir_is_iterable(&paths, 0, "stub/router.zep", 465); if (Z_TYPE_P(&paths) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _20$$62, _21$$62, _18$$62) { @@ -914,7 +914,7 @@ PHP_METHOD(Test_Router, handle) { } if (!(zephir_is_true(&routeFound))) { ZEPHIR_OBS_VAR(¬FoundPaths); - zephir_read_property(¬FoundPaths, this_ptr, SL("_notFoundPaths"), PH_NOISY_CC); + zephir_read_property(¬FoundPaths, this_ptr, ZEND_STRL("_notFoundPaths"), PH_NOISY_CC); if (Z_TYPE_P(¬FoundPaths) != IS_NULL) { ZEPHIR_CPY_WRT(&parts, ¬FoundPaths); ZEPHIR_INIT_NVAR(&routeFound); @@ -929,7 +929,7 @@ PHP_METHOD(Test_Router, handle) { } zephir_array_unset_string(&parts, SL("namespace"), PH_SEPARATE); } else { - zephir_read_property(&_22$$82, this_ptr, SL("_defaultNamespace"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_22$$82, this_ptr, ZEND_STRL("_defaultNamespace"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, ZEND_STRL("_namespace"), &_22$$82); } ZEPHIR_OBS_VAR(&module); @@ -939,7 +939,7 @@ PHP_METHOD(Test_Router, handle) { } zephir_array_unset_string(&parts, SL("module"), PH_SEPARATE); } else { - zephir_read_property(&_23$$85, this_ptr, SL("_defaultModule"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_23$$85, this_ptr, ZEND_STRL("_defaultModule"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, ZEND_STRL("_module"), &_23$$85); } ZEPHIR_OBS_VAR(&controller); @@ -949,7 +949,7 @@ PHP_METHOD(Test_Router, handle) { } zephir_array_unset_string(&parts, SL("controller"), PH_SEPARATE); } else { - zephir_read_property(&_24$$88, this_ptr, SL("_defaultController"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_24$$88, this_ptr, ZEND_STRL("_defaultController"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, ZEND_STRL("_controller"), &_24$$88); } ZEPHIR_OBS_VAR(&action); @@ -959,7 +959,7 @@ PHP_METHOD(Test_Router, handle) { } zephir_array_unset_string(&parts, SL("action"), PH_SEPARATE); } else { - zephir_read_property(&_25$$91, this_ptr, SL("_defaultAction"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_25$$91, this_ptr, ZEND_STRL("_defaultAction"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, ZEND_STRL("_action"), &_25$$91); } ZEPHIR_OBS_VAR(¶msStr); @@ -981,15 +981,15 @@ PHP_METHOD(Test_Router, handle) { } zephir_update_property_zval(this_ptr, ZEND_STRL("_params"), ¶msMerge); } else { - zephir_read_property(&_27$$96, this_ptr, SL("_defaultNamespace"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_27$$96, this_ptr, ZEND_STRL("_defaultNamespace"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, ZEND_STRL("_namespace"), &_27$$96); - zephir_read_property(&_28$$96, this_ptr, SL("_defaultModule"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_28$$96, this_ptr, ZEND_STRL("_defaultModule"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, ZEND_STRL("_module"), &_28$$96); - zephir_read_property(&_29$$96, this_ptr, SL("_defaultController"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_29$$96, this_ptr, ZEND_STRL("_defaultController"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, ZEND_STRL("_controller"), &_29$$96); - zephir_read_property(&_30$$96, this_ptr, SL("_defaultAction"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_30$$96, this_ptr, ZEND_STRL("_defaultAction"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, ZEND_STRL("_action"), &_30$$96); - zephir_read_property(&_31$$96, this_ptr, SL("_defaultParams"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_31$$96, this_ptr, ZEND_STRL("_defaultParams"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, ZEND_STRL("_params"), &_31$$96); } ZEPHIR_MM_RESTORE(); @@ -1006,9 +1006,9 @@ PHP_METHOD(Test_Router, handle) { * @param string pattern * @param string/array paths * @param string httpMethods - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router, add) { +PHP_METHOD(Stub_Router, add) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -1035,7 +1035,7 @@ PHP_METHOD(Test_Router, add) { ZEPHIR_INIT_VAR(&route); - object_init_ex(&route, test_router_route_ce); + object_init_ex(&route, stub_router_route_ce); ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 83, pattern, paths, httpMethods); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_routes"), &route); @@ -1048,9 +1048,9 @@ PHP_METHOD(Test_Router, add) { * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router, addGet) { +PHP_METHOD(Stub_Router, addGet) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -1084,9 +1084,9 @@ PHP_METHOD(Test_Router, addGet) { * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router, addPost) { +PHP_METHOD(Stub_Router, addPost) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -1120,9 +1120,9 @@ PHP_METHOD(Test_Router, addPost) { * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router, addPut) { +PHP_METHOD(Stub_Router, addPut) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -1156,9 +1156,9 @@ PHP_METHOD(Test_Router, addPut) { * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router, addPatch) { +PHP_METHOD(Stub_Router, addPatch) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -1192,9 +1192,9 @@ PHP_METHOD(Test_Router, addPatch) { * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router, addDelete) { +PHP_METHOD(Stub_Router, addDelete) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -1228,9 +1228,9 @@ PHP_METHOD(Test_Router, addDelete) { * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router, addOptions) { +PHP_METHOD(Stub_Router, addOptions) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -1264,9 +1264,9 @@ PHP_METHOD(Test_Router, addOptions) { * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router, addHead) { +PHP_METHOD(Stub_Router, addHead) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -1298,10 +1298,10 @@ PHP_METHOD(Test_Router, addHead) { /** * Mounts a group of routes in the router * - * @param Test\Router\Group route - * @return Test\Router + * @param Stub\Router\Group route + * @return Stub\Router */ -PHP_METHOD(Test_Router, mount) { +PHP_METHOD(Stub_Router, mount) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -1324,19 +1324,19 @@ PHP_METHOD(Test_Router, mount) { if (Z_TYPE_P(group) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "The group of routes is not valid", "test/router.zep", 677); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "The group of routes is not valid", "stub/router.zep", 677); return; } ZEPHIR_CALL_METHOD(&groupRoutes, group, "getroutes", NULL, 0); zephir_check_call_status(); if (!(zephir_fast_count_int(&groupRoutes))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "The group of routes does not contain any routes", "test/router.zep", 682); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "The group of routes does not contain any routes", "stub/router.zep", 682); return; } ZEPHIR_CALL_METHOD(&beforeMatch, group, "getbeforematch", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(&beforeMatch) != IS_NULL) { - zephir_is_iterable(&groupRoutes, 0, "test/router.zep", 692); + zephir_is_iterable(&groupRoutes, 0, "stub/router.zep", 692); if (Z_TYPE_P(&groupRoutes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&groupRoutes), _0$$5) { @@ -1367,7 +1367,7 @@ PHP_METHOD(Test_Router, mount) { ZEPHIR_CALL_METHOD(&hostname, group, "gethostname", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(&hostname) != IS_NULL) { - zephir_is_iterable(&groupRoutes, 0, "test/router.zep", 701); + zephir_is_iterable(&groupRoutes, 0, "stub/router.zep", 701); if (Z_TYPE_P(&groupRoutes) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&groupRoutes), _2$$8) { @@ -1396,7 +1396,7 @@ PHP_METHOD(Test_Router, mount) { ZEPHIR_INIT_NVAR(&route); } ZEPHIR_OBS_VAR(&routes); - zephir_read_property(&routes, this_ptr, SL("_routes"), PH_NOISY_CC); + zephir_read_property(&routes, this_ptr, ZEND_STRL("_routes"), PH_NOISY_CC); if (Z_TYPE_P(&routes) == IS_ARRAY) { ZEPHIR_INIT_VAR(&_4$$11); zephir_fast_array_merge(&_4$$11, &routes, &groupRoutes); @@ -1412,9 +1412,9 @@ PHP_METHOD(Test_Router, mount) { * Set a group of paths to be returned when none of the defined routes are matched * * @param array paths - * @return Test\Router + * @return Stub\Router */ -PHP_METHOD(Test_Router, notFound) { +PHP_METHOD(Stub_Router, notFound) { zval *paths, paths_sub; zval *this_ptr = getThis(); @@ -1427,7 +1427,7 @@ PHP_METHOD(Test_Router, notFound) { if (Z_TYPE_P(paths) != IS_ARRAY) { if (Z_TYPE_P(paths) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(test_router_exception_ce, "The not-found paths must be an array or string", "test/router.zep", 724); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(stub_router_exception_ce, "The not-found paths must be an array or string", "stub/router.zep", 724); return; } } @@ -1439,7 +1439,7 @@ PHP_METHOD(Test_Router, notFound) { /** * Removes all the pre-defined routes */ -PHP_METHOD(Test_Router, clear) { +PHP_METHOD(Stub_Router, clear) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -1461,7 +1461,7 @@ PHP_METHOD(Test_Router, clear) { * * @return string */ -PHP_METHOD(Test_Router, getNamespaceName) { +PHP_METHOD(Stub_Router, getNamespaceName) { zval *this_ptr = getThis(); @@ -1475,7 +1475,7 @@ PHP_METHOD(Test_Router, getNamespaceName) { * * @return string */ -PHP_METHOD(Test_Router, getModuleName) { +PHP_METHOD(Stub_Router, getModuleName) { zval *this_ptr = getThis(); @@ -1489,7 +1489,7 @@ PHP_METHOD(Test_Router, getModuleName) { * * @return string */ -PHP_METHOD(Test_Router, getControllerName) { +PHP_METHOD(Stub_Router, getControllerName) { zval *this_ptr = getThis(); @@ -1503,7 +1503,7 @@ PHP_METHOD(Test_Router, getControllerName) { * * @return string */ -PHP_METHOD(Test_Router, getActionName) { +PHP_METHOD(Stub_Router, getActionName) { zval *this_ptr = getThis(); @@ -1517,7 +1517,7 @@ PHP_METHOD(Test_Router, getActionName) { * * @return array */ -PHP_METHOD(Test_Router, getParams) { +PHP_METHOD(Stub_Router, getParams) { zval *this_ptr = getThis(); @@ -1529,9 +1529,9 @@ PHP_METHOD(Test_Router, getParams) { /** * Returns the route that matchs the handled URI * - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router, getMatchedRoute) { +PHP_METHOD(Stub_Router, getMatchedRoute) { zval *this_ptr = getThis(); @@ -1545,7 +1545,7 @@ PHP_METHOD(Test_Router, getMatchedRoute) { * * @return array */ -PHP_METHOD(Test_Router, getMatches) { +PHP_METHOD(Stub_Router, getMatches) { zval *this_ptr = getThis(); @@ -1559,7 +1559,7 @@ PHP_METHOD(Test_Router, getMatches) { * * @return bool */ -PHP_METHOD(Test_Router, wasMatched) { +PHP_METHOD(Stub_Router, wasMatched) { zval *this_ptr = getThis(); @@ -1571,9 +1571,9 @@ PHP_METHOD(Test_Router, wasMatched) { /** * Returns all the routes defined in the router * - * @return Test\Router\Route[] + * @return Stub\Router\Route[] */ -PHP_METHOD(Test_Router, getRoutes) { +PHP_METHOD(Stub_Router, getRoutes) { zval *this_ptr = getThis(); @@ -1586,9 +1586,9 @@ PHP_METHOD(Test_Router, getRoutes) { * Returns a route object by its id * * @param string id - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router, getRouteById) { +PHP_METHOD(Stub_Router, getRouteById) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -1607,8 +1607,8 @@ PHP_METHOD(Test_Router, getRouteById) { - zephir_read_property(&_0, this_ptr, SL("_routes"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_0, 0, "test/router.zep", 844); + zephir_read_property(&_0, this_ptr, ZEND_STRL("_routes"), PH_NOISY_CC | PH_READONLY); + zephir_is_iterable(&_0, 0, "stub/router.zep", 844); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { @@ -1649,9 +1649,9 @@ PHP_METHOD(Test_Router, getRouteById) { * Returns a route object by its name * * @param string name - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router, getRouteByName) { +PHP_METHOD(Stub_Router, getRouteByName) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -1670,8 +1670,8 @@ PHP_METHOD(Test_Router, getRouteByName) { - zephir_read_property(&_0, this_ptr, SL("_routes"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_0, 0, "test/router.zep", 862); + zephir_read_property(&_0, this_ptr, ZEND_STRL("_routes"), PH_NOISY_CC | PH_READONLY); + zephir_is_iterable(&_0, 0, "stub/router.zep", 862); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { diff --git a/ext/stub/router.zep.h b/ext/stub/router.zep.h new file mode 100644 index 0000000000..77b26493d8 --- /dev/null +++ b/ext/stub/router.zep.h @@ -0,0 +1,184 @@ + +extern zend_class_entry *stub_router_ce; + +ZEPHIR_INIT_CLASS(Stub_Router); + +PHP_METHOD(Stub_Router, __construct); +PHP_METHOD(Stub_Router, setDI); +PHP_METHOD(Stub_Router, getDI); +PHP_METHOD(Stub_Router, getRewriteUri); +PHP_METHOD(Stub_Router, setUriSource); +PHP_METHOD(Stub_Router, removeExtraSlashes); +PHP_METHOD(Stub_Router, setDefaultNamespace); +PHP_METHOD(Stub_Router, setDefaultModule); +PHP_METHOD(Stub_Router, setDefaultController); +PHP_METHOD(Stub_Router, setDefaultAction); +PHP_METHOD(Stub_Router, setDefaults); +PHP_METHOD(Stub_Router, doRemoveExtraSlashes); +PHP_METHOD(Stub_Router, handle); +PHP_METHOD(Stub_Router, add); +PHP_METHOD(Stub_Router, addGet); +PHP_METHOD(Stub_Router, addPost); +PHP_METHOD(Stub_Router, addPut); +PHP_METHOD(Stub_Router, addPatch); +PHP_METHOD(Stub_Router, addDelete); +PHP_METHOD(Stub_Router, addOptions); +PHP_METHOD(Stub_Router, addHead); +PHP_METHOD(Stub_Router, mount); +PHP_METHOD(Stub_Router, notFound); +PHP_METHOD(Stub_Router, clear); +PHP_METHOD(Stub_Router, getNamespaceName); +PHP_METHOD(Stub_Router, getModuleName); +PHP_METHOD(Stub_Router, getControllerName); +PHP_METHOD(Stub_Router, getActionName); +PHP_METHOD(Stub_Router, getParams); +PHP_METHOD(Stub_Router, getMatchedRoute); +PHP_METHOD(Stub_Router, getMatches); +PHP_METHOD(Stub_Router, wasMatched); +PHP_METHOD(Stub_Router, getRoutes); +PHP_METHOD(Stub_Router, getRouteById); +PHP_METHOD(Stub_Router, getRouteByName); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router___construct, 0, 0, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, defaultRoutes, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, defaultRoutes) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_setdi, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, dependencyInjector, Stub\\DiInterface, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_seturisource, 0, 0, 1) + ZEND_ARG_INFO(0, uriSource) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_removeextraslashes, 0, 0, 1) + ZEND_ARG_INFO(0, remove) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_setdefaultnamespace, 0, 0, 1) + ZEND_ARG_INFO(0, namespaceName) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_setdefaultmodule, 0, 0, 1) + ZEND_ARG_INFO(0, moduleName) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_setdefaultcontroller, 0, 0, 1) + ZEND_ARG_INFO(0, controllerName) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_setdefaultaction, 0, 0, 1) + ZEND_ARG_INFO(0, actionName) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_setdefaults, 0, 0, 1) + ZEND_ARG_INFO(0, defaults) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_doremoveextraslashes, 0, 0, 1) + ZEND_ARG_INFO(0, route) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_handle, 0, 0, 0) + ZEND_ARG_INFO(0, uri) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_add, 0, 0, 1) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, paths) + ZEND_ARG_INFO(0, httpMethods) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_addget, 0, 0, 1) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, paths) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_addpost, 0, 0, 1) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, paths) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_addput, 0, 0, 1) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, paths) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_addpatch, 0, 0, 1) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, paths) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_adddelete, 0, 0, 1) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, paths) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_addoptions, 0, 0, 1) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, paths) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_addhead, 0, 0, 1) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, paths) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_mount, 0, 0, 1) + ZEND_ARG_INFO(0, group) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_notfound, 0, 0, 1) + ZEND_ARG_INFO(0, paths) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_getroutebyid, 0, 0, 1) + ZEND_ARG_INFO(0, id) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_getroutebyname, 0, 0, 1) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_router_method_entry) { + PHP_ME(Stub_Router, __construct, arginfo_stub_router___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Stub_Router, setDI, arginfo_stub_router_setdi, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, getDI, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, getRewriteUri, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, setUriSource, arginfo_stub_router_seturisource, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, removeExtraSlashes, arginfo_stub_router_removeextraslashes, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, setDefaultNamespace, arginfo_stub_router_setdefaultnamespace, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, setDefaultModule, arginfo_stub_router_setdefaultmodule, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, setDefaultController, arginfo_stub_router_setdefaultcontroller, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, setDefaultAction, arginfo_stub_router_setdefaultaction, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, setDefaults, arginfo_stub_router_setdefaults, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, doRemoveExtraSlashes, arginfo_stub_router_doremoveextraslashes, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, handle, arginfo_stub_router_handle, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, add, arginfo_stub_router_add, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, addGet, arginfo_stub_router_addget, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, addPost, arginfo_stub_router_addpost, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, addPut, arginfo_stub_router_addput, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, addPatch, arginfo_stub_router_addpatch, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, addDelete, arginfo_stub_router_adddelete, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, addOptions, arginfo_stub_router_addoptions, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, addHead, arginfo_stub_router_addhead, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, mount, arginfo_stub_router_mount, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, notFound, arginfo_stub_router_notfound, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, clear, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, getNamespaceName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, getModuleName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, getControllerName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, getActionName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, getParams, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, getMatchedRoute, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, getMatches, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, wasMatched, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, getRoutes, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, getRouteById, arginfo_stub_router_getroutebyid, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router, getRouteByName, arginfo_stub_router_getroutebyname, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/router/exception.zep.c b/ext/stub/router/exception.zep.c similarity index 74% rename from ext/test/router/exception.zep.c rename to ext/stub/router/exception.zep.c index 9650a754bd..01511feda0 100644 --- a/ext/test/router/exception.zep.c +++ b/ext/stub/router/exception.zep.c @@ -15,13 +15,13 @@ /** - * Test\Router\Exception + * Stub\Router\Exception * * Exceptions generated by the router */ -ZEPHIR_INIT_CLASS(Test_Router_Exception) { +ZEPHIR_INIT_CLASS(Stub_Router_Exception) { - ZEPHIR_REGISTER_CLASS_EX(Test\\Router, Exception, test, router_exception, zend_exception_get_default(TSRMLS_C), NULL, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub\\Router, Exception, stub, router_exception, zend_exception_get_default(TSRMLS_C), NULL, 0); return SUCCESS; diff --git a/ext/stub/router/exception.zep.h b/ext/stub/router/exception.zep.h new file mode 100644 index 0000000000..9372192aed --- /dev/null +++ b/ext/stub/router/exception.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_router_exception_ce; + +ZEPHIR_INIT_CLASS(Stub_Router_Exception); + diff --git a/ext/test/router/route.zep.c b/ext/stub/router/route.zep.c similarity index 86% rename from ext/test/router/route.zep.c rename to ext/stub/router/route.zep.c index 30432614db..c91809d651 100644 --- a/ext/test/router/route.zep.c +++ b/ext/stub/router/route.zep.c @@ -23,44 +23,44 @@ /** - * Test\Router\Route + * Stub\Router\Route * * This class represents every route added to the router */ -ZEPHIR_INIT_CLASS(Test_Router_Route) { +ZEPHIR_INIT_CLASS(Stub_Router_Route) { - ZEPHIR_REGISTER_CLASS(Test\\Router, Route, test, router_route, test_router_route_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub\\Router, Route, stub, router_route, stub_router_route_method_entry, 0); - zend_declare_property_null(test_router_route_ce, SL("_pattern"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_route_ce, SL("_pattern"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_route_ce, SL("_compiledPattern"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_route_ce, SL("_compiledPattern"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_route_ce, SL("_paths"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_route_ce, SL("_paths"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_route_ce, SL("_methods"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_route_ce, SL("_methods"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_route_ce, SL("_hostname"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_route_ce, SL("_hostname"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_route_ce, SL("_converters"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_route_ce, SL("_converters"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_route_ce, SL("_id"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_route_ce, SL("_id"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_route_ce, SL("_name"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_route_ce, SL("_name"), ZEND_ACC_PROTECTED); - zend_declare_property_null(test_router_route_ce, SL("_beforeMatch"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_router_route_ce, SL("_beforeMatch"), ZEND_ACC_PROTECTED); return SUCCESS; } /** - * Test\Router\Route constructor + * Stub\Router\Route constructor * * @param string pattern * @param array paths * @param array|string httpMethods */ -PHP_METHOD(Test_Router_Route, __construct) { +PHP_METHOD(Stub_Router_Route, __construct) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -98,7 +98,7 @@ PHP_METHOD(Test_Router_Route, __construct) { * @param string pattern * @return string */ -PHP_METHOD(Test_Router_Route, compilePattern) { +PHP_METHOD(Stub_Router_Route, compilePattern) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *pattern = NULL, pattern_sub, idPattern, _0$$4, _1$$4, _2$$5, _3$$5, _4$$6, _5$$6, _6$$7, _7$$7, _8$$8, _9$$8, _10$$8, _11$$9, _12$$9, _13$$9; @@ -127,38 +127,38 @@ PHP_METHOD(Test_Router_Route, compilePattern) { ZEPHIR_SEPARATE_PARAM(pattern); - if (zephir_memnstr_str(pattern, SL(":"), "test/router/route.zep", 56)) { + if (zephir_memnstr_str(pattern, SL(":"), "stub/router/route.zep", 56)) { ZEPHIR_INIT_VAR(&idPattern); ZVAL_STRING(&idPattern, "/([a-zA-Z0-9\\_\\-]+)"); - if (zephir_memnstr_str(pattern, SL("/:module"), "test/router/route.zep", 62)) { + if (zephir_memnstr_str(pattern, SL("/:module"), "stub/router/route.zep", 62)) { ZEPHIR_INIT_VAR(&_0$$4); ZEPHIR_INIT_VAR(&_1$$4); ZVAL_STRING(&_1$$4, "/:module"); zephir_fast_str_replace(&_0$$4, &_1$$4, &idPattern, pattern); ZEPHIR_CPY_WRT(pattern, &_0$$4); } - if (zephir_memnstr_str(pattern, SL("/:controller"), "test/router/route.zep", 67)) { + if (zephir_memnstr_str(pattern, SL("/:controller"), "stub/router/route.zep", 67)) { ZEPHIR_INIT_VAR(&_2$$5); ZEPHIR_INIT_VAR(&_3$$5); ZVAL_STRING(&_3$$5, "/:controller"); zephir_fast_str_replace(&_2$$5, &_3$$5, &idPattern, pattern); ZEPHIR_CPY_WRT(pattern, &_2$$5); } - if (zephir_memnstr_str(pattern, SL("/:namespace"), "test/router/route.zep", 72)) { + if (zephir_memnstr_str(pattern, SL("/:namespace"), "stub/router/route.zep", 72)) { ZEPHIR_INIT_VAR(&_4$$6); ZEPHIR_INIT_VAR(&_5$$6); ZVAL_STRING(&_5$$6, "/:namespace"); zephir_fast_str_replace(&_4$$6, &_5$$6, &idPattern, pattern); ZEPHIR_CPY_WRT(pattern, &_4$$6); } - if (zephir_memnstr_str(pattern, SL("/:action"), "test/router/route.zep", 77)) { + if (zephir_memnstr_str(pattern, SL("/:action"), "stub/router/route.zep", 77)) { ZEPHIR_INIT_VAR(&_6$$7); ZEPHIR_INIT_VAR(&_7$$7); ZVAL_STRING(&_7$$7, "/:action"); zephir_fast_str_replace(&_6$$7, &_7$$7, &idPattern, pattern); ZEPHIR_CPY_WRT(pattern, &_6$$7); } - if (zephir_memnstr_str(pattern, SL("/:params"), "test/router/route.zep", 82)) { + if (zephir_memnstr_str(pattern, SL("/:params"), "stub/router/route.zep", 82)) { ZEPHIR_INIT_VAR(&_8$$8); ZEPHIR_INIT_VAR(&_9$$8); ZVAL_STRING(&_9$$8, "/:params"); @@ -167,7 +167,7 @@ PHP_METHOD(Test_Router_Route, compilePattern) { zephir_fast_str_replace(&_8$$8, &_9$$8, &_10$$8, pattern); ZEPHIR_CPY_WRT(pattern, &_8$$8); } - if (zephir_memnstr_str(pattern, SL("/:int"), "test/router/route.zep", 87)) { + if (zephir_memnstr_str(pattern, SL("/:int"), "stub/router/route.zep", 87)) { ZEPHIR_INIT_VAR(&_11$$9); ZEPHIR_INIT_VAR(&_12$$9); ZVAL_STRING(&_12$$9, "/:int"); @@ -177,11 +177,11 @@ PHP_METHOD(Test_Router_Route, compilePattern) { ZEPHIR_CPY_WRT(pattern, &_11$$9); } } - if (zephir_memnstr_str(pattern, SL("("), "test/router/route.zep", 93)) { + if (zephir_memnstr_str(pattern, SL("("), "stub/router/route.zep", 93)) { ZEPHIR_CONCAT_SVS(return_value, "#^", pattern, "$#"); RETURN_MM(); } - if (zephir_memnstr_str(pattern, SL("["), "test/router/route.zep", 98)) { + if (zephir_memnstr_str(pattern, SL("["), "stub/router/route.zep", 98)) { ZEPHIR_CONCAT_SVS(return_value, "#^", pattern, "$#"); RETURN_MM(); } @@ -199,9 +199,9 @@ PHP_METHOD(Test_Router_Route, compilePattern) { * * * @param string|array httpMethods - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router_Route, via) { +PHP_METHOD(Stub_Router_Route, via) { zval *httpMethods, httpMethods_sub; zval *this_ptr = getThis(); @@ -222,7 +222,7 @@ PHP_METHOD(Test_Router_Route, via) { * * @param string pattern */ -PHP_METHOD(Test_Router_Route, extractNamedParams) { +PHP_METHOD(Stub_Router_Route, extractNamedParams) { long _0, _5$$11, _26$$19; zend_bool notValid, _6$$12, _7$$12, _8$$12, _9$$12, _10$$12, _11$$12, _12$$12, _13$$12, _14$$12, _15$$12, _16$$12, _17$$12, _25$$18; @@ -460,7 +460,7 @@ PHP_METHOD(Test_Router_Route, extractNamedParams) { * @param string pattern * @param array paths */ -PHP_METHOD(Test_Router_Route, reConfigure) { +PHP_METHOD(Stub_Router_Route, reConfigure) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS, _0$$5; @@ -494,7 +494,7 @@ PHP_METHOD(Test_Router_Route, reConfigure) { if (Z_TYPE_P(pattern) != IS_STRING) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "The pattern must be string", "test/router/route.zep", 270); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "The pattern must be string", "stub/router/route.zep", 270); return; } if (Z_TYPE_P(paths) != IS_NULL) { @@ -511,23 +511,23 @@ PHP_METHOD(Test_Router_Route, reConfigure) { _0$$5 = zephir_fast_count_int(&parts); if (_0$$5 == 3) { ZEPHIR_OBS_NVAR(&moduleName); - zephir_array_fetch_long(&moduleName, &parts, 0, PH_NOISY, "test/router/route.zep", 286); + zephir_array_fetch_long(&moduleName, &parts, 0, PH_NOISY, "stub/router/route.zep", 286); ZEPHIR_OBS_NVAR(&controllerName); - zephir_array_fetch_long(&controllerName, &parts, 1, PH_NOISY, "test/router/route.zep", 287); + zephir_array_fetch_long(&controllerName, &parts, 1, PH_NOISY, "stub/router/route.zep", 287); ZEPHIR_OBS_NVAR(&actionName); - zephir_array_fetch_long(&actionName, &parts, 2, PH_NOISY, "test/router/route.zep", 288); + zephir_array_fetch_long(&actionName, &parts, 2, PH_NOISY, "stub/router/route.zep", 288); break; } if (_0$$5 == 2) { ZEPHIR_OBS_NVAR(&controllerName); - zephir_array_fetch_long(&controllerName, &parts, 0, PH_NOISY, "test/router/route.zep", 291); + zephir_array_fetch_long(&controllerName, &parts, 0, PH_NOISY, "stub/router/route.zep", 291); ZEPHIR_OBS_NVAR(&actionName); - zephir_array_fetch_long(&actionName, &parts, 1, PH_NOISY, "test/router/route.zep", 292); + zephir_array_fetch_long(&actionName, &parts, 1, PH_NOISY, "stub/router/route.zep", 292); break; } if (_0$$5 == 1) { ZEPHIR_OBS_NVAR(&controllerName); - zephir_array_fetch_long(&controllerName, &parts, 0, PH_NOISY, "test/router/route.zep", 295); + zephir_array_fetch_long(&controllerName, &parts, 0, PH_NOISY, "stub/router/route.zep", 295); break; } } while(0); @@ -538,7 +538,7 @@ PHP_METHOD(Test_Router_Route, reConfigure) { zephir_array_update_string(&routePaths, SL("module"), &moduleName, PH_COPY | PH_SEPARATE); } if (Z_TYPE_P(&controllerName) != IS_NULL) { - if (zephir_memnstr_str(&controllerName, SL("\\"), "test/router/route.zep", 310)) { + if (zephir_memnstr_str(&controllerName, SL("\\"), "stub/router/route.zep", 310)) { ZEPHIR_INIT_VAR(&realClassName); zephir_get_class_ns(&realClassName, &controllerName, 0); ZEPHIR_INIT_VAR(&namespaceName); @@ -564,17 +564,17 @@ PHP_METHOD(Test_Router_Route, reConfigure) { array_init(&routePaths); } if (Z_TYPE_P(&routePaths) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "The route contains invalid paths", "test/router/route.zep", 342); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "The route contains invalid paths", "stub/router/route.zep", 342); return; } if (!(zephir_start_with_str(pattern, SL("#")))) { - if (zephir_memnstr_str(pattern, SL("{"), "test/router/route.zep", 348)) { + if (zephir_memnstr_str(pattern, SL("{"), "stub/router/route.zep", 348)) { ZEPHIR_CALL_METHOD(&extracted, this_ptr, "extractnamedparams", NULL, 0, pattern); zephir_check_call_status(); ZEPHIR_OBS_VAR(&pcrePattern); - zephir_array_fetch_long(&pcrePattern, &extracted, 0, PH_NOISY, "test/router/route.zep", 351); + zephir_array_fetch_long(&pcrePattern, &extracted, 0, PH_NOISY, "stub/router/route.zep", 351); ZEPHIR_INIT_VAR(&_2$$19); - zephir_array_fetch_long(&_3$$19, &extracted, 1, PH_NOISY | PH_READONLY, "test/router/route.zep", 352); + zephir_array_fetch_long(&_3$$19, &extracted, 1, PH_NOISY | PH_READONLY, "stub/router/route.zep", 352); zephir_fast_array_merge(&_2$$19, &routePaths, &_3$$19); ZEPHIR_CPY_WRT(&routePaths, &_2$$19); } else { @@ -597,7 +597,7 @@ PHP_METHOD(Test_Router_Route, reConfigure) { * * @return string */ -PHP_METHOD(Test_Router_Route, getName) { +PHP_METHOD(Stub_Router_Route, getName) { zval *this_ptr = getThis(); @@ -618,7 +618,7 @@ PHP_METHOD(Test_Router_Route, getName) { * @param string name * @return Route */ -PHP_METHOD(Test_Router_Route, setName) { +PHP_METHOD(Stub_Router_Route, setName) { zval *name, name_sub; zval *this_ptr = getThis(); @@ -640,9 +640,9 @@ PHP_METHOD(Test_Router_Route, setName) { * If the callback returns false the route is treaded as not matched * * @param callback callback - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router_Route, beforeMatch) { +PHP_METHOD(Stub_Router_Route, beforeMatch) { zval *callback, callback_sub; zval *this_ptr = getThis(); @@ -663,7 +663,7 @@ PHP_METHOD(Test_Router_Route, beforeMatch) { * * @return mixed */ -PHP_METHOD(Test_Router_Route, getBeforeMatch) { +PHP_METHOD(Stub_Router_Route, getBeforeMatch) { zval *this_ptr = getThis(); @@ -677,7 +677,7 @@ PHP_METHOD(Test_Router_Route, getBeforeMatch) { * * @return string */ -PHP_METHOD(Test_Router_Route, getRouteId) { +PHP_METHOD(Stub_Router_Route, getRouteId) { zval *this_ptr = getThis(); @@ -691,7 +691,7 @@ PHP_METHOD(Test_Router_Route, getRouteId) { * * @return string */ -PHP_METHOD(Test_Router_Route, getPattern) { +PHP_METHOD(Stub_Router_Route, getPattern) { zval *this_ptr = getThis(); @@ -705,7 +705,7 @@ PHP_METHOD(Test_Router_Route, getPattern) { * * @return string */ -PHP_METHOD(Test_Router_Route, getCompiledPattern) { +PHP_METHOD(Stub_Router_Route, getCompiledPattern) { zval *this_ptr = getThis(); @@ -719,7 +719,7 @@ PHP_METHOD(Test_Router_Route, getCompiledPattern) { * * @return array */ -PHP_METHOD(Test_Router_Route, getPaths) { +PHP_METHOD(Stub_Router_Route, getPaths) { zval *this_ptr = getThis(); @@ -733,7 +733,7 @@ PHP_METHOD(Test_Router_Route, getPaths) { * * @return array */ -PHP_METHOD(Test_Router_Route, getReversedPaths) { +PHP_METHOD(Stub_Router_Route, getReversedPaths) { zend_string *_4; zend_ulong _3; @@ -752,8 +752,8 @@ PHP_METHOD(Test_Router_Route, getReversedPaths) { ZEPHIR_INIT_VAR(&reversed); array_init(&reversed); - zephir_read_property(&_0, this_ptr, SL("_paths"), PH_NOISY_CC | PH_READONLY); - zephir_is_iterable(&_0, 0, "test/router/route.zep", 478); + zephir_read_property(&_0, this_ptr, ZEND_STRL("_paths"), PH_NOISY_CC | PH_READONLY); + zephir_is_iterable(&_0, 0, "stub/router/route.zep", 478); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _3, _4, _1) { @@ -800,9 +800,9 @@ PHP_METHOD(Test_Router_Route, getReversedPaths) { * * * @param string|array httpMethods - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router_Route, setHttpMethods) { +PHP_METHOD(Stub_Router_Route, setHttpMethods) { zval *httpMethods, httpMethods_sub; zval *this_ptr = getThis(); @@ -823,7 +823,7 @@ PHP_METHOD(Test_Router_Route, setHttpMethods) { * * @return string|array */ -PHP_METHOD(Test_Router_Route, getHttpMethods) { +PHP_METHOD(Stub_Router_Route, getHttpMethods) { zval *this_ptr = getThis(); @@ -840,9 +840,9 @@ PHP_METHOD(Test_Router_Route, getHttpMethods) { * * * @param string|array httpMethods - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router_Route, setHostname) { +PHP_METHOD(Stub_Router_Route, setHostname) { zval *hostname, hostname_sub; zval *this_ptr = getThis(); @@ -863,7 +863,7 @@ PHP_METHOD(Test_Router_Route, setHostname) { * * @return string */ -PHP_METHOD(Test_Router_Route, getHostname) { +PHP_METHOD(Stub_Router_Route, getHostname) { zval *this_ptr = getThis(); @@ -877,9 +877,9 @@ PHP_METHOD(Test_Router_Route, getHostname) { * * @param string name * @param callable converter - * @return Test\Router\Route + * @return Stub\Router\Route */ -PHP_METHOD(Test_Router_Route, convert) { +PHP_METHOD(Stub_Router_Route, convert) { zval *name, name_sub, *converter, converter_sub; zval *this_ptr = getThis(); @@ -901,7 +901,7 @@ PHP_METHOD(Test_Router_Route, convert) { * * @return array */ -PHP_METHOD(Test_Router_Route, getConverters) { +PHP_METHOD(Stub_Router_Route, getConverters) { zval *this_ptr = getThis(); diff --git a/ext/stub/router/route.zep.h b/ext/stub/router/route.zep.h new file mode 100644 index 0000000000..35a2ddc3cb --- /dev/null +++ b/ext/stub/router/route.zep.h @@ -0,0 +1,97 @@ + +extern zend_class_entry *stub_router_route_ce; + +ZEPHIR_INIT_CLASS(Stub_Router_Route); + +PHP_METHOD(Stub_Router_Route, __construct); +PHP_METHOD(Stub_Router_Route, compilePattern); +PHP_METHOD(Stub_Router_Route, via); +PHP_METHOD(Stub_Router_Route, extractNamedParams); +PHP_METHOD(Stub_Router_Route, reConfigure); +PHP_METHOD(Stub_Router_Route, getName); +PHP_METHOD(Stub_Router_Route, setName); +PHP_METHOD(Stub_Router_Route, beforeMatch); +PHP_METHOD(Stub_Router_Route, getBeforeMatch); +PHP_METHOD(Stub_Router_Route, getRouteId); +PHP_METHOD(Stub_Router_Route, getPattern); +PHP_METHOD(Stub_Router_Route, getCompiledPattern); +PHP_METHOD(Stub_Router_Route, getPaths); +PHP_METHOD(Stub_Router_Route, getReversedPaths); +PHP_METHOD(Stub_Router_Route, setHttpMethods); +PHP_METHOD(Stub_Router_Route, getHttpMethods); +PHP_METHOD(Stub_Router_Route, setHostname); +PHP_METHOD(Stub_Router_Route, getHostname); +PHP_METHOD(Stub_Router_Route, convert); +PHP_METHOD(Stub_Router_Route, getConverters); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route___construct, 0, 0, 1) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, paths) + ZEND_ARG_INFO(0, httpMethods) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_compilepattern, 0, 0, 1) + ZEND_ARG_INFO(0, pattern) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_via, 0, 0, 1) + ZEND_ARG_INFO(0, httpMethods) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_extractnamedparams, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, pattern) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_reconfigure, 0, 0, 1) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, paths) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_setname, 0, 0, 1) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_beforematch, 0, 0, 1) + ZEND_ARG_INFO(0, callback) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_sethttpmethods, 0, 0, 1) + ZEND_ARG_INFO(0, httpMethods) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_sethostname, 0, 0, 1) + ZEND_ARG_INFO(0, hostname) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_convert, 0, 0, 2) + ZEND_ARG_INFO(0, name) + ZEND_ARG_INFO(0, converter) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_router_route_method_entry) { + PHP_ME(Stub_Router_Route, __construct, arginfo_stub_router_route___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Stub_Router_Route, compilePattern, arginfo_stub_router_route_compilepattern, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, via, arginfo_stub_router_route_via, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, extractNamedParams, arginfo_stub_router_route_extractnamedparams, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, reConfigure, arginfo_stub_router_route_reconfigure, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, getName, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, setName, arginfo_stub_router_route_setname, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, beforeMatch, arginfo_stub_router_route_beforematch, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, getBeforeMatch, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, getRouteId, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, getPattern, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, getCompiledPattern, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, getPaths, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, getReversedPaths, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, setHttpMethods, arginfo_stub_router_route_sethttpmethods, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, getHttpMethods, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, setHostname, arginfo_stub_router_route_sethostname, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, getHostname, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, convert, arginfo_stub_router_route_convert, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Router_Route, getConverters, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/scall.zep.c b/ext/stub/scall.zep.c similarity index 85% rename from ext/test/scall.zep.c rename to ext/stub/scall.zep.c index eddb19625a..88cd5d73fc 100644 --- a/ext/test/scall.zep.c +++ b/ext/stub/scall.zep.c @@ -21,15 +21,15 @@ /** * Static Function calls */ -ZEPHIR_INIT_CLASS(Test_Scall) { +ZEPHIR_INIT_CLASS(Stub_Scall) { - ZEPHIR_REGISTER_CLASS_EX(Test, Scall, test, scall, test_scallparent_ce, test_scall_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub, Scall, stub, scall, stub_scallparent_ce, stub_scall_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Scall, testMethod1) { +PHP_METHOD(Stub_Scall, testMethod1) { zval *this_ptr = getThis(); @@ -38,7 +38,7 @@ PHP_METHOD(Test_Scall, testMethod1) { } -PHP_METHOD(Test_Scall, testMethod2) { +PHP_METHOD(Stub_Scall, testMethod2) { zval *this_ptr = getThis(); @@ -47,7 +47,7 @@ PHP_METHOD(Test_Scall, testMethod2) { } -PHP_METHOD(Test_Scall, testMethod3) { +PHP_METHOD(Stub_Scall, testMethod3) { zval *this_ptr = getThis(); @@ -56,7 +56,7 @@ PHP_METHOD(Test_Scall, testMethod3) { } -PHP_METHOD(Test_Scall, testMethod4) { +PHP_METHOD(Stub_Scall, testMethod4) { zval *a, a_sub, *b, b_sub; zval *this_ptr = getThis(); @@ -73,7 +73,7 @@ PHP_METHOD(Test_Scall, testMethod4) { } -PHP_METHOD(Test_Scall, testMethod5) { +PHP_METHOD(Stub_Scall, testMethod5) { zval *a, a_sub, *b, b_sub; zval *this_ptr = getThis(); @@ -90,7 +90,7 @@ PHP_METHOD(Test_Scall, testMethod5) { } -PHP_METHOD(Test_Scall, testMethod6) { +PHP_METHOD(Stub_Scall, testMethod6) { zval *a, a_sub, *b, b_sub; zval *this_ptr = getThis(); @@ -107,7 +107,7 @@ PHP_METHOD(Test_Scall, testMethod6) { } -PHP_METHOD(Test_Scall, testMethod7) { +PHP_METHOD(Stub_Scall, testMethod7) { zval *this_ptr = getThis(); @@ -117,7 +117,7 @@ PHP_METHOD(Test_Scall, testMethod7) { } -PHP_METHOD(Test_Scall, testCall1) { +PHP_METHOD(Stub_Scall, testCall1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -132,7 +132,7 @@ PHP_METHOD(Test_Scall, testCall1) { } -PHP_METHOD(Test_Scall, testCall2) { +PHP_METHOD(Stub_Scall, testCall2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -147,7 +147,7 @@ PHP_METHOD(Test_Scall, testCall2) { } -PHP_METHOD(Test_Scall, testCall3) { +PHP_METHOD(Stub_Scall, testCall3) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -163,7 +163,7 @@ PHP_METHOD(Test_Scall, testCall3) { } -PHP_METHOD(Test_Scall, testCall4) { +PHP_METHOD(Stub_Scall, testCall4) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -184,7 +184,7 @@ PHP_METHOD(Test_Scall, testCall4) { } -PHP_METHOD(Test_Scall, testCall5) { +PHP_METHOD(Stub_Scall, testCall5) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -205,7 +205,7 @@ PHP_METHOD(Test_Scall, testCall5) { } -PHP_METHOD(Test_Scall, testCall6) { +PHP_METHOD(Stub_Scall, testCall6) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -227,7 +227,7 @@ PHP_METHOD(Test_Scall, testCall6) { } -PHP_METHOD(Test_Scall, testCall7) { +PHP_METHOD(Stub_Scall, testCall7) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -242,7 +242,7 @@ PHP_METHOD(Test_Scall, testCall7) { } -PHP_METHOD(Test_Scall, testCall8) { +PHP_METHOD(Stub_Scall, testCall8) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -257,7 +257,7 @@ PHP_METHOD(Test_Scall, testCall8) { } -PHP_METHOD(Test_Scall, testCall9) { +PHP_METHOD(Stub_Scall, testCall9) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -273,7 +273,7 @@ PHP_METHOD(Test_Scall, testCall9) { } -PHP_METHOD(Test_Scall, testCall10) { +PHP_METHOD(Stub_Scall, testCall10) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -294,7 +294,7 @@ PHP_METHOD(Test_Scall, testCall10) { } -PHP_METHOD(Test_Scall, testCall11) { +PHP_METHOD(Stub_Scall, testCall11) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -315,7 +315,7 @@ PHP_METHOD(Test_Scall, testCall11) { } -PHP_METHOD(Test_Scall, testCall12) { +PHP_METHOD(Stub_Scall, testCall12) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -337,7 +337,7 @@ PHP_METHOD(Test_Scall, testCall12) { } -PHP_METHOD(Test_Scall, testCall13) { +PHP_METHOD(Stub_Scall, testCall13) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -347,13 +347,13 @@ PHP_METHOD(Test_Scall, testCall13) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_PARENT(test_scall_ce, getThis(), "testmethod1", &_0, 0); + ZEPHIR_RETURN_CALL_PARENT(stub_scall_ce, getThis(), "testmethod1", &_0, 0); zephir_check_call_status(); RETURN_MM(); } -PHP_METHOD(Test_Scall, testCall14) { +PHP_METHOD(Stub_Scall, testCall14) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -363,13 +363,13 @@ PHP_METHOD(Test_Scall, testCall14) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_PARENT(test_scall_ce, getThis(), "testmethod2", &_0, 0); + ZEPHIR_RETURN_CALL_PARENT(stub_scall_ce, getThis(), "testmethod2", &_0, 0); zephir_check_call_status(); RETURN_MM(); } -PHP_METHOD(Test_Scall, testCall15) { +PHP_METHOD(Stub_Scall, testCall15) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -384,7 +384,7 @@ PHP_METHOD(Test_Scall, testCall15) { } -PHP_METHOD(Test_Scall, testMethod16) { +PHP_METHOD(Stub_Scall, testMethod16) { zval *a_param = NULL, *b_param = NULL; long a, b; @@ -401,7 +401,7 @@ PHP_METHOD(Test_Scall, testMethod16) { } -PHP_METHOD(Test_Scall, testCall17) { +PHP_METHOD(Stub_Scall, testCall17) { zend_bool _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -435,7 +435,7 @@ PHP_METHOD(Test_Scall, testCall17) { _0 = 1; } i = _1; - ZEPHIR_CALL_CE_STATIC(&_3$$3, test_scallexternal_ce, "testmethod3", &_4, 0, p, p); + ZEPHIR_CALL_CE_STATIC(&_3$$3, stub_scallexternal_ce, "testmethod3", &_4, 0, p, p); zephir_check_call_status(); j += zephir_get_numberval(&_3$$3); } @@ -444,7 +444,7 @@ PHP_METHOD(Test_Scall, testCall17) { } -PHP_METHOD(Test_Scall, testCall18) { +PHP_METHOD(Stub_Scall, testCall18) { zend_bool _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -487,7 +487,7 @@ PHP_METHOD(Test_Scall, testCall18) { } -PHP_METHOD(Test_Scall, testMethodStatic) { +PHP_METHOD(Stub_Scall, testMethodStatic) { zval *this_ptr = getThis(); @@ -496,7 +496,7 @@ PHP_METHOD(Test_Scall, testMethodStatic) { } -PHP_METHOD(Test_Scall, interpolatedStaticReturn) { +PHP_METHOD(Stub_Scall, interpolatedStaticReturn) { zend_class_entry *_0; zval className, methodName; @@ -510,7 +510,7 @@ PHP_METHOD(Test_Scall, interpolatedStaticReturn) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&className); - ZVAL_STRING(&className, "Test\\Scall"); + ZVAL_STRING(&className, "Stub\\Scall"); ZEPHIR_INIT_VAR(&methodName); ZVAL_STRING(&methodName, "testMethodStatic"); _0 = zephir_fetch_class(&className); @@ -520,7 +520,7 @@ PHP_METHOD(Test_Scall, interpolatedStaticReturn) { } -PHP_METHOD(Test_Scall, interpolatedStaticEcho) { +PHP_METHOD(Stub_Scall, interpolatedStaticEcho) { zend_class_entry *_1; zval _0; @@ -536,7 +536,7 @@ PHP_METHOD(Test_Scall, interpolatedStaticEcho) { ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(&className); - ZVAL_STRING(&className, "Test\\Scall"); + ZVAL_STRING(&className, "Stub\\Scall"); ZEPHIR_INIT_VAR(&methodName); ZVAL_STRING(&methodName, "testMethodStatic"); _1 = zephir_fetch_class(&className); diff --git a/ext/stub/scall.zep.h b/ext/stub/scall.zep.h new file mode 100644 index 0000000000..23460eaf02 --- /dev/null +++ b/ext/stub/scall.zep.h @@ -0,0 +1,198 @@ + +extern zend_class_entry *stub_scall_ce; + +ZEPHIR_INIT_CLASS(Stub_Scall); + +PHP_METHOD(Stub_Scall, testMethod1); +PHP_METHOD(Stub_Scall, testMethod2); +PHP_METHOD(Stub_Scall, testMethod3); +PHP_METHOD(Stub_Scall, testMethod4); +PHP_METHOD(Stub_Scall, testMethod5); +PHP_METHOD(Stub_Scall, testMethod6); +PHP_METHOD(Stub_Scall, testMethod7); +PHP_METHOD(Stub_Scall, testCall1); +PHP_METHOD(Stub_Scall, testCall2); +PHP_METHOD(Stub_Scall, testCall3); +PHP_METHOD(Stub_Scall, testCall4); +PHP_METHOD(Stub_Scall, testCall5); +PHP_METHOD(Stub_Scall, testCall6); +PHP_METHOD(Stub_Scall, testCall7); +PHP_METHOD(Stub_Scall, testCall8); +PHP_METHOD(Stub_Scall, testCall9); +PHP_METHOD(Stub_Scall, testCall10); +PHP_METHOD(Stub_Scall, testCall11); +PHP_METHOD(Stub_Scall, testCall12); +PHP_METHOD(Stub_Scall, testCall13); +PHP_METHOD(Stub_Scall, testCall14); +PHP_METHOD(Stub_Scall, testCall15); +PHP_METHOD(Stub_Scall, testMethod16); +PHP_METHOD(Stub_Scall, testCall17); +PHP_METHOD(Stub_Scall, testCall18); +PHP_METHOD(Stub_Scall, testMethodStatic); +PHP_METHOD(Stub_Scall, interpolatedStaticReturn); +PHP_METHOD(Stub_Scall, interpolatedStaticEcho); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod1, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod1, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod2, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod2, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod3, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod3, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testmethod4, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testmethod5, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testmethod6, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_stub_scall_testmethod7, 0, 0, stdClass, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod7, 0, 0, IS_OBJECT, "stdClass", 0) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall4, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall5, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall6, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall10, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall11, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall12, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod16, 0, 2, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod16, 0, 2, IS_LONG, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall17, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, k, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, k) +#endif + ZEND_ARG_INFO(0, p) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall18, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, k, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, k) +#endif + ZEND_ARG_INFO(0, p) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethodstatic, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethodstatic, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_interpolatedstaticreturn, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_interpolatedstaticreturn, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70100 +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_interpolatedstaticecho, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_interpolatedstaticecho, 0, 0, IS_VOID, NULL, 0) +#endif +ZEND_END_ARG_INFO() +#else +#define arginfo_stub_scall_interpolatedstaticecho NULL +#endif + +ZEPHIR_INIT_FUNCS(stub_scall_method_entry) { + PHP_ME(Stub_Scall, testMethod1, arginfo_stub_scall_testmethod1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testMethod2, arginfo_stub_scall_testmethod2, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED) + PHP_ME(Stub_Scall, testMethod3, arginfo_stub_scall_testmethod3, ZEND_ACC_STATIC|ZEND_ACC_PRIVATE) + PHP_ME(Stub_Scall, testMethod4, arginfo_stub_scall_testmethod4, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testMethod5, arginfo_stub_scall_testmethod5, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED) + PHP_ME(Stub_Scall, testMethod6, arginfo_stub_scall_testmethod6, ZEND_ACC_STATIC|ZEND_ACC_PRIVATE) + PHP_ME(Stub_Scall, testMethod7, arginfo_stub_scall_testmethod7, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall4, arginfo_stub_scall_testcall4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall5, arginfo_stub_scall_testcall5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall6, arginfo_stub_scall_testcall6, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall7, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall8, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall9, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall10, arginfo_stub_scall_testcall10, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall11, arginfo_stub_scall_testcall11, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall12, arginfo_stub_scall_testcall12, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall13, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall14, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testCall15, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, testMethod16, arginfo_stub_scall_testmethod16, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Scall, testCall17, arginfo_stub_scall_testcall17, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Scall, testCall18, arginfo_stub_scall_testcall18, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Scall, testMethodStatic, arginfo_stub_scall_testmethodstatic, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED) + PHP_ME(Stub_Scall, interpolatedStaticReturn, arginfo_stub_scall_interpolatedstaticreturn, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Scall, interpolatedStaticEcho, arginfo_stub_scall_interpolatedstaticecho, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/scalldynamic.zep.c b/ext/stub/scalldynamic.zep.c similarity index 69% rename from ext/test/scalldynamic.zep.c rename to ext/stub/scalldynamic.zep.c index 33d78d36f4..09dc5c255b 100644 --- a/ext/test/scalldynamic.zep.c +++ b/ext/stub/scalldynamic.zep.c @@ -20,15 +20,15 @@ /** * Static Function calls */ -ZEPHIR_INIT_CLASS(Test_ScallDynamic) { +ZEPHIR_INIT_CLASS(Stub_ScallDynamic) { - ZEPHIR_REGISTER_CLASS_EX(Test, ScallDynamic, test, scalldynamic, test_scallparent_ce, test_scalldynamic_method_entry, 0); + ZEPHIR_REGISTER_CLASS_EX(Stub, ScallDynamic, stub, scalldynamic, stub_scallparent_ce, stub_scalldynamic_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_ScallDynamic, testMethod1) { +PHP_METHOD(Stub_ScallDynamic, testMethod1) { zval *this_ptr = getThis(); @@ -37,7 +37,7 @@ PHP_METHOD(Test_ScallDynamic, testMethod1) { } -PHP_METHOD(Test_ScallDynamic, testMethod2) { +PHP_METHOD(Stub_ScallDynamic, testMethod2) { zval *this_ptr = getThis(); @@ -46,7 +46,7 @@ PHP_METHOD(Test_ScallDynamic, testMethod2) { } -PHP_METHOD(Test_ScallDynamic, testMethod3) { +PHP_METHOD(Stub_ScallDynamic, testMethod3) { zval *this_ptr = getThis(); @@ -55,7 +55,7 @@ PHP_METHOD(Test_ScallDynamic, testMethod3) { } -PHP_METHOD(Test_ScallDynamic, selfDynamicCall1) { +PHP_METHOD(Stub_ScallDynamic, selfDynamicCall1) { zend_long ZEPHIR_LAST_CALL_STATUS; zval *methodName, methodName_sub; diff --git a/ext/stub/scalldynamic.zep.h b/ext/stub/scalldynamic.zep.h new file mode 100644 index 0000000000..0ae9d47dbe --- /dev/null +++ b/ext/stub/scalldynamic.zep.h @@ -0,0 +1,46 @@ + +extern zend_class_entry *stub_scalldynamic_ce; + +ZEPHIR_INIT_CLASS(Stub_ScallDynamic); + +PHP_METHOD(Stub_ScallDynamic, testMethod1); +PHP_METHOD(Stub_ScallDynamic, testMethod2); +PHP_METHOD(Stub_ScallDynamic, testMethod3); +PHP_METHOD(Stub_ScallDynamic, selfDynamicCall1); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_testmethod1, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_testmethod1, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_testmethod2, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_testmethod2, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_testmethod3, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_testmethod3, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_selfdynamiccall1, 0, 1, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_selfdynamiccall1, 0, 1, IS_STRING, NULL, 0) +#endif + ZEND_ARG_INFO(0, methodName) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_scalldynamic_method_entry) { + PHP_ME(Stub_ScallDynamic, testMethod1, arginfo_stub_scalldynamic_testmethod1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_ME(Stub_ScallDynamic, testMethod2, arginfo_stub_scalldynamic_testmethod2, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED) + PHP_ME(Stub_ScallDynamic, testMethod3, arginfo_stub_scalldynamic_testmethod3, ZEND_ACC_STATIC|ZEND_ACC_PRIVATE) + PHP_ME(Stub_ScallDynamic, selfDynamicCall1, arginfo_stub_scalldynamic_selfdynamiccall1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/scallexternal.zep.c b/ext/stub/scallexternal.zep.c similarity index 73% rename from ext/test/scallexternal.zep.c rename to ext/stub/scallexternal.zep.c index c29c523777..a439ae1dbb 100644 --- a/ext/test/scallexternal.zep.c +++ b/ext/stub/scallexternal.zep.c @@ -21,17 +21,17 @@ /** * Call external static functions */ -ZEPHIR_INIT_CLASS(Test_ScallExternal) { +ZEPHIR_INIT_CLASS(Stub_ScallExternal) { - ZEPHIR_REGISTER_CLASS(Test, ScallExternal, test, scallexternal, test_scallexternal_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, ScallExternal, stub, scallexternal, stub_scallexternal_method_entry, 0); - zend_declare_property_null(test_scallexternal_ce, SL("sproperty"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); + zend_declare_property_null(stub_scallexternal_ce, SL("sproperty"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC); return SUCCESS; } -PHP_METHOD(Test_ScallExternal, testCall1) { +PHP_METHOD(Stub_ScallExternal, testCall1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -41,13 +41,13 @@ PHP_METHOD(Test_ScallExternal, testCall1) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_CE_STATIC(test_scall_ce, "testmethod1", &_0, 0); + ZEPHIR_RETURN_CALL_CE_STATIC(stub_scall_ce, "testmethod1", &_0, 0); zephir_check_call_status(); RETURN_MM(); } -PHP_METHOD(Test_ScallExternal, testCall2) { +PHP_METHOD(Stub_ScallExternal, testCall2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -63,13 +63,13 @@ PHP_METHOD(Test_ScallExternal, testCall2) { - ZEPHIR_RETURN_CALL_CE_STATIC(test_scall_ce, "testmethod4", &_0, 0, a, b); + ZEPHIR_RETURN_CALL_CE_STATIC(stub_scall_ce, "testmethod4", &_0, 0, a, b); zephir_check_call_status(); RETURN_MM(); } -PHP_METHOD(Test_ScallExternal, testMethod3) { +PHP_METHOD(Stub_ScallExternal, testMethod3) { zval *a_param = NULL, *b_param = NULL; long a, b; diff --git a/ext/stub/scallexternal.zep.h b/ext/stub/scallexternal.zep.h new file mode 100644 index 0000000000..a65bdaf9c1 --- /dev/null +++ b/ext/stub/scallexternal.zep.h @@ -0,0 +1,33 @@ + +extern zend_class_entry *stub_scallexternal_ce; + +ZEPHIR_INIT_CLASS(Stub_ScallExternal); + +PHP_METHOD(Stub_ScallExternal, testCall1); +PHP_METHOD(Stub_ScallExternal, testCall2); +PHP_METHOD(Stub_ScallExternal, testMethod3); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scallexternal_testcall2, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, b) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scallexternal_testmethod3, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_scallexternal_method_entry) { + PHP_ME(Stub_ScallExternal, testCall1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ScallExternal, testCall2, arginfo_stub_scallexternal_testcall2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_ScallExternal, testMethod3, arginfo_stub_scallexternal_testmethod3, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/scallparent.zep.c b/ext/stub/scallparent.zep.c similarity index 73% rename from ext/test/scallparent.zep.c rename to ext/stub/scallparent.zep.c index 6c756f2104..b5177bc091 100644 --- a/ext/test/scallparent.zep.c +++ b/ext/stub/scallparent.zep.c @@ -20,15 +20,15 @@ /** * Static Function calls */ -ZEPHIR_INIT_CLASS(Test_ScallParent) { +ZEPHIR_INIT_CLASS(Stub_ScallParent) { - ZEPHIR_REGISTER_CLASS(Test, ScallParent, test, scallparent, test_scallparent_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, ScallParent, stub, scallparent, stub_scallparent_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_ScallParent, testMethod1) { +PHP_METHOD(Stub_ScallParent, testMethod1) { zval *this_ptr = getThis(); @@ -37,7 +37,7 @@ PHP_METHOD(Test_ScallParent, testMethod1) { } -PHP_METHOD(Test_ScallParent, testMethod2) { +PHP_METHOD(Stub_ScallParent, testMethod2) { zval *this_ptr = getThis(); @@ -46,7 +46,7 @@ PHP_METHOD(Test_ScallParent, testMethod2) { } -PHP_METHOD(Test_ScallParent, testCallStatic) { +PHP_METHOD(Stub_ScallParent, testCallStatic) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -61,7 +61,7 @@ PHP_METHOD(Test_ScallParent, testCallStatic) { } -PHP_METHOD(Test_ScallParent, testMethodStatic) { +PHP_METHOD(Stub_ScallParent, testMethodStatic) { zval *this_ptr = getThis(); diff --git a/ext/stub/scallparent.zep.h b/ext/stub/scallparent.zep.h new file mode 100644 index 0000000000..719c55249f --- /dev/null +++ b/ext/stub/scallparent.zep.h @@ -0,0 +1,45 @@ + +extern zend_class_entry *stub_scallparent_ce; + +ZEPHIR_INIT_CLASS(Stub_ScallParent); + +PHP_METHOD(Stub_ScallParent, testMethod1); +PHP_METHOD(Stub_ScallParent, testMethod2); +PHP_METHOD(Stub_ScallParent, testCallStatic); +PHP_METHOD(Stub_ScallParent, testMethodStatic); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testmethod1, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testmethod1, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testmethod2, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testmethod2, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testcallstatic, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testcallstatic, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testmethodstatic, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testmethodstatic, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_scallparent_method_entry) { + PHP_ME(Stub_ScallParent, testMethod1, arginfo_stub_scallparent_testmethod1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_ME(Stub_ScallParent, testMethod2, arginfo_stub_scallparent_testmethod2, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED) + PHP_ME(Stub_ScallParent, testCallStatic, arginfo_stub_scallparent_testcallstatic, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) + PHP_ME(Stub_ScallParent, testMethodStatic, arginfo_stub_scallparent_testmethodstatic, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED) + PHP_FE_END +}; diff --git a/ext/test/scope.zep.c b/ext/stub/scope.zep.c similarity index 92% rename from ext/test/scope.zep.c rename to ext/stub/scope.zep.c index 3624001319..e3ea7977db 100644 --- a/ext/test/scope.zep.c +++ b/ext/stub/scope.zep.c @@ -20,15 +20,15 @@ #include "kernel/array.h" -ZEPHIR_INIT_CLASS(Test_Scope) { +ZEPHIR_INIT_CLASS(Stub_Scope) { - ZEPHIR_REGISTER_CLASS(Test, Scope, test, scope, test_scope_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Scope, stub, scope, stub_scope_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Scope, getStr) { +PHP_METHOD(Stub_Scope, getStr) { zval *this_ptr = getThis(); @@ -37,7 +37,7 @@ PHP_METHOD(Test_Scope, getStr) { } -PHP_METHOD(Test_Scope, getDyStr) { +PHP_METHOD(Stub_Scope, getDyStr) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *g_param = NULL, _0; @@ -59,7 +59,7 @@ PHP_METHOD(Test_Scope, getDyStr) { } -PHP_METHOD(Test_Scope, test1) { +PHP_METHOD(Stub_Scope, test1) { zval ret, k, k$$3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -88,7 +88,7 @@ PHP_METHOD(Test_Scope, test1) { } -PHP_METHOD(Test_Scope, test2) { +PHP_METHOD(Stub_Scope, test2) { zend_bool _0; zval k, c, _5, _3$$3, _4$$3; @@ -139,7 +139,7 @@ PHP_METHOD(Test_Scope, test2) { } -PHP_METHOD(Test_Scope, test3) { +PHP_METHOD(Stub_Scope, test3) { zend_bool _0; zval k, c, str$$3; diff --git a/ext/stub/scope.zep.h b/ext/stub/scope.zep.h new file mode 100644 index 0000000000..8e57edbfaa --- /dev/null +++ b/ext/stub/scope.zep.h @@ -0,0 +1,27 @@ + +extern zend_class_entry *stub_scope_ce; + +ZEPHIR_INIT_CLASS(Stub_Scope); + +PHP_METHOD(Stub_Scope, getStr); +PHP_METHOD(Stub_Scope, getDyStr); +PHP_METHOD(Stub_Scope, test1); +PHP_METHOD(Stub_Scope, test2); +PHP_METHOD(Stub_Scope, test3); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scope_getdystr, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, g, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, g) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_scope_method_entry) { + PHP_ME(Stub_Scope, getStr, NULL, ZEND_ACC_PRIVATE|ZEND_ACC_STATIC) + PHP_ME(Stub_Scope, getDyStr, arginfo_stub_scope_getdystr, ZEND_ACC_PRIVATE|ZEND_ACC_STATIC) + PHP_ME(Stub_Scope, test1, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Scope, test2, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_Scope, test3, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/sort.zep.c b/ext/stub/sort.zep.c similarity index 85% rename from ext/test/sort.zep.c rename to ext/stub/sort.zep.c index 37f84ff89b..6b57bc847d 100644 --- a/ext/test/sort.zep.c +++ b/ext/stub/sort.zep.c @@ -19,15 +19,15 @@ #include "kernel/object.h" -ZEPHIR_INIT_CLASS(Test_Sort) { +ZEPHIR_INIT_CLASS(Stub_Sort) { - ZEPHIR_REGISTER_CLASS(Test, Sort, test, sort, test_sort_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Sort, stub, sort, stub_sort_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Sort, quick) { +PHP_METHOD(Stub_Sort, quick) { zend_bool _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -60,7 +60,7 @@ PHP_METHOD(Test_Sort, quick) { RETURN_CTOR(&arr); } ZEPHIR_OBS_VAR(&_0); - zephir_array_fetch_long(&_0, &arr, 0, PH_NOISY, "test/sort.zep", 18); + zephir_array_fetch_long(&_0, &arr, 0, PH_NOISY, "stub/sort.zep", 18); pivot = zephir_get_intval(&_0); ZEPHIR_INIT_VAR(&left); array_init(&left); @@ -81,16 +81,16 @@ PHP_METHOD(Test_Sort, quick) { } i = _2; ZEPHIR_OBS_NVAR(&_4$$4); - zephir_array_fetch_long(&_4$$4, &arr, i, PH_NOISY, "test/sort.zep", 23); + zephir_array_fetch_long(&_4$$4, &arr, i, PH_NOISY, "stub/sort.zep", 23); item = zephir_get_intval(&_4$$4); if (item < pivot) { ZEPHIR_INIT_NVAR(&_5$$5); ZVAL_LONG(&_5$$5, item); - zephir_array_append(&left, &_5$$5, PH_SEPARATE, "test/sort.zep", 25); + zephir_array_append(&left, &_5$$5, PH_SEPARATE, "stub/sort.zep", 25); } else { ZEPHIR_INIT_NVAR(&_6$$6); ZVAL_LONG(&_6$$6, item); - zephir_array_append(&right, &_6$$6, PH_SEPARATE, "test/sort.zep", 27); + zephir_array_append(&right, &_6$$6, PH_SEPARATE, "stub/sort.zep", 27); } } } diff --git a/ext/stub/sort.zep.h b/ext/stub/sort.zep.h new file mode 100644 index 0000000000..30d2b943bd --- /dev/null +++ b/ext/stub/sort.zep.h @@ -0,0 +1,15 @@ + +extern zend_class_entry *stub_sort_ce; + +ZEPHIR_INIT_CLASS(Stub_Sort); + +PHP_METHOD(Stub_Sort, quick); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_sort_quick, 0, 0, 1) + ZEND_ARG_ARRAY_INFO(0, arr, 0) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_sort_method_entry) { + PHP_ME(Stub_Sort, quick, arginfo_stub_sort_quick, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/spectralnorm.zep.c b/ext/stub/spectralnorm.zep.c similarity index 96% rename from ext/test/spectralnorm.zep.c rename to ext/stub/spectralnorm.zep.c index 14e9dea336..4f87fabd47 100644 --- a/ext/test/spectralnorm.zep.c +++ b/ext/stub/spectralnorm.zep.c @@ -25,15 +25,15 @@ * * @see http://mathworld.wolfram.com/SpectralNorm.html */ -ZEPHIR_INIT_CLASS(Test_SpectralNorm) { +ZEPHIR_INIT_CLASS(Stub_SpectralNorm) { - ZEPHIR_REGISTER_CLASS(Test, SpectralNorm, test, spectralnorm, test_spectralnorm_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, SpectralNorm, stub, spectralnorm, stub_spectralnorm_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_SpectralNorm, Ax) { +PHP_METHOD(Stub_SpectralNorm, Ax) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *i, i_sub, *j, j_sub, _0, _1; @@ -57,7 +57,7 @@ PHP_METHOD(Test_SpectralNorm, Ax) { } -PHP_METHOD(Test_SpectralNorm, Au) { +PHP_METHOD(Stub_SpectralNorm, Au) { zend_bool _0, _3$$3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -133,7 +133,7 @@ PHP_METHOD(Test_SpectralNorm, Au) { } -PHP_METHOD(Test_SpectralNorm, Atu) { +PHP_METHOD(Stub_SpectralNorm, Atu) { zend_bool _0, _3$$3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -209,7 +209,7 @@ PHP_METHOD(Test_SpectralNorm, Atu) { } -PHP_METHOD(Test_SpectralNorm, AtAu) { +PHP_METHOD(Stub_SpectralNorm, AtAu) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -234,7 +234,7 @@ PHP_METHOD(Test_SpectralNorm, AtAu) { } -PHP_METHOD(Test_SpectralNorm, process) { +PHP_METHOD(Stub_SpectralNorm, process) { zend_bool _1, _7, _12; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/spectralnorm.zep.h b/ext/stub/spectralnorm.zep.h new file mode 100644 index 0000000000..20ac2135c7 --- /dev/null +++ b/ext/stub/spectralnorm.zep.h @@ -0,0 +1,59 @@ + +extern zend_class_entry *stub_spectralnorm_ce; + +ZEPHIR_INIT_CLASS(Stub_SpectralNorm); + +PHP_METHOD(Stub_SpectralNorm, Ax); +PHP_METHOD(Stub_SpectralNorm, Au); +PHP_METHOD(Stub_SpectralNorm, Atu); +PHP_METHOD(Stub_SpectralNorm, AtAu); +PHP_METHOD(Stub_SpectralNorm, process); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spectralnorm_ax, 0, 0, 2) + ZEND_ARG_INFO(0, i) + ZEND_ARG_INFO(0, j) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spectralnorm_au, 0, 0, 3) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, n) +#endif + ZEND_ARG_OBJ_INFO(0, u, SplFixedArray, 0) + ZEND_ARG_OBJ_INFO(0, v, SplFixedArray, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spectralnorm_atu, 0, 0, 3) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, n) +#endif + ZEND_ARG_OBJ_INFO(0, u, SplFixedArray, 0) + ZEND_ARG_OBJ_INFO(0, v, SplFixedArray, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spectralnorm_atau, 0, 0, 4) + ZEND_ARG_INFO(0, n) + ZEND_ARG_INFO(0, u) + ZEND_ARG_INFO(0, v) + ZEND_ARG_INFO(0, w) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spectralnorm_process, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, n) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_spectralnorm_method_entry) { + PHP_ME(Stub_SpectralNorm, Ax, arginfo_stub_spectralnorm_ax, ZEND_ACC_PRIVATE) + PHP_ME(Stub_SpectralNorm, Au, arginfo_stub_spectralnorm_au, ZEND_ACC_PRIVATE) + PHP_ME(Stub_SpectralNorm, Atu, arginfo_stub_spectralnorm_atu, ZEND_ACC_PRIVATE) + PHP_ME(Stub_SpectralNorm, AtAu, arginfo_stub_spectralnorm_atau, ZEND_ACC_PRIVATE) + PHP_ME(Stub_SpectralNorm, process, arginfo_stub_spectralnorm_process, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/spropertyaccess.zep.c b/ext/stub/spropertyaccess.zep.c similarity index 69% rename from ext/test/spropertyaccess.zep.c rename to ext/stub/spropertyaccess.zep.c index d87f0e1da0..e4f4723a11 100644 --- a/ext/test/spropertyaccess.zep.c +++ b/ext/stub/spropertyaccess.zep.c @@ -23,31 +23,31 @@ /** * Class with constructor + params */ -ZEPHIR_INIT_CLASS(Test_SPropertyAccess) { +ZEPHIR_INIT_CLASS(Stub_SPropertyAccess) { - ZEPHIR_REGISTER_CLASS(Test, SPropertyAccess, test, spropertyaccess, test_spropertyaccess_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, SPropertyAccess, stub, spropertyaccess, stub_spropertyaccess_method_entry, 0); - zend_declare_property_null(test_spropertyaccess_ce, SL("a"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_null(stub_spropertyaccess_ce, SL("a"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); - zend_declare_property_null(test_spropertyaccess_ce, SL("b"), ZEND_ACC_PRIVATE|ZEND_ACC_STATIC); + zend_declare_property_null(stub_spropertyaccess_ce, SL("b"), ZEND_ACC_PRIVATE|ZEND_ACC_STATIC); - zend_declare_property_string(test_spropertyaccess_ce, SL("delimiter"), ".", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_string(stub_spropertyaccess_ce, SL("delimiter"), ".", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); - zend_declare_property_string(test_spropertyaccess_ce, SL("_delimiterWithUnderscore"), ".", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_string(stub_spropertyaccess_ce, SL("_delimiterWithUnderscore"), ".", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); - zend_declare_property_string(test_spropertyaccess_ce, SL("stringVar"), "", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_string(stub_spropertyaccess_ce, SL("stringVar"), "", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); - zend_declare_property_long(test_spropertyaccess_ce, SL("intVar"), 0, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_long(stub_spropertyaccess_ce, SL("intVar"), 0, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); - zend_declare_property_double(test_spropertyaccess_ce, SL("doubleVar"), 0.0, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_double(stub_spropertyaccess_ce, SL("doubleVar"), 0.0, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); - zend_declare_property_null(test_spropertyaccess_ce, SL("arrayVar"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); + zend_declare_property_null(stub_spropertyaccess_ce, SL("arrayVar"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC); return SUCCESS; } -PHP_METHOD(Test_SPropertyAccess, __construct) { +PHP_METHOD(Stub_SPropertyAccess, __construct) { zval _0, _1, _2, _3, _4; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -64,24 +64,24 @@ PHP_METHOD(Test_SPropertyAccess, __construct) { ZEPHIR_INIT_ZVAL_NREF(_0); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "abc"); - zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("a"), &_0); - zephir_read_static_property_ce(&_0, test_spropertyaccess_ce, SL("a"), PH_NOISY_CC | PH_READONLY); + zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("a"), &_0); + zephir_read_static_property_ce(&_0, stub_spropertyaccess_ce, SL("a"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1, 0); ZVAL_LONG(&_2, 1); ZEPHIR_INIT_VAR(&_3); zephir_substr(&_3, &_0, 0 , 1 , 0); - zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("b"), &_3); + zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("b"), &_3); ZEPHIR_OBS_VAR(&_4); - zephir_read_static_property_ce(&_4, test_spropertyaccess_ce, SL("b"), PH_NOISY_CC); - zephir_update_static_property_ce(test_scallexternal_ce, ZEND_STRL("sproperty"), &_4); + zephir_read_static_property_ce(&_4, stub_spropertyaccess_ce, SL("b"), PH_NOISY_CC); + zephir_update_static_property_ce(stub_scallexternal_ce, ZEND_STRL("sproperty"), &_4); ZEPHIR_OBS_NVAR(&_4); - zephir_read_static_property_ce(&_4, test_scallexternal_ce, SL("sproperty"), PH_NOISY_CC); - zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("b"), &_4); + zephir_read_static_property_ce(&_4, stub_scallexternal_ce, SL("sproperty"), PH_NOISY_CC); + zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("b"), &_4); ZEPHIR_MM_RESTORE(); } -PHP_METHOD(Test_SPropertyAccess, testArgumentWithUnderscore) { +PHP_METHOD(Stub_SPropertyAccess, testArgumentWithUnderscore) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *delimiter = NULL, delimiter_sub, __$null; @@ -103,14 +103,14 @@ PHP_METHOD(Test_SPropertyAccess, testArgumentWithUnderscore) { if (ZEPHIR_IS_EMPTY(delimiter)) { ZEPHIR_OBS_NVAR(delimiter); - zephir_read_static_property_ce(delimiter, test_spropertyaccess_ce, SL("_delimiterWithUnderscore"), PH_NOISY_CC); + zephir_read_static_property_ce(delimiter, stub_spropertyaccess_ce, SL("_delimiterWithUnderscore"), PH_NOISY_CC); } RETVAL_ZVAL(delimiter, 1, 0); RETURN_MM(); } -PHP_METHOD(Test_SPropertyAccess, testArgument) { +PHP_METHOD(Stub_SPropertyAccess, testArgument) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *delimiter = NULL, delimiter_sub, __$null, _0$$3; @@ -133,7 +133,7 @@ PHP_METHOD(Test_SPropertyAccess, testArgument) { if (ZEPHIR_IS_EMPTY(delimiter)) { ZEPHIR_OBS_VAR(&_0$$3); - zephir_read_static_property_ce(&_0$$3, test_spropertyaccess_ce, SL("delimiter"), PH_NOISY_CC); + zephir_read_static_property_ce(&_0$$3, stub_spropertyaccess_ce, SL("delimiter"), PH_NOISY_CC); ZEPHIR_CPY_WRT(delimiter, &_0$$3); } RETVAL_ZVAL(delimiter, 1, 0); @@ -141,7 +141,7 @@ PHP_METHOD(Test_SPropertyAccess, testArgument) { } -PHP_METHOD(Test_SPropertyAccess, mutateStringVarInsideCycle) { +PHP_METHOD(Stub_SPropertyAccess, mutateStringVarInsideCycle) { zend_long _1, _2; zend_bool _0; @@ -173,13 +173,13 @@ PHP_METHOD(Test_SPropertyAccess, mutateStringVarInsideCycle) { ZEPHIR_INIT_NVAR(&i); ZVAL_STRING(&i, " + "); ZEPHIR_OBS_NVAR(&_3$$3); - zephir_read_static_property_ce(&_3$$3, test_spropertyaccess_ce, SL("stringVar"), PH_NOISY_CC); + zephir_read_static_property_ce(&_3$$3, stub_spropertyaccess_ce, SL("stringVar"), PH_NOISY_CC); ZEPHIR_INIT_NVAR(&_4$$3); ZEPHIR_CONCAT_VV(&_4$$3, &_3$$3, &i); - zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("stringVar"), &_4$$3); + zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("stringVar"), &_4$$3); } } - zephir_read_static_property_ce(&_5, test_spropertyaccess_ce, SL("stringVar"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_5, stub_spropertyaccess_ce, SL("stringVar"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_5); } @@ -187,7 +187,7 @@ PHP_METHOD(Test_SPropertyAccess, mutateStringVarInsideCycle) { /** * @see https://github.com/phalcon/zephir/issues/1494 */ -PHP_METHOD(Test_SPropertyAccess, mutateIntVarInsideCycle) { +PHP_METHOD(Stub_SPropertyAccess, mutateIntVarInsideCycle) { zval _4, _3$$3; zend_bool _0; @@ -215,10 +215,10 @@ PHP_METHOD(Test_SPropertyAccess, mutateIntVarInsideCycle) { i = 42; ZEPHIR_INIT_ZVAL_NREF(_3$$3); ZVAL_LONG(&_3$$3, i); - zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("intVar"), &_3$$3); + zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("intVar"), &_3$$3); } } - zephir_read_static_property_ce(&_4, test_spropertyaccess_ce, SL("intVar"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_4, stub_spropertyaccess_ce, SL("intVar"), PH_NOISY_CC | PH_READONLY); RETURN_CTORW(&_4); } @@ -226,7 +226,7 @@ PHP_METHOD(Test_SPropertyAccess, mutateIntVarInsideCycle) { /** * @see https://github.com/phalcon/zephir/issues/1494 */ -PHP_METHOD(Test_SPropertyAccess, mutateDoubleVarInsideCycle) { +PHP_METHOD(Stub_SPropertyAccess, mutateDoubleVarInsideCycle) { zval _4, _3$$3; zend_long _1, _2; @@ -255,15 +255,15 @@ PHP_METHOD(Test_SPropertyAccess, mutateDoubleVarInsideCycle) { i = 3.14; ZEPHIR_INIT_ZVAL_NREF(_3$$3); ZVAL_DOUBLE(&_3$$3, i); - zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("doubleVar"), &_3$$3); + zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("doubleVar"), &_3$$3); } } - zephir_read_static_property_ce(&_4, test_spropertyaccess_ce, SL("doubleVar"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_4, stub_spropertyaccess_ce, SL("doubleVar"), PH_NOISY_CC | PH_READONLY); RETURN_CTORW(&_4); } -PHP_METHOD(Test_SPropertyAccess, mutateArrayVarInsideCycle) { +PHP_METHOD(Stub_SPropertyAccess, mutateArrayVarInsideCycle) { zend_long _1, _2; zend_bool _0; @@ -297,18 +297,18 @@ PHP_METHOD(Test_SPropertyAccess, mutateArrayVarInsideCycle) { ZEPHIR_INIT_NVAR(&j); zephir_create_array(&j, 1, 0); zephir_array_update_zval(&j, &i, &i, PH_COPY); - zephir_read_static_property_ce(&_3$$3, test_spropertyaccess_ce, SL("arrayVar"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_3$$3, stub_spropertyaccess_ce, SL("arrayVar"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_NVAR(&_4$$3); zephir_add_function(&_4$$3, &_3$$3, &j); - zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("arrayVar"), &_4$$3); + zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("arrayVar"), &_4$$3); } } - zephir_read_static_property_ce(&_5, test_spropertyaccess_ce, SL("arrayVar"), PH_NOISY_CC | PH_READONLY); + zephir_read_static_property_ce(&_5, stub_spropertyaccess_ce, SL("arrayVar"), PH_NOISY_CC | PH_READONLY); RETURN_CTOR(&_5); } -void zephir_init_static_properties_Test_SPropertyAccess(TSRMLS_D) { +void zephir_init_static_properties_Stub_SPropertyAccess(TSRMLS_D) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -318,7 +318,7 @@ void zephir_init_static_properties_Test_SPropertyAccess(TSRMLS_D) { ZEPHIR_INIT_VAR(&_0); array_init(&_0); - zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("arrayVar"), &_0); + zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("arrayVar"), &_0); ZEPHIR_MM_RESTORE(); } diff --git a/ext/stub/spropertyaccess.zep.h b/ext/stub/spropertyaccess.zep.h new file mode 100644 index 0000000000..f5b4088d89 --- /dev/null +++ b/ext/stub/spropertyaccess.zep.h @@ -0,0 +1,60 @@ + +extern zend_class_entry *stub_spropertyaccess_ce; + +ZEPHIR_INIT_CLASS(Stub_SPropertyAccess); + +PHP_METHOD(Stub_SPropertyAccess, __construct); +PHP_METHOD(Stub_SPropertyAccess, testArgumentWithUnderscore); +PHP_METHOD(Stub_SPropertyAccess, testArgument); +PHP_METHOD(Stub_SPropertyAccess, mutateStringVarInsideCycle); +PHP_METHOD(Stub_SPropertyAccess, mutateIntVarInsideCycle); +PHP_METHOD(Stub_SPropertyAccess, mutateDoubleVarInsideCycle); +PHP_METHOD(Stub_SPropertyAccess, mutateArrayVarInsideCycle); +void zephir_init_static_properties_Stub_SPropertyAccess(TSRMLS_D); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spropertyaccess_testargumentwithunderscore, 0, 0, 0) + ZEND_ARG_INFO(0, delimiter) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spropertyaccess_testargument, 0, 0, 0) + ZEND_ARG_INFO(0, delimiter) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutatestringvarinsidecycle, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutatestringvarinsidecycle, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutateintvarinsidecycle, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutateintvarinsidecycle, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutatedoublevarinsidecycle, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutatedoublevarinsidecycle, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutatearrayvarinsidecycle, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutatearrayvarinsidecycle, 0, 0, IS_ARRAY, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_spropertyaccess_method_entry) { + PHP_ME(Stub_SPropertyAccess, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(Stub_SPropertyAccess, testArgumentWithUnderscore, arginfo_stub_spropertyaccess_testargumentwithunderscore, ZEND_ACC_PUBLIC) + PHP_ME(Stub_SPropertyAccess, testArgument, arginfo_stub_spropertyaccess_testargument, ZEND_ACC_PUBLIC) + PHP_ME(Stub_SPropertyAccess, mutateStringVarInsideCycle, arginfo_stub_spropertyaccess_mutatestringvarinsidecycle, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_SPropertyAccess, mutateIntVarInsideCycle, arginfo_stub_spropertyaccess_mutateintvarinsidecycle, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_SPropertyAccess, mutateDoubleVarInsideCycle, arginfo_stub_spropertyaccess_mutatedoublevarinsidecycle, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_ME(Stub_SPropertyAccess, mutateArrayVarInsideCycle, arginfo_stub_spropertyaccess_mutatearrayvarinsidecycle, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + PHP_FE_END +}; diff --git a/ext/test/statements.zep.c b/ext/stub/statements.zep.c similarity index 64% rename from ext/test/statements.zep.c rename to ext/stub/statements.zep.c index 869286cfb0..8cb20cec73 100644 --- a/ext/test/statements.zep.c +++ b/ext/stub/statements.zep.c @@ -22,32 +22,32 @@ #include "kernel/exception.h" -ZEPHIR_INIT_CLASS(Test_Statements) { +ZEPHIR_INIT_CLASS(Stub_Statements) { - ZEPHIR_REGISTER_CLASS(Test, Statements, test, statements, test_statements_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Statements, stub, statements, stub_statements_method_entry, 0); - zend_declare_property_string(test_statements_ce, SL("tmp1"), "test", ZEND_ACC_PUBLIC); + zend_declare_property_string(stub_statements_ce, SL("tmp1"), "test", ZEND_ACC_PUBLIC); - zend_declare_property_string(test_statements_ce, SL("tmp2"), "test string", ZEND_ACC_PUBLIC); + zend_declare_property_string(stub_statements_ce, SL("tmp2"), "test string", ZEND_ACC_PUBLIC); /** * @issue https://github.com/phalcon/zephir/issues/544 */ - zend_declare_property_long(test_statements_ce, SL("totalSteps"), 100, ZEND_ACC_PRIVATE); + zend_declare_property_long(stub_statements_ce, SL("totalSteps"), 100, ZEND_ACC_PRIVATE); - zend_declare_property_long(test_statements_ce, SL("width"), 100, ZEND_ACC_PRIVATE); + zend_declare_property_long(stub_statements_ce, SL("width"), 100, ZEND_ACC_PRIVATE); - zend_declare_property_string(test_statements_ce, SL("filledChar"), "=", ZEND_ACC_PRIVATE); + zend_declare_property_string(stub_statements_ce, SL("filledChar"), "=", ZEND_ACC_PRIVATE); - zend_declare_property_string(test_statements_ce, SL("unfilledChar"), ".", ZEND_ACC_PRIVATE); + zend_declare_property_string(stub_statements_ce, SL("unfilledChar"), ".", ZEND_ACC_PRIVATE); - zend_declare_property_string(test_statements_ce, SL("arrow"), ">", ZEND_ACC_PRIVATE); + zend_declare_property_string(stub_statements_ce, SL("arrow"), ">", ZEND_ACC_PRIVATE); return SUCCESS; } -PHP_METHOD(Test_Statements, testPropertyAcccessAvoidTmpReuse) { +PHP_METHOD(Stub_Statements, testPropertyAcccessAvoidTmpReuse) { zval result1, result2, result3, result4, _0, _1, _2, _3, _4, _5, _6, _7; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -68,27 +68,27 @@ PHP_METHOD(Test_Statements, testPropertyAcccessAvoidTmpReuse) { ZEPHIR_MM_GROW(); - zephir_read_property(&_0, this_ptr, SL("tmp2"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_1, this_ptr, SL("tmp1"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("tmp2"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_1, this_ptr, ZEND_STRL("tmp1"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&result1); zephir_fast_strpos(&result1, &_0, &_1, 0 ); - zephir_read_property(&_2, this_ptr, SL("tmp2"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_3, this_ptr, SL("tmp1"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_2, this_ptr, ZEND_STRL("tmp2"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_3, this_ptr, ZEND_STRL("tmp1"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&result2); zephir_fast_strpos(&result2, &_2, &_3, 0 ); - zephir_read_property(&_4, this_ptr, SL("tmp2"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_5, this_ptr, SL("tmp1"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_4, this_ptr, ZEND_STRL("tmp2"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_5, this_ptr, ZEND_STRL("tmp1"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&result3); zephir_fast_strpos(&result3, &_4, &_5, 0 ); - zephir_read_property(&_6, this_ptr, SL("tmp2"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_7, this_ptr, SL("tmp1"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_6, this_ptr, ZEND_STRL("tmp2"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_7, this_ptr, ZEND_STRL("tmp1"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&result4); zephir_fast_strpos(&result4, &_6, &_7, 0 ); ZEPHIR_MM_RESTORE(); } -PHP_METHOD(Test_Statements, testElseIf) { +PHP_METHOD(Stub_Statements, testElseIf) { zval *num_param = NULL; zend_long num; @@ -112,7 +112,7 @@ PHP_METHOD(Test_Statements, testElseIf) { } -PHP_METHOD(Test_Statements, testElseIf1) { +PHP_METHOD(Stub_Statements, testElseIf1) { zval *num_param = NULL; zend_long num, total; @@ -135,7 +135,7 @@ PHP_METHOD(Test_Statements, testElseIf1) { } -PHP_METHOD(Test_Statements, testElseIf2) { +PHP_METHOD(Stub_Statements, testElseIf2) { zval *num_param = NULL, *total, total_sub; zend_long num; @@ -158,7 +158,7 @@ PHP_METHOD(Test_Statements, testElseIf2) { } -PHP_METHOD(Test_Statements, test544Issue) { +PHP_METHOD(Stub_Statements, test544Issue) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_8 = NULL; @@ -192,34 +192,34 @@ PHP_METHOD(Test_Statements, test544Issue) { step = Z_LVAL_P(step_param); - zephir_read_property(&_0, this_ptr, SL("totalSteps"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_1, this_ptr, SL("totalSteps"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("totalSteps"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_1, this_ptr, ZEND_STRL("totalSteps"), PH_NOISY_CC | PH_READONLY); if (ZEPHIR_GT_LONG(&_0, step)) { - zephir_read_property(&_2$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_3$$3, this_ptr, SL("totalSteps"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_2$$3, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_3$$3, this_ptr, ZEND_STRL("totalSteps"), PH_NOISY_CC | PH_READONLY); filledWidth = (long) ((zephir_safe_div_long_zval(((zephir_get_numberval(&_2$$3) - 1)), &_3$$3) * step)); - zephir_read_property(&_4$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_4$$3, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY); unfilledWidth = (((zephir_get_numberval(&_4$$3) - 1)) - filledWidth); - zephir_read_property(&_5$$3, this_ptr, SL("filledChar"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_5$$3, this_ptr, ZEND_STRL("filledChar"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_6$$3, filledWidth); ZEPHIR_CALL_FUNCTION(&_7$$3, "str_repeat", &_8, 21, &_5$$3, &_6$$3); zephir_check_call_status(); - zephir_read_property(&_6$$3, this_ptr, SL("arrow"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_9$$3, this_ptr, SL("unfilledChar"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_6$$3, this_ptr, ZEND_STRL("arrow"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_9$$3, this_ptr, ZEND_STRL("unfilledChar"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_10$$3, unfilledWidth); ZEPHIR_CALL_FUNCTION(&_11$$3, "str_repeat", &_8, 21, &_9$$3, &_10$$3); zephir_check_call_status(); ZEPHIR_CONCAT_VVV(return_value, &_7$$3, &_6$$3, &_11$$3); RETURN_MM(); } else if (ZEPHIR_IS_LONG_IDENTICAL(&_1, step)) { - zephir_read_property(&_12$$4, this_ptr, SL("filledChar"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_13$$4, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_12$$4, this_ptr, ZEND_STRL("filledChar"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_13$$4, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY); ZEPHIR_RETURN_CALL_FUNCTION("str_repeat", &_8, 21, &_12$$4, &_13$$4); zephir_check_call_status(); RETURN_MM(); } else { - zephir_read_property(&_14$$5, this_ptr, SL("unfilledChar"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_15$$5, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_14$$5, this_ptr, ZEND_STRL("unfilledChar"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_15$$5, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY); ZEPHIR_RETURN_CALL_FUNCTION("str_repeat", &_8, 21, &_14$$5, &_15$$5); zephir_check_call_status(); RETURN_MM(); @@ -227,7 +227,7 @@ PHP_METHOD(Test_Statements, test544Issue) { } -PHP_METHOD(Test_Statements, test544IssueWithVariable) { +PHP_METHOD(Stub_Statements, test544IssueWithVariable) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zephir_fcall_cache_entry *_6 = NULL; @@ -259,33 +259,33 @@ PHP_METHOD(Test_Statements, test544IssueWithVariable) { step = Z_LVAL_P(step_param); - zephir_read_property(&_0, this_ptr, SL("totalSteps"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("totalSteps"), PH_NOISY_CC | PH_READONLY); totalSteps = zephir_get_numberval(&_0); if (step < totalSteps) { - zephir_read_property(&_1$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_1$$3, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY); filledWidth = (long) ((zephir_safe_div_long_long(((zephir_get_numberval(&_1$$3) - 1)), totalSteps) * step)); - zephir_read_property(&_2$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_2$$3, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY); unfilledWidth = (((zephir_get_numberval(&_2$$3) - 1)) - filledWidth); - zephir_read_property(&_3$$3, this_ptr, SL("filledChar"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_3$$3, this_ptr, ZEND_STRL("filledChar"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_4$$3, filledWidth); ZEPHIR_CALL_FUNCTION(&_5$$3, "str_repeat", &_6, 21, &_3$$3, &_4$$3); zephir_check_call_status(); - zephir_read_property(&_4$$3, this_ptr, SL("arrow"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_7$$3, this_ptr, SL("unfilledChar"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_4$$3, this_ptr, ZEND_STRL("arrow"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_7$$3, this_ptr, ZEND_STRL("unfilledChar"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_8$$3, unfilledWidth); ZEPHIR_CALL_FUNCTION(&_9$$3, "str_repeat", &_6, 21, &_7$$3, &_8$$3); zephir_check_call_status(); ZEPHIR_CONCAT_VVV(return_value, &_5$$3, &_4$$3, &_9$$3); RETURN_MM(); } else if (step == totalSteps) { - zephir_read_property(&_10$$4, this_ptr, SL("filledChar"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_11$$4, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_10$$4, this_ptr, ZEND_STRL("filledChar"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_11$$4, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY); ZEPHIR_RETURN_CALL_FUNCTION("str_repeat", &_6, 21, &_10$$4, &_11$$4); zephir_check_call_status(); RETURN_MM(); } else { - zephir_read_property(&_12$$5, this_ptr, SL("unfilledChar"), PH_NOISY_CC | PH_READONLY); - zephir_read_property(&_13$$5, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_12$$5, this_ptr, ZEND_STRL("unfilledChar"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_13$$5, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY); ZEPHIR_RETURN_CALL_FUNCTION("str_repeat", &_6, 21, &_12$$5, &_13$$5); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/stub/statements.zep.h b/ext/stub/statements.zep.h new file mode 100644 index 0000000000..4d04291d24 --- /dev/null +++ b/ext/stub/statements.zep.h @@ -0,0 +1,62 @@ + +extern zend_class_entry *stub_statements_ce; + +ZEPHIR_INIT_CLASS(Stub_Statements); + +PHP_METHOD(Stub_Statements, testPropertyAcccessAvoidTmpReuse); +PHP_METHOD(Stub_Statements, testElseIf); +PHP_METHOD(Stub_Statements, testElseIf1); +PHP_METHOD(Stub_Statements, testElseIf2); +PHP_METHOD(Stub_Statements, test544Issue); +PHP_METHOD(Stub_Statements, test544IssueWithVariable); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_statements_testelseif, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_statements_testelseif1, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_statements_testelseif2, 0, 0, 2) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, num) +#endif + ZEND_ARG_INFO(0, total) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_statements_test544issue, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, step, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, step) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_statements_test544issuewithvariable, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, step, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, step) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_statements_method_entry) { + PHP_ME(Stub_Statements, testPropertyAcccessAvoidTmpReuse, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Statements, testElseIf, arginfo_stub_statements_testelseif, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Statements, testElseIf1, arginfo_stub_statements_testelseif1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Statements, testElseIf2, arginfo_stub_statements_testelseif2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Statements, test544Issue, arginfo_stub_statements_test544issue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Statements, test544IssueWithVariable, arginfo_stub_statements_test544issuewithvariable, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/strings.zep.c b/ext/stub/strings.zep.c similarity index 88% rename from ext/test/strings.zep.c rename to ext/stub/strings.zep.c index 12b01fa19c..d62ac1c451 100644 --- a/ext/test/strings.zep.c +++ b/ext/stub/strings.zep.c @@ -20,15 +20,15 @@ #include "kernel/array.h" -ZEPHIR_INIT_CLASS(Test_Strings) { +ZEPHIR_INIT_CLASS(Stub_Strings) { - ZEPHIR_REGISTER_CLASS(Test, Strings, test, strings, test_strings_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Strings, stub, strings, stub_strings_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Strings, camelize) { +PHP_METHOD(Stub_Strings, camelize) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL, *delimiter = NULL, delimiter_sub, __$null; @@ -54,7 +54,7 @@ PHP_METHOD(Test_Strings, camelize) { } -PHP_METHOD(Test_Strings, uncamelize) { +PHP_METHOD(Stub_Strings, uncamelize) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *str_param = NULL, *delimiter = NULL, delimiter_sub, __$null; @@ -80,7 +80,7 @@ PHP_METHOD(Test_Strings, uncamelize) { } -PHP_METHOD(Test_Strings, testTrim) { +PHP_METHOD(Stub_Strings, testTrim) { zval *str, str_sub; zval *this_ptr = getThis(); @@ -96,7 +96,7 @@ PHP_METHOD(Test_Strings, testTrim) { } -PHP_METHOD(Test_Strings, testRtrim) { +PHP_METHOD(Stub_Strings, testRtrim) { zval *str, str_sub; zval *this_ptr = getThis(); @@ -112,7 +112,7 @@ PHP_METHOD(Test_Strings, testRtrim) { } -PHP_METHOD(Test_Strings, testLtrim) { +PHP_METHOD(Stub_Strings, testLtrim) { zval *str, str_sub; zval *this_ptr = getThis(); @@ -128,7 +128,7 @@ PHP_METHOD(Test_Strings, testLtrim) { } -PHP_METHOD(Test_Strings, testTrim2Params) { +PHP_METHOD(Stub_Strings, testTrim2Params) { zval *str, str_sub, *charlist, charlist_sub; zval *this_ptr = getThis(); @@ -145,7 +145,7 @@ PHP_METHOD(Test_Strings, testTrim2Params) { } -PHP_METHOD(Test_Strings, testRtrim2Params) { +PHP_METHOD(Stub_Strings, testRtrim2Params) { zval *str, str_sub, *charlist, charlist_sub; zval *this_ptr = getThis(); @@ -162,7 +162,7 @@ PHP_METHOD(Test_Strings, testRtrim2Params) { } -PHP_METHOD(Test_Strings, testLtrim2Params) { +PHP_METHOD(Stub_Strings, testLtrim2Params) { zval *str, str_sub, *charlist, charlist_sub; zval *this_ptr = getThis(); @@ -179,7 +179,7 @@ PHP_METHOD(Test_Strings, testLtrim2Params) { } -PHP_METHOD(Test_Strings, testImplode) { +PHP_METHOD(Stub_Strings, testImplode) { zval *glue, glue_sub, *pieces, pieces_sub; zval *this_ptr = getThis(); @@ -196,7 +196,7 @@ PHP_METHOD(Test_Strings, testImplode) { } -PHP_METHOD(Test_Strings, testStrpos) { +PHP_METHOD(Stub_Strings, testStrpos) { zval *haystack, haystack_sub, *needle, needle_sub; zval *this_ptr = getThis(); @@ -213,7 +213,7 @@ PHP_METHOD(Test_Strings, testStrpos) { } -PHP_METHOD(Test_Strings, testStrposOffset) { +PHP_METHOD(Stub_Strings, testStrposOffset) { zend_long offset; zval *haystack, haystack_sub, *needle, needle_sub, *offset_param = NULL, _0; @@ -234,7 +234,7 @@ PHP_METHOD(Test_Strings, testStrposOffset) { } -PHP_METHOD(Test_Strings, testExplode) { +PHP_METHOD(Stub_Strings, testExplode) { zval *delimiter, delimiter_sub, *str, str_sub; zval *this_ptr = getThis(); @@ -251,7 +251,7 @@ PHP_METHOD(Test_Strings, testExplode) { } -PHP_METHOD(Test_Strings, testExplodeStr) { +PHP_METHOD(Stub_Strings, testExplodeStr) { zval *str, str_sub; zval *this_ptr = getThis(); @@ -267,7 +267,7 @@ PHP_METHOD(Test_Strings, testExplodeStr) { } -PHP_METHOD(Test_Strings, testExplodeLimit) { +PHP_METHOD(Stub_Strings, testExplodeLimit) { zend_long limit; zval *str, str_sub, *limit_param = NULL, _0; @@ -287,7 +287,7 @@ PHP_METHOD(Test_Strings, testExplodeLimit) { } -PHP_METHOD(Test_Strings, testSubstr) { +PHP_METHOD(Stub_Strings, testSubstr) { zend_long from, len; zval *str, str_sub, *from_param = NULL, *len_param = NULL, _0, _1; @@ -310,7 +310,7 @@ PHP_METHOD(Test_Strings, testSubstr) { } -PHP_METHOD(Test_Strings, testSubstr2) { +PHP_METHOD(Stub_Strings, testSubstr2) { zend_long from; zval *str, str_sub, *from_param = NULL, _0; @@ -330,7 +330,7 @@ PHP_METHOD(Test_Strings, testSubstr2) { } -PHP_METHOD(Test_Strings, testSubstr3) { +PHP_METHOD(Stub_Strings, testSubstr3) { zval *str, str_sub, _0; zval *this_ptr = getThis(); @@ -348,7 +348,7 @@ PHP_METHOD(Test_Strings, testSubstr3) { } -PHP_METHOD(Test_Strings, testSubstr4) { +PHP_METHOD(Stub_Strings, testSubstr4) { zval *str, str_sub, _0, _1; zval *this_ptr = getThis(); @@ -368,7 +368,7 @@ PHP_METHOD(Test_Strings, testSubstr4) { } -PHP_METHOD(Test_Strings, testAddslashes) { +PHP_METHOD(Stub_Strings, testAddslashes) { zval *str, str_sub; zval *this_ptr = getThis(); @@ -384,7 +384,7 @@ PHP_METHOD(Test_Strings, testAddslashes) { } -PHP_METHOD(Test_Strings, testStripslashes) { +PHP_METHOD(Stub_Strings, testStripslashes) { zval *str, str_sub; zval *this_ptr = getThis(); @@ -400,7 +400,7 @@ PHP_METHOD(Test_Strings, testStripslashes) { } -PHP_METHOD(Test_Strings, testStripcslashes) { +PHP_METHOD(Stub_Strings, testStripcslashes) { zval *str, str_sub; zval *this_ptr = getThis(); @@ -416,7 +416,7 @@ PHP_METHOD(Test_Strings, testStripcslashes) { } -PHP_METHOD(Test_Strings, testHashEquals) { +PHP_METHOD(Stub_Strings, testHashEquals) { zval *str1, str1_sub, *str2, str2_sub; zval *this_ptr = getThis(); @@ -432,7 +432,7 @@ PHP_METHOD(Test_Strings, testHashEquals) { } -PHP_METHOD(Test_Strings, testHardcodedMultilineString) { +PHP_METHOD(Stub_Strings, testHardcodedMultilineString) { zval *this_ptr = getThis(); @@ -441,7 +441,7 @@ PHP_METHOD(Test_Strings, testHardcodedMultilineString) { } -PHP_METHOD(Test_Strings, testEchoMultilineString) { +PHP_METHOD(Stub_Strings, testEchoMultilineString) { zval *this_ptr = getThis(); @@ -450,7 +450,7 @@ PHP_METHOD(Test_Strings, testEchoMultilineString) { } -PHP_METHOD(Test_Strings, testTrimMultilineString) { +PHP_METHOD(Stub_Strings, testTrimMultilineString) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -467,7 +467,7 @@ PHP_METHOD(Test_Strings, testTrimMultilineString) { } -PHP_METHOD(Test_Strings, testWellEscapedMultilineString) { +PHP_METHOD(Stub_Strings, testWellEscapedMultilineString) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -484,7 +484,7 @@ PHP_METHOD(Test_Strings, testWellEscapedMultilineString) { } -PHP_METHOD(Test_Strings, testInternedString1) { +PHP_METHOD(Stub_Strings, testInternedString1) { zval *this_ptr = getThis(); @@ -493,7 +493,7 @@ PHP_METHOD(Test_Strings, testInternedString1) { } -PHP_METHOD(Test_Strings, testInternedString2) { +PHP_METHOD(Stub_Strings, testInternedString2) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -512,7 +512,7 @@ PHP_METHOD(Test_Strings, testInternedString2) { } -PHP_METHOD(Test_Strings, strToHex) { +PHP_METHOD(Stub_Strings, strToHex) { unsigned char _1$$3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -556,7 +556,7 @@ PHP_METHOD(Test_Strings, strToHex) { } -PHP_METHOD(Test_Strings, issue1267) { +PHP_METHOD(Stub_Strings, issue1267) { zval _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/strings.zep.h b/ext/stub/strings.zep.h new file mode 100644 index 0000000000..d71b62840d --- /dev/null +++ b/ext/stub/strings.zep.h @@ -0,0 +1,224 @@ + +extern zend_class_entry *stub_strings_ce; + +ZEPHIR_INIT_CLASS(Stub_Strings); + +PHP_METHOD(Stub_Strings, camelize); +PHP_METHOD(Stub_Strings, uncamelize); +PHP_METHOD(Stub_Strings, testTrim); +PHP_METHOD(Stub_Strings, testRtrim); +PHP_METHOD(Stub_Strings, testLtrim); +PHP_METHOD(Stub_Strings, testTrim2Params); +PHP_METHOD(Stub_Strings, testRtrim2Params); +PHP_METHOD(Stub_Strings, testLtrim2Params); +PHP_METHOD(Stub_Strings, testImplode); +PHP_METHOD(Stub_Strings, testStrpos); +PHP_METHOD(Stub_Strings, testStrposOffset); +PHP_METHOD(Stub_Strings, testExplode); +PHP_METHOD(Stub_Strings, testExplodeStr); +PHP_METHOD(Stub_Strings, testExplodeLimit); +PHP_METHOD(Stub_Strings, testSubstr); +PHP_METHOD(Stub_Strings, testSubstr2); +PHP_METHOD(Stub_Strings, testSubstr3); +PHP_METHOD(Stub_Strings, testSubstr4); +PHP_METHOD(Stub_Strings, testAddslashes); +PHP_METHOD(Stub_Strings, testStripslashes); +PHP_METHOD(Stub_Strings, testStripcslashes); +PHP_METHOD(Stub_Strings, testHashEquals); +PHP_METHOD(Stub_Strings, testHardcodedMultilineString); +PHP_METHOD(Stub_Strings, testEchoMultilineString); +PHP_METHOD(Stub_Strings, testTrimMultilineString); +PHP_METHOD(Stub_Strings, testWellEscapedMultilineString); +PHP_METHOD(Stub_Strings, testInternedString1); +PHP_METHOD(Stub_Strings, testInternedString2); +PHP_METHOD(Stub_Strings, strToHex); +PHP_METHOD(Stub_Strings, issue1267); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_camelize, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, str) +#endif + ZEND_ARG_INFO(0, delimiter) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_uncamelize, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, str) +#endif + ZEND_ARG_INFO(0, delimiter) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testtrim, 0, 0, 1) + ZEND_ARG_INFO(0, str) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testrtrim, 0, 0, 1) + ZEND_ARG_INFO(0, str) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testltrim, 0, 0, 1) + ZEND_ARG_INFO(0, str) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testtrim2params, 0, 0, 2) + ZEND_ARG_INFO(0, str) + ZEND_ARG_INFO(0, charlist) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testrtrim2params, 0, 0, 2) + ZEND_ARG_INFO(0, str) + ZEND_ARG_INFO(0, charlist) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testltrim2params, 0, 0, 2) + ZEND_ARG_INFO(0, str) + ZEND_ARG_INFO(0, charlist) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testimplode, 0, 0, 2) + ZEND_ARG_INFO(0, glue) + ZEND_ARG_INFO(0, pieces) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_teststrpos, 0, 0, 2) + ZEND_ARG_INFO(0, haystack) + ZEND_ARG_INFO(0, needle) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_teststrposoffset, 0, 0, 3) + ZEND_ARG_INFO(0, haystack) + ZEND_ARG_INFO(0, needle) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, offset) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testexplode, 0, 0, 2) + ZEND_ARG_INFO(0, delimiter) + ZEND_ARG_INFO(0, str) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testexplodestr, 0, 0, 1) + ZEND_ARG_INFO(0, str) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testexplodelimit, 0, 0, 2) + ZEND_ARG_INFO(0, str) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, limit) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testsubstr, 0, 0, 3) + ZEND_ARG_INFO(0, str) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, from, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, from) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, len, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, len) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testsubstr2, 0, 0, 2) + ZEND_ARG_INFO(0, str) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, from, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, from) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testsubstr3, 0, 0, 1) + ZEND_ARG_INFO(0, str) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testsubstr4, 0, 0, 1) + ZEND_ARG_INFO(0, str) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testaddslashes, 0, 0, 1) + ZEND_ARG_INFO(0, str) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_teststripslashes, 0, 0, 1) + ZEND_ARG_INFO(0, str) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_strings_teststripcslashes, 0, 1, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_strings_teststripcslashes, 0, 1, IS_STRING, NULL, 0) +#endif + ZEND_ARG_INFO(0, str) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_strings_testhashequals, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_strings_testhashequals, 0, 2, _IS_BOOL, NULL, 0) +#endif + ZEND_ARG_INFO(0, str1) + ZEND_ARG_INFO(0, str2) +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_strings_strtohex, 0, 1, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_strings_strtohex, 0, 1, IS_STRING, NULL, 0) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, value) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_issue1267, 0, 0, 1) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_strings_method_entry) { + PHP_ME(Stub_Strings, camelize, arginfo_stub_strings_camelize, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, uncamelize, arginfo_stub_strings_uncamelize, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testTrim, arginfo_stub_strings_testtrim, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testRtrim, arginfo_stub_strings_testrtrim, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testLtrim, arginfo_stub_strings_testltrim, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testTrim2Params, arginfo_stub_strings_testtrim2params, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testRtrim2Params, arginfo_stub_strings_testrtrim2params, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testLtrim2Params, arginfo_stub_strings_testltrim2params, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testImplode, arginfo_stub_strings_testimplode, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testStrpos, arginfo_stub_strings_teststrpos, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testStrposOffset, arginfo_stub_strings_teststrposoffset, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testExplode, arginfo_stub_strings_testexplode, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testExplodeStr, arginfo_stub_strings_testexplodestr, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testExplodeLimit, arginfo_stub_strings_testexplodelimit, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testSubstr, arginfo_stub_strings_testsubstr, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testSubstr2, arginfo_stub_strings_testsubstr2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testSubstr3, arginfo_stub_strings_testsubstr3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testSubstr4, arginfo_stub_strings_testsubstr4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testAddslashes, arginfo_stub_strings_testaddslashes, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testStripslashes, arginfo_stub_strings_teststripslashes, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testStripcslashes, arginfo_stub_strings_teststripcslashes, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testHashEquals, arginfo_stub_strings_testhashequals, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testHardcodedMultilineString, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testEchoMultilineString, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testTrimMultilineString, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testWellEscapedMultilineString, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testInternedString1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, testInternedString2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, strToHex, arginfo_stub_strings_strtohex, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Strings, issue1267, arginfo_stub_strings_issue1267, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/stubs.zep.c b/ext/stub/stubs.zep.c similarity index 74% rename from ext/test/stubs.zep.c rename to ext/stub/stubs.zep.c index bade9b159b..5c82194756 100644 --- a/ext/test/stubs.zep.c +++ b/ext/stub/stubs.zep.c @@ -23,24 +23,24 @@ /** * Sample Class Description */ -ZEPHIR_INIT_CLASS(Test_Stubs) { +ZEPHIR_INIT_CLASS(Stub_Stubs) { - ZEPHIR_REGISTER_CLASS(Test, Stubs, test, stubs, test_stubs_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Stubs, stub, stubs, stub_stubs_method_entry, 0); - zend_declare_property_string(test_stubs_ce, SL("propString"), "Zephir public", ZEND_ACC_PUBLIC); + zend_declare_property_string(stub_stubs_ce, SL("propString"), "Zephir public", ZEND_ACC_PUBLIC); /** @var integer - declared in Zephir DocBlock */ - zend_declare_property_long(test_stubs_ce, SL("propIntDeclared"), 100, ZEND_ACC_PUBLIC); + zend_declare_property_long(stub_stubs_ce, SL("propIntDeclared"), 100, ZEND_ACC_PUBLIC); - zend_declare_property_string(test_stubs_ce, SL("propStringProtected"), "Zephir protected", ZEND_ACC_PROTECTED); + zend_declare_property_string(stub_stubs_ce, SL("propStringProtected"), "Zephir protected", ZEND_ACC_PROTECTED); - zend_declare_property_string(test_stubs_ce, SL("propStringPrivate"), "Zephir private", ZEND_ACC_PRIVATE); + zend_declare_property_string(stub_stubs_ce, SL("propStringPrivate"), "Zephir private", ZEND_ACC_PRIVATE); - zephir_declare_class_constant_long(test_stubs_ce, SL("INTEGER_CONST"), 1); + zephir_declare_class_constant_long(stub_stubs_ce, SL("INTEGER_CONST"), 1); - zephir_declare_class_constant_double(test_stubs_ce, SL("DOUBLE_CONST"), 10.24); + zephir_declare_class_constant_double(stub_stubs_ce, SL("DOUBLE_CONST"), 10.24); - zephir_declare_class_constant_string(test_stubs_ce, SL("STRING_CONST"), "Zephir"); + zephir_declare_class_constant_string(stub_stubs_ce, SL("STRING_CONST"), "Zephir"); return SUCCESS; @@ -49,7 +49,7 @@ ZEPHIR_INIT_CLASS(Test_Stubs) { /** * Sample Method Description with Return type -> string */ -PHP_METHOD(Test_Stubs, testDockBlockAndReturnType) { +PHP_METHOD(Stub_Stubs, testDockBlockAndReturnType) { zval *this_ptr = getThis(); @@ -63,7 +63,7 @@ PHP_METHOD(Test_Stubs, testDockBlockAndReturnType) { * * @return string - declared in Zephir DocBlock */ -PHP_METHOD(Test_Stubs, testDocBlockAndReturnTypeDeclared) { +PHP_METHOD(Stub_Stubs, testDocBlockAndReturnTypeDeclared) { zval *this_ptr = getThis(); @@ -80,7 +80,7 @@ PHP_METHOD(Test_Stubs, testDocBlockAndReturnTypeDeclared) { * @param int|string $intOrString - declared in Zephir DocBlock * @return int|null - declared in Zephir DocBlock */ -PHP_METHOD(Test_Stubs, testMixedInputParamsDocBlock) { +PHP_METHOD(Stub_Stubs, testMixedInputParamsDocBlock) { zend_long number; zval *intOrString, intOrString_sub, *number_param = NULL; @@ -110,7 +110,7 @@ PHP_METHOD(Test_Stubs, testMixedInputParamsDocBlock) { * @param int $number - declared in Zephir DocBlock * @return int|null - declared in Zephir DocBlock */ -PHP_METHOD(Test_Stubs, testMixedInputParamsDocBlockDeclared) { +PHP_METHOD(Stub_Stubs, testMixedInputParamsDocBlockDeclared) { zend_long number; zval *intOrString, intOrString_sub, *number_param = NULL; diff --git a/ext/stub/stubs.zep.h b/ext/stub/stubs.zep.h new file mode 100644 index 0000000000..098d1a7bbb --- /dev/null +++ b/ext/stub/stubs.zep.h @@ -0,0 +1,57 @@ + +extern zend_class_entry *stub_stubs_ce; + +ZEPHIR_INIT_CLASS(Stub_Stubs); + +PHP_METHOD(Stub_Stubs, testDockBlockAndReturnType); +PHP_METHOD(Stub_Stubs, testDocBlockAndReturnTypeDeclared); +PHP_METHOD(Stub_Stubs, testMixedInputParamsDocBlock); +PHP_METHOD(Stub_Stubs, testMixedInputParamsDocBlockDeclared); + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testdockblockandreturntype, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testdockblockandreturntype, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testdocblockandreturntypedeclared, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testdocblockandreturntypedeclared, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testmixedinputparamsdocblock, 0, 1, IS_LONG, 1) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testmixedinputparamsdocblock, 0, 1, IS_LONG, NULL, 1) +#endif + ZEND_ARG_INFO(0, intOrString) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, number, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testmixedinputparamsdocblockdeclared, 0, 1, IS_LONG, 1) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testmixedinputparamsdocblockdeclared, 0, 1, IS_LONG, NULL, 1) +#endif + ZEND_ARG_INFO(0, intOrString) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, number, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_stubs_method_entry) { + PHP_ME(Stub_Stubs, testDockBlockAndReturnType, arginfo_stub_stubs_testdockblockandreturntype, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Stubs, testDocBlockAndReturnTypeDeclared, arginfo_stub_stubs_testdocblockandreturntypedeclared, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Stubs, testMixedInputParamsDocBlock, arginfo_stub_stubs_testmixedinputparamsdocblock, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Stubs, testMixedInputParamsDocBlockDeclared, arginfo_stub_stubs_testmixedinputparamsdocblockdeclared, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/ternary.zep.c b/ext/stub/ternary.zep.c similarity index 88% rename from ext/test/ternary.zep.c rename to ext/stub/ternary.zep.c index e4c94031cc..8b1d6301bd 100644 --- a/ext/test/ternary.zep.c +++ b/ext/stub/ternary.zep.c @@ -23,15 +23,15 @@ /** * Arithmetic operations */ -ZEPHIR_INIT_CLASS(Test_Ternary) { +ZEPHIR_INIT_CLASS(Stub_Ternary) { - ZEPHIR_REGISTER_CLASS(Test, Ternary, test, ternary, test_ternary_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Ternary, stub, ternary, stub_ternary_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Ternary, testTernary1) { +PHP_METHOD(Stub_Ternary, testTernary1) { zval _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -51,7 +51,7 @@ PHP_METHOD(Test_Ternary, testTernary1) { } -PHP_METHOD(Test_Ternary, testTernary2) { +PHP_METHOD(Stub_Ternary, testTernary2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *b_param = NULL, _0; @@ -76,7 +76,7 @@ PHP_METHOD(Test_Ternary, testTernary2) { } -PHP_METHOD(Test_Ternary, testTernaryComplex1) { +PHP_METHOD(Stub_Ternary, testTernaryComplex1) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -111,7 +111,7 @@ PHP_METHOD(Test_Ternary, testTernaryComplex1) { } -PHP_METHOD(Test_Ternary, testTernaryComplex2) { +PHP_METHOD(Stub_Ternary, testTernaryComplex2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -147,7 +147,7 @@ PHP_METHOD(Test_Ternary, testTernaryComplex2) { } -PHP_METHOD(Test_Ternary, testTernaryComplex3) { +PHP_METHOD(Stub_Ternary, testTernaryComplex3) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a, a_sub, _0; @@ -177,7 +177,7 @@ PHP_METHOD(Test_Ternary, testTernaryComplex3) { /** * @link https://github.com/phalcon/zephir/issues/665 */ -PHP_METHOD(Test_Ternary, testTernaryWithPromotedTemporaryVariable) { +PHP_METHOD(Stub_Ternary, testTernaryWithPromotedTemporaryVariable) { zval var2, var3, _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -201,7 +201,7 @@ PHP_METHOD(Test_Ternary, testTernaryWithPromotedTemporaryVariable) { ZEPHIR_INIT_VAR(&_1); if (zephir_array_isset_long(&var2, 1)) { ZEPHIR_OBS_NVAR(&_1); - zephir_array_fetch_long(&_1, &var2, 1, PH_NOISY, "test/ternary.zep", 44); + zephir_array_fetch_long(&_1, &var2, 1, PH_NOISY, "stub/ternary.zep", 44); } else { ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, ""); @@ -215,7 +215,7 @@ PHP_METHOD(Test_Ternary, testTernaryWithPromotedTemporaryVariable) { /** * @link https://github.com/phalcon/zephir/issues/297 */ -PHP_METHOD(Test_Ternary, testTernaryAfterLetVariable) { +PHP_METHOD(Stub_Ternary, testTernaryAfterLetVariable) { zval s; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -238,7 +238,7 @@ PHP_METHOD(Test_Ternary, testTernaryAfterLetVariable) { } -PHP_METHOD(Test_Ternary, testShortTernary) { +PHP_METHOD(Stub_Ternary, testShortTernary) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *a, a_sub, _0; @@ -262,7 +262,7 @@ PHP_METHOD(Test_Ternary, testShortTernary) { } -PHP_METHOD(Test_Ternary, testShortTernaryComplex) { +PHP_METHOD(Stub_Ternary, testShortTernaryComplex) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *left, left_sub, *value, value_sub, _0; diff --git a/ext/stub/ternary.zep.h b/ext/stub/ternary.zep.h new file mode 100644 index 0000000000..438624ced9 --- /dev/null +++ b/ext/stub/ternary.zep.h @@ -0,0 +1,58 @@ + +extern zend_class_entry *stub_ternary_ce; + +ZEPHIR_INIT_CLASS(Stub_Ternary); + +PHP_METHOD(Stub_Ternary, testTernary1); +PHP_METHOD(Stub_Ternary, testTernary2); +PHP_METHOD(Stub_Ternary, testTernaryComplex1); +PHP_METHOD(Stub_Ternary, testTernaryComplex2); +PHP_METHOD(Stub_Ternary, testTernaryComplex3); +PHP_METHOD(Stub_Ternary, testTernaryWithPromotedTemporaryVariable); +PHP_METHOD(Stub_Ternary, testTernaryAfterLetVariable); +PHP_METHOD(Stub_Ternary, testShortTernary); +PHP_METHOD(Stub_Ternary, testShortTernaryComplex); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_ternary_testternary2, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, b, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, b) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_ternary_testternarycomplex1, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, y) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_ternary_testternarycomplex2, 0, 0, 2) + ZEND_ARG_INFO(0, a) + ZEND_ARG_INFO(0, y) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_ternary_testternarycomplex3, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_ternary_testshortternary, 0, 0, 1) + ZEND_ARG_INFO(0, a) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_ternary_testshortternarycomplex, 0, 0, 2) + ZEND_ARG_INFO(0, left) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_ternary_method_entry) { + PHP_ME(Stub_Ternary, testTernary1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Ternary, testTernary2, arginfo_stub_ternary_testternary2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Ternary, testTernaryComplex1, arginfo_stub_ternary_testternarycomplex1, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Ternary, testTernaryComplex2, arginfo_stub_ternary_testternarycomplex2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Ternary, testTernaryComplex3, arginfo_stub_ternary_testternarycomplex3, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Ternary, testTernaryWithPromotedTemporaryVariable, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Ternary, testTernaryAfterLetVariable, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Ternary, testShortTernary, arginfo_stub_ternary_testshortternary, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Ternary, testShortTernaryComplex, arginfo_stub_ternary_testshortternarycomplex, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/stub/testinterface.zep.c b/ext/stub/testinterface.zep.c new file mode 100644 index 0000000000..63bbdaad9b --- /dev/null +++ b/ext/stub/testinterface.zep.c @@ -0,0 +1,37 @@ + +#ifdef HAVE_CONFIG_H +#include "../ext_config.h" +#endif + +#include +#include "../php_ext.h" +#include "../ext.h" + +#include + +#include "kernel/main.h" + + +/** + * Sample exception class + */ +ZEPHIR_INIT_CLASS(Stub_TestInterface) { + + ZEPHIR_REGISTER_INTERFACE(Stub, TestInterface, stub, testinterface, NULL); + + zephir_declare_class_constant_null(stub_testinterface_ce, SL("C1")); + + zephir_declare_class_constant_bool(stub_testinterface_ce, SL("C2"), 0); + + zephir_declare_class_constant_bool(stub_testinterface_ce, SL("C3"), 1); + + zephir_declare_class_constant_long(stub_testinterface_ce, SL("C4"), 10); + + zephir_declare_class_constant_double(stub_testinterface_ce, SL("C5"), 10.25); + + zephir_declare_class_constant_string(stub_testinterface_ce, SL("C6"), "test"); + + return SUCCESS; + +} + diff --git a/ext/stub/testinterface.zep.h b/ext/stub/testinterface.zep.h new file mode 100644 index 0000000000..6ffd40861a --- /dev/null +++ b/ext/stub/testinterface.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_testinterface_ce; + +ZEPHIR_INIT_CLASS(Stub_TestInterface); + diff --git a/ext/test/trytest.zep.c b/ext/stub/trytest.zep.c similarity index 87% rename from ext/test/trytest.zep.c rename to ext/stub/trytest.zep.c index f4b834a145..f619b35f3e 100644 --- a/ext/test/trytest.zep.c +++ b/ext/stub/trytest.zep.c @@ -20,25 +20,25 @@ #include "kernel/operators.h" -ZEPHIR_INIT_CLASS(Test_TryTest) { +ZEPHIR_INIT_CLASS(Stub_TryTest) { - ZEPHIR_REGISTER_CLASS(Test, TryTest, test, trytest, test_trytest_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, TryTest, stub, trytest, stub_trytest_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_TryTest, testThrow1) { +PHP_METHOD(Stub_TryTest, testThrow1) { zval *this_ptr = getThis(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(zend_exception_get_default(TSRMLS_C), "error", "test/trytest.zep", 10); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(zend_exception_get_default(TSRMLS_C), "error", "stub/trytest.zep", 10); return; } -PHP_METHOD(Test_TryTest, testThrow2) { +PHP_METHOD(Stub_TryTest, testThrow2) { zval message, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -56,13 +56,13 @@ PHP_METHOD(Test_TryTest, testThrow2) { object_init_ex(&_0, zend_exception_get_default(TSRMLS_C)); ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 28, &message); zephir_check_call_status(); - zephir_throw_exception_debug(&_0, "test/trytest.zep", 16); + zephir_throw_exception_debug(&_0, "stub/trytest.zep", 16); ZEPHIR_MM_RESTORE(); return; } -PHP_METHOD(Test_TryTest, testTry1) { +PHP_METHOD(Stub_TryTest, testTry1) { zval *this_ptr = getThis(); @@ -77,7 +77,7 @@ PHP_METHOD(Test_TryTest, testTry1) { } -PHP_METHOD(Test_TryTest, testTry2) { +PHP_METHOD(Stub_TryTest, testTry2) { zval _0$$3, _1$$3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -98,7 +98,7 @@ PHP_METHOD(Test_TryTest, testTry2) { ZVAL_STRING(&_1$$3, "error!"); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 28, &_1$$3); zephir_check_call_status_or_jump(try_end_1); - zephir_throw_exception_debug(&_0$$3, "test/trytest.zep", 27); + zephir_throw_exception_debug(&_0$$3, "stub/trytest.zep", 27); goto try_end_1; @@ -108,7 +108,7 @@ PHP_METHOD(Test_TryTest, testTry2) { } -PHP_METHOD(Test_TryTest, testTry3) { +PHP_METHOD(Stub_TryTest, testTry3) { zval _0$$3, _1$$3, _2, _3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -131,7 +131,7 @@ PHP_METHOD(Test_TryTest, testTry3) { ZVAL_STRING(&_1$$3, "error!"); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 28, &_1$$3); zephir_check_call_status_or_jump(try_end_1); - zephir_throw_exception_debug(&_0$$3, "test/trytest.zep", 34); + zephir_throw_exception_debug(&_0$$3, "stub/trytest.zep", 34); goto try_end_1; @@ -152,7 +152,7 @@ PHP_METHOD(Test_TryTest, testTry3) { } -PHP_METHOD(Test_TryTest, testTry4) { +PHP_METHOD(Stub_TryTest, testTry4) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -184,7 +184,7 @@ PHP_METHOD(Test_TryTest, testTry4) { ZVAL_STRING(&_1$$4, "error!"); ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 28, &_1$$4); zephir_check_call_status_or_jump(try_end_1); - zephir_throw_exception_debug(&_0$$4, "test/trytest.zep", 46); + zephir_throw_exception_debug(&_0$$4, "stub/trytest.zep", 46); goto try_end_1; } else { @@ -194,7 +194,7 @@ PHP_METHOD(Test_TryTest, testTry4) { ZVAL_STRING(&_3$$5, "error!"); ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 100, &_3$$5); zephir_check_call_status_or_jump(try_end_1); - zephir_throw_exception_debug(&_2$$5, "test/trytest.zep", 48); + zephir_throw_exception_debug(&_2$$5, "stub/trytest.zep", 48); goto try_end_1; } @@ -223,7 +223,7 @@ PHP_METHOD(Test_TryTest, testTry4) { } -PHP_METHOD(Test_TryTest, testTry5) { +PHP_METHOD(Stub_TryTest, testTry5) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -254,7 +254,7 @@ PHP_METHOD(Test_TryTest, testTry5) { ZVAL_STRING(&_1$$4, "error!"); ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 28, &_1$$4); zephir_check_call_status_or_jump(try_end_1); - zephir_throw_exception_debug(&_0$$4, "test/trytest.zep", 63); + zephir_throw_exception_debug(&_0$$4, "stub/trytest.zep", 63); goto try_end_1; } else { @@ -264,7 +264,7 @@ PHP_METHOD(Test_TryTest, testTry5) { ZVAL_STRING(&_3$$5, "error!"); ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 100, &_3$$5); zephir_check_call_status_or_jump(try_end_1); - zephir_throw_exception_debug(&_2$$5, "test/trytest.zep", 65); + zephir_throw_exception_debug(&_2$$5, "stub/trytest.zep", 65); goto try_end_1; } @@ -292,7 +292,7 @@ PHP_METHOD(Test_TryTest, testTry5) { } -PHP_METHOD(Test_TryTest, testTry6) { +PHP_METHOD(Stub_TryTest, testTry6) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -323,7 +323,7 @@ PHP_METHOD(Test_TryTest, testTry6) { ZVAL_STRING(&_1$$4, "error!"); ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 28, &_1$$4); zephir_check_call_status_or_jump(try_end_1); - zephir_throw_exception_debug(&_0$$4, "test/trytest.zep", 80); + zephir_throw_exception_debug(&_0$$4, "stub/trytest.zep", 80); goto try_end_1; } else { @@ -333,7 +333,7 @@ PHP_METHOD(Test_TryTest, testTry6) { ZVAL_STRING(&_3$$5, "error!"); ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 100, &_3$$5); zephir_check_call_status_or_jump(try_end_1); - zephir_throw_exception_debug(&_2$$5, "test/trytest.zep", 82); + zephir_throw_exception_debug(&_2$$5, "stub/trytest.zep", 82); goto try_end_1; } @@ -360,7 +360,7 @@ PHP_METHOD(Test_TryTest, testTry6) { } -PHP_METHOD(Test_TryTest, testTry7) { +PHP_METHOD(Stub_TryTest, testTry7) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zend_long ZEPHIR_LAST_CALL_STATUS; @@ -391,7 +391,7 @@ PHP_METHOD(Test_TryTest, testTry7) { ZVAL_STRING(&_1$$4, "error!"); ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 28, &_1$$4); zephir_check_call_status_or_jump(try_end_1); - zephir_throw_exception_debug(&_0$$4, "test/trytest.zep", 99); + zephir_throw_exception_debug(&_0$$4, "stub/trytest.zep", 99); goto try_end_1; } else { @@ -401,7 +401,7 @@ PHP_METHOD(Test_TryTest, testTry7) { ZVAL_STRING(&_3$$5, "error!"); ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", NULL, 100, &_3$$5); zephir_check_call_status_or_jump(try_end_1); - zephir_throw_exception_debug(&_2$$5, "test/trytest.zep", 101); + zephir_throw_exception_debug(&_2$$5, "stub/trytest.zep", 101); goto try_end_1; } @@ -427,7 +427,7 @@ PHP_METHOD(Test_TryTest, testTry7) { } -PHP_METHOD(Test_TryTest, testTry8) { +PHP_METHOD(Stub_TryTest, testTry8) { zval _0$$3, _1$$3; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -448,39 +448,39 @@ PHP_METHOD(Test_TryTest, testTry8) { ZVAL_STRING(&_1$$3, "error 1!"); ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 28, &_1$$3); zephir_check_call_status_or_jump(try_end_1); - zephir_throw_exception_debug(&_0$$3, "test/trytest.zep", 111); + zephir_throw_exception_debug(&_0$$3, "stub/trytest.zep", 111); goto try_end_1; try_end_1: zend_clear_exception(TSRMLS_C); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(zend_exception_get_default(TSRMLS_C), "error 2!", "test/trytest.zep", 113); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(zend_exception_get_default(TSRMLS_C), "error 2!", "stub/trytest.zep", 113); return; } -PHP_METHOD(Test_TryTest, someMethod1) { +PHP_METHOD(Stub_TryTest, someMethod1) { zval *this_ptr = getThis(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(spl_ce_RuntimeException, "some external exception", "test/trytest.zep", 118); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(spl_ce_RuntimeException, "some external exception", "stub/trytest.zep", 118); return; } -PHP_METHOD(Test_TryTest, someMethod2) { +PHP_METHOD(Stub_TryTest, someMethod2) { zval *this_ptr = getThis(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(spl_ce_DomainException, "some external exception", "test/trytest.zep", 123); + ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(spl_ce_DomainException, "some external exception", "stub/trytest.zep", 123); return; } -PHP_METHOD(Test_TryTest, testTry9) { +PHP_METHOD(Stub_TryTest, testTry9) { zval e, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -515,7 +515,7 @@ PHP_METHOD(Test_TryTest, testTry9) { } -PHP_METHOD(Test_TryTest, testTry10) { +PHP_METHOD(Stub_TryTest, testTry10) { zval e, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -550,7 +550,7 @@ PHP_METHOD(Test_TryTest, testTry10) { } -PHP_METHOD(Test_TryTest, testTry11) { +PHP_METHOD(Stub_TryTest, testTry11) { zval ex, _0; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/trytest.zep.h b/ext/stub/trytest.zep.h new file mode 100644 index 0000000000..0c441abb90 --- /dev/null +++ b/ext/stub/trytest.zep.h @@ -0,0 +1,71 @@ + +extern zend_class_entry *stub_trytest_ce; + +ZEPHIR_INIT_CLASS(Stub_TryTest); + +PHP_METHOD(Stub_TryTest, testThrow1); +PHP_METHOD(Stub_TryTest, testThrow2); +PHP_METHOD(Stub_TryTest, testTry1); +PHP_METHOD(Stub_TryTest, testTry2); +PHP_METHOD(Stub_TryTest, testTry3); +PHP_METHOD(Stub_TryTest, testTry4); +PHP_METHOD(Stub_TryTest, testTry5); +PHP_METHOD(Stub_TryTest, testTry6); +PHP_METHOD(Stub_TryTest, testTry7); +PHP_METHOD(Stub_TryTest, testTry8); +PHP_METHOD(Stub_TryTest, someMethod1); +PHP_METHOD(Stub_TryTest, someMethod2); +PHP_METHOD(Stub_TryTest, testTry9); +PHP_METHOD(Stub_TryTest, testTry10); +PHP_METHOD(Stub_TryTest, testTry11); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_trytest_testtry4, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_trytest_testtry5, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_trytest_testtry6, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_trytest_testtry7, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, a, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, a) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_trytest_method_entry) { + PHP_ME(Stub_TryTest, testThrow1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TryTest, testThrow2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TryTest, testTry1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TryTest, testTry2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TryTest, testTry3, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TryTest, testTry4, arginfo_stub_trytest_testtry4, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TryTest, testTry5, arginfo_stub_trytest_testtry5, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TryTest, testTry6, arginfo_stub_trytest_testtry6, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TryTest, testTry7, arginfo_stub_trytest_testtry7, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TryTest, testTry8, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TryTest, someMethod1, NULL, ZEND_ACC_PRIVATE) + PHP_ME(Stub_TryTest, someMethod2, NULL, ZEND_ACC_PRIVATE) + PHP_ME(Stub_TryTest, testTry9, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TryTest, testTry10, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TryTest, testTry11, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/stub/typehinting/testabstract.zep.c b/ext/stub/typehinting/testabstract.zep.c new file mode 100644 index 0000000000..e505c5bd3a --- /dev/null +++ b/ext/stub/typehinting/testabstract.zep.c @@ -0,0 +1,64 @@ + +#ifdef HAVE_CONFIG_H +#include "../../ext_config.h" +#endif + +#include +#include "../../php_ext.h" +#include "../../ext.h" + +#include +#include +#include + +#include "kernel/main.h" + + +ZEPHIR_INIT_CLASS(Stub_TypeHinting_TestAbstract) { + + ZEPHIR_REGISTER_CLASS(Stub\\TypeHinting, TestAbstract, stub, typehinting_testabstract, stub_typehinting_testabstract_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); + + return SUCCESS; + +} + +PHP_METHOD(Stub_TypeHinting_TestAbstract, testFunc) { + +} + +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnOneOfScalar) { + +} + +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnInt) { + +} + +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnUint) { + +} + +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnLong) { + +} + +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnFloat) { + +} + +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnDouble) { + +} + +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnString) { + +} + +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnBoolean) { + +} + +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnChar) { + +} + diff --git a/ext/stub/typehinting/testabstract.zep.h b/ext/stub/typehinting/testabstract.zep.h new file mode 100644 index 0000000000..c1e84b5190 --- /dev/null +++ b/ext/stub/typehinting/testabstract.zep.h @@ -0,0 +1,104 @@ + +extern zend_class_entry *stub_typehinting_testabstract_ce; + +ZEPHIR_INIT_CLASS(Stub_TypeHinting_TestAbstract); + +PHP_METHOD(Stub_TypeHinting_TestAbstract, testFunc); +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnOneOfScalar); +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnInt); +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnUint); +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnLong); +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnFloat); +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnDouble); +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnString); +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnBoolean); +PHP_METHOD(Stub_TypeHinting_TestAbstract, returnChar); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_typehinting_testabstract_testfunc, 0, 0, 0) + ZEND_ARG_ARRAY_INFO(0, text, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, text2, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, text2) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, flag, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, flag) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, optional, IS_LONG, 1) +#else + ZEND_ARG_INFO(0, optional) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnint, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnint, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnuint, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnuint, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnlong, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnlong, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnfloat, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnfloat, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returndouble, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returndouble, 0, 0, IS_DOUBLE, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnstring, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnstring, 0, 0, IS_STRING, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnboolean, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnboolean, 0, 0, _IS_BOOL, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 70200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnchar, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_typehinting_testabstract_returnchar, 0, 0, IS_LONG, NULL, 0) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_typehinting_testabstract_method_entry) { + PHP_ME(Stub_TypeHinting_TestAbstract, testFunc, arginfo_stub_typehinting_testabstract_testfunc, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_TypeHinting_TestAbstract, returnOneOfScalar, NULL, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_TypeHinting_TestAbstract, returnInt, arginfo_stub_typehinting_testabstract_returnint, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_TypeHinting_TestAbstract, returnUint, arginfo_stub_typehinting_testabstract_returnuint, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_TypeHinting_TestAbstract, returnLong, arginfo_stub_typehinting_testabstract_returnlong, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_TypeHinting_TestAbstract, returnFloat, arginfo_stub_typehinting_testabstract_returnfloat, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_TypeHinting_TestAbstract, returnDouble, arginfo_stub_typehinting_testabstract_returndouble, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_TypeHinting_TestAbstract, returnString, arginfo_stub_typehinting_testabstract_returnstring, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_TypeHinting_TestAbstract, returnBoolean, arginfo_stub_typehinting_testabstract_returnboolean, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_ME(Stub_TypeHinting_TestAbstract, returnChar, arginfo_stub_typehinting_testabstract_returnchar, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/typeinstances.zep.c b/ext/stub/typeinstances.zep.c similarity index 83% rename from ext/test/typeinstances.zep.c rename to ext/stub/typeinstances.zep.c index 7eae198493..4164300a1e 100644 --- a/ext/test/typeinstances.zep.c +++ b/ext/stub/typeinstances.zep.c @@ -22,15 +22,15 @@ /** * Cast tests */ -ZEPHIR_INIT_CLASS(Test_TypeInstances) { +ZEPHIR_INIT_CLASS(Stub_TypeInstances) { - ZEPHIR_REGISTER_CLASS(Test, TypeInstances, test, typeinstances, test_typeinstances_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, TypeInstances, stub, typeinstances, stub_typeinstances_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_TypeInstances, testInstanceOfString1) { +PHP_METHOD(Stub_TypeInstances, testInstanceOfString1) { zval _2; zval _0, _1; @@ -52,7 +52,7 @@ PHP_METHOD(Test_TypeInstances, testInstanceOfString1) { } -PHP_METHOD(Test_TypeInstances, testInstanceOfString2) { +PHP_METHOD(Stub_TypeInstances, testInstanceOfString2) { zval _2; zval _0, _1; @@ -74,7 +74,7 @@ PHP_METHOD(Test_TypeInstances, testInstanceOfString2) { } -PHP_METHOD(Test_TypeInstances, testInstanceOfString3) { +PHP_METHOD(Stub_TypeInstances, testInstanceOfString3) { zval _2; zval _0, _1; diff --git a/ext/stub/typeinstances.zep.h b/ext/stub/typeinstances.zep.h new file mode 100644 index 0000000000..5ea54bdcd7 --- /dev/null +++ b/ext/stub/typeinstances.zep.h @@ -0,0 +1,15 @@ + +extern zend_class_entry *stub_typeinstances_ce; + +ZEPHIR_INIT_CLASS(Stub_TypeInstances); + +PHP_METHOD(Stub_TypeInstances, testInstanceOfString1); +PHP_METHOD(Stub_TypeInstances, testInstanceOfString2); +PHP_METHOD(Stub_TypeInstances, testInstanceOfString3); + +ZEPHIR_INIT_FUNCS(stub_typeinstances_method_entry) { + PHP_ME(Stub_TypeInstances, testInstanceOfString1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TypeInstances, testInstanceOfString2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_TypeInstances, testInstanceOfString3, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/typeoff.zep.c b/ext/stub/typeoff.zep.c similarity index 78% rename from ext/test/typeoff.zep.c rename to ext/stub/typeoff.zep.c index ef13735b0b..e12d6c32f0 100644 --- a/ext/test/typeoff.zep.c +++ b/ext/stub/typeoff.zep.c @@ -19,17 +19,17 @@ /** * OO operations */ -ZEPHIR_INIT_CLASS(Test_Typeoff) { +ZEPHIR_INIT_CLASS(Stub_Typeoff) { - ZEPHIR_REGISTER_CLASS(Test, Typeoff, test, typeoff, test_typeoff_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Typeoff, stub, typeoff, stub_typeoff_method_entry, 0); - zend_declare_property_null(test_typeoff_ce, SL("property"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_typeoff_ce, SL("property"), ZEND_ACC_PROTECTED); return SUCCESS; } -PHP_METHOD(Test_Typeoff, testNativeStringFalse) { +PHP_METHOD(Stub_Typeoff, testNativeStringFalse) { zval testVar; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -45,7 +45,7 @@ PHP_METHOD(Test_Typeoff, testNativeStringFalse) { } -PHP_METHOD(Test_Typeoff, testNativeStringTrue) { +PHP_METHOD(Stub_Typeoff, testNativeStringTrue) { zval testVar; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -61,7 +61,7 @@ PHP_METHOD(Test_Typeoff, testNativeStringTrue) { } -PHP_METHOD(Test_Typeoff, testNativeIntFalse) { +PHP_METHOD(Stub_Typeoff, testNativeIntFalse) { zend_long testVar = 0; zval *this_ptr = getThis(); @@ -73,7 +73,7 @@ PHP_METHOD(Test_Typeoff, testNativeIntFalse) { } -PHP_METHOD(Test_Typeoff, testNativeIntTrue) { +PHP_METHOD(Stub_Typeoff, testNativeIntTrue) { zend_long testVar = 0; zval *this_ptr = getThis(); @@ -85,7 +85,7 @@ PHP_METHOD(Test_Typeoff, testNativeIntTrue) { } -PHP_METHOD(Test_Typeoff, testNativeDoubleTrue) { +PHP_METHOD(Stub_Typeoff, testNativeDoubleTrue) { double testVar = 0; zval *this_ptr = getThis(); @@ -97,7 +97,7 @@ PHP_METHOD(Test_Typeoff, testNativeDoubleTrue) { } -PHP_METHOD(Test_Typeoff, testNativeBoolTrue) { +PHP_METHOD(Stub_Typeoff, testNativeBoolTrue) { zend_bool testVar = 0; zval *this_ptr = getThis(); @@ -109,7 +109,7 @@ PHP_METHOD(Test_Typeoff, testNativeBoolTrue) { } -PHP_METHOD(Test_Typeoff, testNotBoolTrue) { +PHP_METHOD(Stub_Typeoff, testNotBoolTrue) { zval testVar; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -127,7 +127,7 @@ PHP_METHOD(Test_Typeoff, testNotBoolTrue) { } -PHP_METHOD(Test_Typeoff, testNativeBoolFalse) { +PHP_METHOD(Stub_Typeoff, testNativeBoolFalse) { zend_bool testVar = 0; zval *this_ptr = getThis(); @@ -139,7 +139,7 @@ PHP_METHOD(Test_Typeoff, testNativeBoolFalse) { } -PHP_METHOD(Test_Typeoff, testArrayFalse) { +PHP_METHOD(Stub_Typeoff, testArrayFalse) { zval testVar; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -155,7 +155,7 @@ PHP_METHOD(Test_Typeoff, testArrayFalse) { } -PHP_METHOD(Test_Typeoff, testArrayTrue) { +PHP_METHOD(Stub_Typeoff, testArrayTrue) { zval testVar; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -171,7 +171,7 @@ PHP_METHOD(Test_Typeoff, testArrayTrue) { } -PHP_METHOD(Test_Typeoff, testClassPropertyAccess) { +PHP_METHOD(Stub_Typeoff, testClassPropertyAccess) { zval _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -187,12 +187,12 @@ PHP_METHOD(Test_Typeoff, testClassPropertyAccess) { ZVAL_STRING(&_0, "test string"); zephir_update_property_zval(this_ptr, ZEND_STRL("property"), &_0); ZEPHIR_OBS_VAR(&_1); - zephir_read_property(&_1, this_ptr, SL("property"), PH_NOISY_CC); + zephir_read_property(&_1, this_ptr, ZEND_STRL("property"), PH_NOISY_CC); RETURN_MM_BOOL(Z_TYPE_P(&_1) == IS_STRING); } -PHP_METHOD(Test_Typeoff, testUnknownTypeOf) { +PHP_METHOD(Stub_Typeoff, testUnknownTypeOf) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *u, u_sub, _0; @@ -212,7 +212,7 @@ PHP_METHOD(Test_Typeoff, testUnknownTypeOf) { } -PHP_METHOD(Test_Typeoff, testCallableTypeOf) { +PHP_METHOD(Stub_Typeoff, testCallableTypeOf) { zval *cb, cb_sub; zval *this_ptr = getThis(); diff --git a/ext/stub/typeoff.zep.h b/ext/stub/typeoff.zep.h new file mode 100644 index 0000000000..76d1e00005 --- /dev/null +++ b/ext/stub/typeoff.zep.h @@ -0,0 +1,43 @@ + +extern zend_class_entry *stub_typeoff_ce; + +ZEPHIR_INIT_CLASS(Stub_Typeoff); + +PHP_METHOD(Stub_Typeoff, testNativeStringFalse); +PHP_METHOD(Stub_Typeoff, testNativeStringTrue); +PHP_METHOD(Stub_Typeoff, testNativeIntFalse); +PHP_METHOD(Stub_Typeoff, testNativeIntTrue); +PHP_METHOD(Stub_Typeoff, testNativeDoubleTrue); +PHP_METHOD(Stub_Typeoff, testNativeBoolTrue); +PHP_METHOD(Stub_Typeoff, testNotBoolTrue); +PHP_METHOD(Stub_Typeoff, testNativeBoolFalse); +PHP_METHOD(Stub_Typeoff, testArrayFalse); +PHP_METHOD(Stub_Typeoff, testArrayTrue); +PHP_METHOD(Stub_Typeoff, testClassPropertyAccess); +PHP_METHOD(Stub_Typeoff, testUnknownTypeOf); +PHP_METHOD(Stub_Typeoff, testCallableTypeOf); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_typeoff_testunknowntypeof, 0, 0, 1) + ZEND_ARG_INFO(0, u) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_typeoff_testcallabletypeof, 0, 0, 1) + ZEND_ARG_INFO(0, cb) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_typeoff_method_entry) { + PHP_ME(Stub_Typeoff, testNativeStringFalse, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Typeoff, testNativeStringTrue, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Typeoff, testNativeIntFalse, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Typeoff, testNativeIntTrue, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Typeoff, testNativeDoubleTrue, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Typeoff, testNativeBoolTrue, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Typeoff, testNotBoolTrue, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Typeoff, testNativeBoolFalse, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Typeoff, testArrayFalse, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Typeoff, testArrayTrue, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Typeoff, testClassPropertyAccess, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Typeoff, testUnknownTypeOf, arginfo_stub_typeoff_testunknowntypeof, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Typeoff, testCallableTypeOf, arginfo_stub_typeoff_testcallabletypeof, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/unknownclass.zep.c b/ext/stub/unknownclass.zep.c similarity index 73% rename from ext/test/unknownclass.zep.c rename to ext/stub/unknownclass.zep.c index 908e5636f0..35bd80e826 100644 --- a/ext/test/unknownclass.zep.c +++ b/ext/stub/unknownclass.zep.c @@ -14,9 +14,9 @@ #include "kernel/main.h" -ZEPHIR_INIT_CLASS(Test_UnknownClass) { +ZEPHIR_INIT_CLASS(Stub_UnknownClass) { - ZEPHIR_REGISTER_CLASS(Test, UnknownClass, test, unknownclass, NULL, 0); + ZEPHIR_REGISTER_CLASS(Stub, UnknownClass, stub, unknownclass, NULL, 0); return SUCCESS; diff --git a/ext/stub/unknownclass.zep.h b/ext/stub/unknownclass.zep.h new file mode 100644 index 0000000000..fb6bb32da3 --- /dev/null +++ b/ext/stub/unknownclass.zep.h @@ -0,0 +1,5 @@ + +extern zend_class_entry *stub_unknownclass_ce; + +ZEPHIR_INIT_CLASS(Stub_UnknownClass); + diff --git a/ext/test/unsettest.zep.c b/ext/stub/unsettest.zep.c similarity index 81% rename from ext/test/unsettest.zep.c rename to ext/stub/unsettest.zep.c index cf37bb8cbb..d62364bb19 100644 --- a/ext/test/unsettest.zep.c +++ b/ext/stub/unsettest.zep.c @@ -18,20 +18,20 @@ #include "kernel/operators.h" -/** - * Unset statement tests +/** + * Unset statement tests */ -ZEPHIR_INIT_CLASS(Test_Unsettest) { +ZEPHIR_INIT_CLASS(Stub_Unsettest) { - ZEPHIR_REGISTER_CLASS(Test, Unsettest, test, unsettest, test_unsettest_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Unsettest, stub, unsettest, stub_unsettest_method_entry, 0); - zend_declare_property_null(test_unsettest_ce, SL("property"), ZEND_ACC_PROTECTED); + zend_declare_property_null(stub_unsettest_ce, SL("property"), ZEND_ACC_PROTECTED); return SUCCESS; } -PHP_METHOD(Test_Unsettest, getProperty) { +PHP_METHOD(Stub_Unsettest, getProperty) { zval *this_ptr = getThis(); @@ -40,7 +40,7 @@ PHP_METHOD(Test_Unsettest, getProperty) { } -PHP_METHOD(Test_Unsettest, has) { +PHP_METHOD(Stub_Unsettest, has) { zval *key, key_sub, _0; zval *this_ptr = getThis(); @@ -52,12 +52,12 @@ PHP_METHOD(Test_Unsettest, has) { - zephir_read_property(&_0, this_ptr, SL("property"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("property"), PH_NOISY_CC | PH_READONLY); RETURN_BOOL(zephir_array_isset(&_0, key)); } -PHP_METHOD(Test_Unsettest, addValueToProperty) { +PHP_METHOD(Stub_Unsettest, addValueToProperty) { zval *key, key_sub, *value, value_sub; zval *this_ptr = getThis(); @@ -73,7 +73,7 @@ PHP_METHOD(Test_Unsettest, addValueToProperty) { } -PHP_METHOD(Test_Unsettest, testUnsetValueFromProperty) { +PHP_METHOD(Stub_Unsettest, testUnsetValueFromProperty) { zval *key, key_sub, _0; zval *this_ptr = getThis(); @@ -85,12 +85,12 @@ PHP_METHOD(Test_Unsettest, testUnsetValueFromProperty) { - zephir_read_property(&_0, this_ptr, SL("property"), PH_NOISY_CC | PH_READONLY); + zephir_read_property(&_0, this_ptr, ZEND_STRL("property"), PH_NOISY_CC | PH_READONLY); zephir_array_unset(&_0, key, PH_SEPARATE); } -PHP_METHOD(Test_Unsettest, testUnsetFromArray) { +PHP_METHOD(Stub_Unsettest, testUnsetFromArray) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *arrayParameter, arrayParameter_sub; @@ -110,7 +110,7 @@ PHP_METHOD(Test_Unsettest, testUnsetFromArray) { } -PHP_METHOD(Test_Unsettest, testUnsetFromArrayByIndexVar) { +PHP_METHOD(Stub_Unsettest, testUnsetFromArrayByIndexVar) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *arrayParameter, arrayParameter_sub, *index, index_sub; @@ -131,7 +131,7 @@ PHP_METHOD(Test_Unsettest, testUnsetFromArrayByIndexVar) { } -PHP_METHOD(Test_Unsettest, testUnsetProperty) { +PHP_METHOD(Stub_Unsettest, testUnsetProperty) { zval *this_ptr = getThis(); @@ -141,7 +141,7 @@ PHP_METHOD(Test_Unsettest, testUnsetProperty) { } -PHP_METHOD(Test_Unsettest, testStdClassUnset) { +PHP_METHOD(Stub_Unsettest, testStdClassUnset) { zval simpleObject, _0, _1; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -170,7 +170,7 @@ PHP_METHOD(Test_Unsettest, testStdClassUnset) { } -PHP_METHOD(Test_Unsettest, testUnsetTypedArray) { +PHP_METHOD(Stub_Unsettest, testUnsetTypedArray) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval key; diff --git a/ext/stub/unsettest.zep.h b/ext/stub/unsettest.zep.h new file mode 100644 index 0000000000..2312cb993b --- /dev/null +++ b/ext/stub/unsettest.zep.h @@ -0,0 +1,58 @@ + +extern zend_class_entry *stub_unsettest_ce; + +ZEPHIR_INIT_CLASS(Stub_Unsettest); + +PHP_METHOD(Stub_Unsettest, getProperty); +PHP_METHOD(Stub_Unsettest, has); +PHP_METHOD(Stub_Unsettest, addValueToProperty); +PHP_METHOD(Stub_Unsettest, testUnsetValueFromProperty); +PHP_METHOD(Stub_Unsettest, testUnsetFromArray); +PHP_METHOD(Stub_Unsettest, testUnsetFromArrayByIndexVar); +PHP_METHOD(Stub_Unsettest, testUnsetProperty); +PHP_METHOD(Stub_Unsettest, testStdClassUnset); +PHP_METHOD(Stub_Unsettest, testUnsetTypedArray); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_unsettest_has, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_unsettest_addvaluetoproperty, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_unsettest_testunsetvaluefromproperty, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_unsettest_testunsetfromarray, 0, 0, 1) + ZEND_ARG_INFO(0, arrayParameter) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_unsettest_testunsetfromarraybyindexvar, 0, 0, 2) + ZEND_ARG_INFO(0, arrayParameter) + ZEND_ARG_INFO(0, index) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_unsettest_testunsettypedarray, 0, 0, 2) + ZEND_ARG_ARRAY_INFO(0, arr, 0) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_unsettest_method_entry) { + PHP_ME(Stub_Unsettest, getProperty, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Unsettest, has, arginfo_stub_unsettest_has, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Unsettest, addValueToProperty, arginfo_stub_unsettest_addvaluetoproperty, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Unsettest, testUnsetValueFromProperty, arginfo_stub_unsettest_testunsetvaluefromproperty, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Unsettest, testUnsetFromArray, arginfo_stub_unsettest_testunsetfromarray, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Unsettest, testUnsetFromArrayByIndexVar, arginfo_stub_unsettest_testunsetfromarraybyindexvar, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Unsettest, testUnsetProperty, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Unsettest, testStdClassUnset, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Unsettest, testUnsetTypedArray, arginfo_stub_unsettest_testunsettypedarray, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/usetest.zep.c b/ext/stub/usetest.zep.c similarity index 83% rename from ext/test/usetest.zep.c rename to ext/stub/usetest.zep.c index d697feae97..b240cacfe5 100644 --- a/ext/test/usetest.zep.c +++ b/ext/stub/usetest.zep.c @@ -18,16 +18,16 @@ #include "kernel/memory.h" -ZEPHIR_INIT_CLASS(Test_UseTest) { +ZEPHIR_INIT_CLASS(Stub_UseTest) { - ZEPHIR_REGISTER_CLASS(Test, UseTest, test, usetest, test_usetest_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, UseTest, stub, usetest, stub_usetest_method_entry, 0); - zend_class_implements(test_usetest_ce, 1, spl_ce_Countable); + zend_class_implements(stub_usetest_ce, 1, spl_ce_Countable); return SUCCESS; } -PHP_METHOD(Test_UseTest, createInstance) { +PHP_METHOD(Stub_UseTest, createInstance) { zval *this_ptr = getThis(); @@ -37,7 +37,7 @@ PHP_METHOD(Test_UseTest, createInstance) { } -PHP_METHOD(Test_UseTest, count) { +PHP_METHOD(Stub_UseTest, count) { zval *this_ptr = getThis(); @@ -45,7 +45,7 @@ PHP_METHOD(Test_UseTest, count) { } -PHP_METHOD(Test_UseTest, testUseClass1) { +PHP_METHOD(Stub_UseTest, testUseClass1) { zend_class_entry *_0 = NULL; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -67,7 +67,7 @@ PHP_METHOD(Test_UseTest, testUseClass1) { } -PHP_METHOD(Test_UseTest, testUseClass2) { +PHP_METHOD(Stub_UseTest, testUseClass2) { zend_class_entry *_0 = NULL; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; @@ -89,7 +89,7 @@ PHP_METHOD(Test_UseTest, testUseClass2) { } -PHP_METHOD(Test_UseTest, testUseNamespaceAlias) { +PHP_METHOD(Stub_UseTest, testUseNamespaceAlias) { zend_class_entry *_0 = NULL; zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; diff --git a/ext/stub/usetest.zep.h b/ext/stub/usetest.zep.h new file mode 100644 index 0000000000..c7a6c5c141 --- /dev/null +++ b/ext/stub/usetest.zep.h @@ -0,0 +1,19 @@ + +extern zend_class_entry *stub_usetest_ce; + +ZEPHIR_INIT_CLASS(Stub_UseTest); + +PHP_METHOD(Stub_UseTest, createInstance); +PHP_METHOD(Stub_UseTest, count); +PHP_METHOD(Stub_UseTest, testUseClass1); +PHP_METHOD(Stub_UseTest, testUseClass2); +PHP_METHOD(Stub_UseTest, testUseNamespaceAlias); + +ZEPHIR_INIT_FUNCS(stub_usetest_method_entry) { + PHP_ME(Stub_UseTest, createInstance, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_UseTest, count, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_UseTest, testUseClass1, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_UseTest, testUseClass2, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_UseTest, testUseNamespaceAlias, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test/vars.zep.c b/ext/stub/vars.zep.c similarity index 92% rename from ext/test/vars.zep.c rename to ext/stub/vars.zep.c index b60d6aa1de..8400b99cec 100644 --- a/ext/test/vars.zep.c +++ b/ext/stub/vars.zep.c @@ -22,15 +22,15 @@ #include "kernel/operators.h" -ZEPHIR_INIT_CLASS(Test_Vars) { +ZEPHIR_INIT_CLASS(Stub_Vars) { - ZEPHIR_REGISTER_CLASS(Test, Vars, test, vars, test_vars_method_entry, 0); + ZEPHIR_REGISTER_CLASS(Stub, Vars, stub, vars, stub_vars_method_entry, 0); return SUCCESS; } -PHP_METHOD(Test_Vars, testParam) { +PHP_METHOD(Stub_Vars, testParam) { zend_string *_4; zend_ulong _3; @@ -55,8 +55,8 @@ PHP_METHOD(Test_Vars, testParam) { ZEPHIR_OBS_COPY_OR_DUP(&config, config_param); - zephir_array_fetch_string(&_0, &config, SL("dir"), PH_NOISY | PH_READONLY, "test/vars.zep", 8); - zephir_is_iterable(&_0, 0, "test/vars.zep", 11); + zephir_array_fetch_string(&_0, &config, SL("dir"), PH_NOISY | PH_READONLY, "stub/vars.zep", 8); + zephir_is_iterable(&_0, 0, "stub/vars.zep", 11); if (Z_TYPE_P(&_0) == IS_ARRAY) { ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _3, _4, _1) { @@ -98,7 +98,7 @@ PHP_METHOD(Test_Vars, testParam) { } -PHP_METHOD(Test_Vars, testVarDump) { +PHP_METHOD(Stub_Vars, testVarDump) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$false, a, ar, _0; @@ -128,7 +128,7 @@ PHP_METHOD(Test_Vars, testVarDump) { } -PHP_METHOD(Test_Vars, testVarDump2) { +PHP_METHOD(Stub_Vars, testVarDump2) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *ret, ret_sub, _0; @@ -150,7 +150,7 @@ PHP_METHOD(Test_Vars, testVarDump2) { } -PHP_METHOD(Test_Vars, testVarExport) { +PHP_METHOD(Stub_Vars, testVarExport) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval __$false, a, ar, ret, _0, _1, _2; @@ -191,7 +191,7 @@ PHP_METHOD(Test_Vars, testVarExport) { } -PHP_METHOD(Test_Vars, test88Issue) { +PHP_METHOD(Stub_Vars, test88Issue) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *param1_param = NULL, *param2_param = NULL, _0, _1, _2, _3; @@ -242,7 +242,7 @@ PHP_METHOD(Test_Vars, test88Issue) { } -PHP_METHOD(Test_Vars, test88IssueParam2InitString) { +PHP_METHOD(Stub_Vars, test88IssueParam2InitString) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *param1_param = NULL, *param2_param = NULL, _0; @@ -281,7 +281,7 @@ PHP_METHOD(Test_Vars, test88IssueParam2InitString) { } -PHP_METHOD(Test_Vars, testVarDump2param) { +PHP_METHOD(Stub_Vars, testVarDump2param) { zval *p1, p1_sub, *p2, p2_sub; zval *this_ptr = getThis(); @@ -298,7 +298,7 @@ PHP_METHOD(Test_Vars, testVarDump2param) { } -PHP_METHOD(Test_Vars, testVarDump3param) { +PHP_METHOD(Stub_Vars, testVarDump3param) { zval *p1, p1_sub, *p2, p2_sub, *p3, p3_sub; zval *this_ptr = getThis(); @@ -317,7 +317,7 @@ PHP_METHOD(Test_Vars, testVarDump3param) { } -PHP_METHOD(Test_Vars, testCountOptimizerVarDumpAndExport) { +PHP_METHOD(Stub_Vars, testCountOptimizerVarDumpAndExport) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *testVar, testVar_sub, _0, _1; @@ -344,7 +344,7 @@ PHP_METHOD(Test_Vars, testCountOptimizerVarDumpAndExport) { } -PHP_METHOD(Test_Vars, testArrayTypeVarDumpAndExport) { +PHP_METHOD(Stub_Vars, testArrayTypeVarDumpAndExport) { zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL; zval *testVar_param = NULL, _0, _1; @@ -379,7 +379,7 @@ PHP_METHOD(Test_Vars, testArrayTypeVarDumpAndExport) { /** * @link https://github.com/phalcon/zephir/issues/681 */ -PHP_METHOD(Test_Vars, testIntVarDump) { +PHP_METHOD(Stub_Vars, testIntVarDump) { zval _0, _1; zend_long a = 0; @@ -404,7 +404,7 @@ PHP_METHOD(Test_Vars, testIntVarDump) { } -PHP_METHOD(Test_Vars, testDoubleVarDump) { +PHP_METHOD(Stub_Vars, testDoubleVarDump) { zval _0, _1; double a = 0; @@ -429,7 +429,7 @@ PHP_METHOD(Test_Vars, testDoubleVarDump) { } -PHP_METHOD(Test_Vars, testBoolVarDump) { +PHP_METHOD(Stub_Vars, testBoolVarDump) { zval _0, _1; zend_bool a = 0; @@ -454,7 +454,7 @@ PHP_METHOD(Test_Vars, testBoolVarDump) { } -PHP_METHOD(Test_Vars, testGetDefinedVars) { +PHP_METHOD(Stub_Vars, testGetDefinedVars) { double pi; zend_long a; diff --git a/ext/stub/vars.zep.h b/ext/stub/vars.zep.h new file mode 100644 index 0000000000..be5239c828 --- /dev/null +++ b/ext/stub/vars.zep.h @@ -0,0 +1,90 @@ + +extern zend_class_entry *stub_vars_ce; + +ZEPHIR_INIT_CLASS(Stub_Vars); + +PHP_METHOD(Stub_Vars, testParam); +PHP_METHOD(Stub_Vars, testVarDump); +PHP_METHOD(Stub_Vars, testVarDump2); +PHP_METHOD(Stub_Vars, testVarExport); +PHP_METHOD(Stub_Vars, test88Issue); +PHP_METHOD(Stub_Vars, test88IssueParam2InitString); +PHP_METHOD(Stub_Vars, testVarDump2param); +PHP_METHOD(Stub_Vars, testVarDump3param); +PHP_METHOD(Stub_Vars, testCountOptimizerVarDumpAndExport); +PHP_METHOD(Stub_Vars, testArrayTypeVarDumpAndExport); +PHP_METHOD(Stub_Vars, testIntVarDump); +PHP_METHOD(Stub_Vars, testDoubleVarDump); +PHP_METHOD(Stub_Vars, testBoolVarDump); +PHP_METHOD(Stub_Vars, testGetDefinedVars); + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_vars_testparam, 0, 0, 1) + ZEND_ARG_ARRAY_INFO(0, config, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_vars_testvardump2, 0, 0, 1) + ZEND_ARG_INFO(0, ret) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_vars_test88issue, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, param1, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, param1) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, param2, IS_STRING, 1) +#else + ZEND_ARG_INFO(0, param2) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_vars_test88issueparam2initstring, 0, 0, 1) +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, param1, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, param1) +#endif +#if PHP_VERSION_ID >= 70200 + ZEND_ARG_TYPE_INFO(0, param2, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, param2) +#endif +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_vars_testvardump2param, 0, 0, 2) + ZEND_ARG_INFO(0, p1) + ZEND_ARG_INFO(0, p2) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_vars_testvardump3param, 0, 0, 3) + ZEND_ARG_INFO(0, p1) + ZEND_ARG_INFO(0, p2) + ZEND_ARG_INFO(0, p3) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_vars_testcountoptimizervardumpandexport, 0, 0, 1) + ZEND_ARG_INFO(0, testVar) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_vars_testarraytypevardumpandexport, 0, 0, 0) + ZEND_ARG_ARRAY_INFO(0, testVar, 0) +ZEND_END_ARG_INFO() + +ZEPHIR_INIT_FUNCS(stub_vars_method_entry) { + PHP_ME(Stub_Vars, testParam, arginfo_stub_vars_testparam, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Vars, testVarDump, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Vars, testVarDump2, arginfo_stub_vars_testvardump2, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Vars, testVarExport, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Vars, test88Issue, arginfo_stub_vars_test88issue, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Vars, test88IssueParam2InitString, arginfo_stub_vars_test88issueparam2initstring, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Vars, testVarDump2param, arginfo_stub_vars_testvardump2param, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Vars, testVarDump3param, arginfo_stub_vars_testvardump3param, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Vars, testCountOptimizerVarDumpAndExport, arginfo_stub_vars_testcountoptimizervardumpandexport, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Vars, testArrayTypeVarDumpAndExport, arginfo_stub_vars_testarraytypevardumpandexport, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Vars, testIntVarDump, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Vars, testDoubleVarDump, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Vars, testBoolVarDump, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Stub_Vars, testGetDefinedVars, NULL, ZEND_ACC_PUBLIC) + PHP_FE_END +}; diff --git a/ext/test.c b/ext/test.c deleted file mode 100644 index 3903060462..0000000000 --- a/ext/test.c +++ /dev/null @@ -1,633 +0,0 @@ - -/* This file was generated automatically by Zephir do not modify it! */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include "php_ext.h" -#include "test.h" - -#include - -#include -#include -#include - -#include "kernel/globals.h" -#include "kernel/main.h" -#include "kernel/fcall.h" -#include "kernel/memory.h" - - - -zend_class_entry *test_testinterface_ce; -zend_class_entry *test_methodinterface_ce; -zend_class_entry *test_oo_scopes_scopetesterinterface_ce; -zend_class_entry *test_ooimpl_zbeginning_ce; -zend_class_entry *test_diinterface_ce; -zend_class_entry *test_extendedinterface_ce; -zend_class_entry *test_integration_psr_http_message_messageinterfaceex_ce; -zend_class_entry *test_ooimpl_abeginning_ce; -zend_class_entry *test_oo_extend_exception_ce; -zend_class_entry *test_oo_extend_db_exception_ce; -zend_class_entry *test_scallparent_ce; -zend_class_entry *test_constantsparent_ce; -zend_class_entry *test_globals_session_base_ce; -zend_class_entry *test_oo_abstractstatic_ce; -zend_class_entry *test_oo_extend_db_query_exception_ce; -zend_class_entry *test_oo_oodynamica_ce; -zend_class_entry *test_oo_scopes_hasprivatemethod_ce; -zend_class_entry *test_properties_publicproperties_ce; -zend_class_entry *test_0__closure_ce; -zend_class_entry *test_10__closure_ce; -zend_class_entry *test_11__closure_ce; -zend_class_entry *test_12__closure_ce; -zend_class_entry *test_1__closure_ce; -zend_class_entry *test_2__closure_ce; -zend_class_entry *test_3__closure_ce; -zend_class_entry *test_4__closure_ce; -zend_class_entry *test_5__closure_ce; -zend_class_entry *test_6__closure_ce; -zend_class_entry *test_7__closure_ce; -zend_class_entry *test_8__closure_ce; -zend_class_entry *test_9__closure_ce; -zend_class_entry *test_arithmetic_ce; -zend_class_entry *test_arrayaccessobj_ce; -zend_class_entry *test_arrayaccesstest_ce; -zend_class_entry *test_arrayiterator_ce; -zend_class_entry *test_arrayiteratortest_ce; -zend_class_entry *test_arrayobject_ce; -zend_class_entry *test_arraysearch_ce; -zend_class_entry *test_assign_ce; -zend_class_entry *test_bench_foo_ce; -zend_class_entry *test_bitwise_ce; -zend_class_entry *test_branchprediction_ce; -zend_class_entry *test_builtin_arraymethods_ce; -zend_class_entry *test_builtin_charmethods_ce; -zend_class_entry *test_builtin_intmethods_ce; -zend_class_entry *test_builtin_stringmethods_ce; -zend_class_entry *test_cast_ce; -zend_class_entry *test_cblock_ce; -zend_class_entry *test_chars_ce; -zend_class_entry *test_closures_ce; -zend_class_entry *test_compare_ce; -zend_class_entry *test_concat_ce; -zend_class_entry *test_constants_ce; -zend_class_entry *test_constantsinterface_ce; -zend_class_entry *test_constantsinterfacea_ce; -zend_class_entry *test_constantsinterfaceb_ce; -zend_class_entry *test_declaretest_ce; -zend_class_entry *test_echoes_ce; -zend_class_entry *test_emptytest_ce; -zend_class_entry *test_evaltest_ce; -zend_class_entry *test_exception_ce; -zend_class_entry *test_exceptions_ce; -zend_class_entry *test_exists_ce; -zend_class_entry *test_exitdie_ce; -zend_class_entry *test_factorial_ce; -zend_class_entry *test_fannkuch_ce; -zend_class_entry *test_fasta_ce; -zend_class_entry *test_fcall_ce; -zend_class_entry *test_fetchtest_ce; -zend_class_entry *test_fibonnaci_ce; -zend_class_entry *test_flow_ce; -zend_class_entry *test_flow_switchflow_ce; -zend_class_entry *test_fortytwo_ce; -zend_class_entry *test_functional_ce; -zend_class_entry *test_functionexists_ce; -zend_class_entry *test_geometry_ce; -zend_class_entry *test_globals_ce; -zend_class_entry *test_globals_env_ce; -zend_class_entry *test_globals_post_ce; -zend_class_entry *test_globals_server_ce; -zend_class_entry *test_globals_serverrequestfactory_ce; -zend_class_entry *test_globals_session_child_ce; -zend_class_entry *test_instance_ce; -zend_class_entry *test_instanceoff_ce; -zend_class_entry *test_internalclasses_ce; -zend_class_entry *test_internalinterfaces_ce; -zend_class_entry *test_invoke_ce; -zend_class_entry *test_issettest_ce; -zend_class_entry *test_issue1404_ce; -zend_class_entry *test_issue1521_ce; -zend_class_entry *test_issues_ce; -zend_class_entry *test_json_ce; -zend_class_entry *test_logical_ce; -zend_class_entry *test_mcall_caller_ce; -zend_class_entry *test_mcall_ce; -zend_class_entry *test_mcallchained_ce; -zend_class_entry *test_mcalldynamic_ce; -zend_class_entry *test_mcallinternal_ce; -zend_class_entry *test_methodabstract_ce; -zend_class_entry *test_methodargs_ce; -zend_class_entry *test_nativearray_ce; -zend_class_entry *test_oo_abstractclass_ce; -zend_class_entry *test_oo_ce; -zend_class_entry *test_oo_concretestatic_ce; -zend_class_entry *test_oo_constantsinterface_ce; -zend_class_entry *test_oo_deprecatedmethods_ce; -zend_class_entry *test_oo_dynamicprop_ce; -zend_class_entry *test_oo_extend_db_query_placeholder_exception_ce; -zend_class_entry *test_oo_extend_spl_arrayobject_ce; -zend_class_entry *test_oo_extend_spl_directoryiterator_ce; -zend_class_entry *test_oo_extend_spl_doublylinkedlist_ce; -zend_class_entry *test_oo_extend_spl_fileinfo_ce; -zend_class_entry *test_oo_extend_spl_fileobject_ce; -zend_class_entry *test_oo_extend_spl_filesystemiterator_ce; -zend_class_entry *test_oo_extend_spl_fixedarray_ce; -zend_class_entry *test_oo_extend_spl_globiterator_ce; -zend_class_entry *test_oo_extend_spl_heap_ce; -zend_class_entry *test_oo_extend_spl_maxheap_ce; -zend_class_entry *test_oo_extend_spl_minheap_ce; -zend_class_entry *test_oo_extend_spl_priorityqueue_ce; -zend_class_entry *test_oo_extend_spl_queue_ce; -zend_class_entry *test_oo_extend_spl_recursivedirectoryiterator_ce; -zend_class_entry *test_oo_extend_spl_stack_ce; -zend_class_entry *test_oo_extend_spl_tempfileobject_ce; -zend_class_entry *test_oo_extendpdoclass_ce; -zend_class_entry *test_oo_ooconstruct_ce; -zend_class_entry *test_oo_ooconstructparams_ce; -zend_class_entry *test_oo_oodestruct_ce; -zend_class_entry *test_oo_oodynamicb_ce; -zend_class_entry *test_oo_oonativeimplements_ce; -zend_class_entry *test_oo_oonoconstruct_ce; -zend_class_entry *test_oo_ooparams_ce; -zend_class_entry *test_oo_param_ce; -zend_class_entry *test_oo_propertyaccess_ce; -zend_class_entry *test_oo_scopes_abstractclass_ce; -zend_class_entry *test_oo_scopes_abstractclassmagic_ce; -zend_class_entry *test_oo_scopes_privatescopetester_ce; -zend_class_entry *test_operator_ce; -zend_class_entry *test_optimizers_acos_ce; -zend_class_entry *test_optimizers_arraymerge_ce; -zend_class_entry *test_optimizers_asin_ce; -zend_class_entry *test_optimizers_cos_ce; -zend_class_entry *test_optimizers_createarray_ce; -zend_class_entry *test_optimizers_isscalar_ce; -zend_class_entry *test_optimizers_ldexp_ce; -zend_class_entry *test_optimizers_sin_ce; -zend_class_entry *test_optimizers_sqrt_ce; -zend_class_entry *test_optimizers_strreplace_ce; -zend_class_entry *test_optimizers_substr_ce; -zend_class_entry *test_optimizers_tan_ce; -zend_class_entry *test_pdostatement_ce; -zend_class_entry *test_pregmatch_ce; -zend_class_entry *test_properties_app_ce; -zend_class_entry *test_properties_extendspublicproperties_ce; -zend_class_entry *test_properties_privateproperties_ce; -zend_class_entry *test_properties_propertyarray_ce; -zend_class_entry *test_properties_propertyupdate_ce; -zend_class_entry *test_properties_protectedproperties_ce; -zend_class_entry *test_properties_staticprivateproperties_ce; -zend_class_entry *test_properties_staticpropertyarray_ce; -zend_class_entry *test_properties_staticprotectedproperties_ce; -zend_class_entry *test_properties_staticpublicproperties_ce; -zend_class_entry *test_quantum_ce; -zend_class_entry *test_range_ce; -zend_class_entry *test_references_ce; -zend_class_entry *test_regexdna_ce; -zend_class_entry *test_requires_ce; -zend_class_entry *test_requires_external3_ce; -zend_class_entry *test_resourcetest_ce; -zend_class_entry *test_returns_ce; -zend_class_entry *test_router_ce; -zend_class_entry *test_router_exception_ce; -zend_class_entry *test_router_route_ce; -zend_class_entry *test_scall_ce; -zend_class_entry *test_scalldynamic_ce; -zend_class_entry *test_scallexternal_ce; -zend_class_entry *test_scope_ce; -zend_class_entry *test_sort_ce; -zend_class_entry *test_spectralnorm_ce; -zend_class_entry *test_spropertyaccess_ce; -zend_class_entry *test_statements_ce; -zend_class_entry *test_strings_ce; -zend_class_entry *test_stubs_ce; -zend_class_entry *test_ternary_ce; -zend_class_entry *test_trytest_ce; -zend_class_entry *test_typehinting_testabstract_ce; -zend_class_entry *test_typeinstances_ce; -zend_class_entry *test_typeoff_ce; -zend_class_entry *test_unknownclass_ce; -zend_class_entry *test_unsettest_ce; -zend_class_entry *test_usetest_ce; -zend_class_entry *test_vars_ce; - -ZEND_DECLARE_MODULE_GLOBALS(test) - -PHP_INI_BEGIN() - STD_PHP_INI_BOOLEAN("test.db.my_setting_1", "0", PHP_INI_ALL, OnUpdateBool, db.my_setting_1, zend_test_globals, test_globals) - - - - STD_PHP_INI_BOOLEAN("test.orm.cache_enable", "1", PHP_INI_ALL, OnUpdateBool, orm.cache_enable, zend_test_globals, test_globals) - STD_PHP_INI_BOOLEAN("extension.test_ini_variable", "1", PHP_INI_ALL, OnUpdateBool, extension.test_ini_variable, zend_test_globals, test_globals) - STD_PHP_INI_BOOLEAN("ini-entry.my_setting_1", "1", PHP_INI_ALL, OnUpdateBool, my_setting_1, zend_test_globals, test_globals) - STD_PHP_INI_BOOLEAN("test.test_setting_1", "1", PHP_INI_ALL, OnUpdateBool, test_setting_1, zend_test_globals, test_globals) -PHP_INI_END() - -static PHP_MINIT_FUNCTION(test) -{ - REGISTER_INI_ENTRIES(); - zephir_module_init(); - ZEPHIR_INIT(Test_TestInterface); - ZEPHIR_INIT(Test_MethodInterface); - ZEPHIR_INIT(Test_OoImpl_ZBeginning); - ZEPHIR_INIT(Test_Oo_Scopes_ScopeTesterInterface); - ZEPHIR_INIT(Test_DiInterface); - ZEPHIR_INIT(Test_ExtendedInterface); - ZEPHIR_INIT(Test_Integration_Psr_Http_Message_MessageInterfaceEx); - ZEPHIR_INIT(Test_OoImpl_ABeginning); - ZEPHIR_INIT(Test_Oo_Extend_Exception); - ZEPHIR_INIT(Test_Oo_Extend_Db_Exception); - ZEPHIR_INIT(Test_ScallParent); - ZEPHIR_INIT(Test_ConstantsParent); - ZEPHIR_INIT(Test_Globals_Session_Base); - ZEPHIR_INIT(Test_Oo_AbstractStatic); - ZEPHIR_INIT(Test_Oo_Extend_Db_Query_Exception); - ZEPHIR_INIT(Test_Oo_OoDynamicA); - ZEPHIR_INIT(Test_Oo_Scopes_HasPrivateMethod); - ZEPHIR_INIT(Test_Properties_PublicProperties); - ZEPHIR_INIT(Test_Arithmetic); - ZEPHIR_INIT(Test_ArrayAccessObj); - ZEPHIR_INIT(Test_ArrayAccessTest); - ZEPHIR_INIT(Test_ArrayIterator); - ZEPHIR_INIT(Test_ArrayIteratorTest); - ZEPHIR_INIT(Test_ArrayObject); - ZEPHIR_INIT(Test_ArraySearch); - ZEPHIR_INIT(Test_Assign); - ZEPHIR_INIT(Test_Bench_Foo); - ZEPHIR_INIT(Test_Bitwise); - ZEPHIR_INIT(Test_BranchPrediction); - ZEPHIR_INIT(Test_BuiltIn_ArrayMethods); - ZEPHIR_INIT(Test_BuiltIn_CharMethods); - ZEPHIR_INIT(Test_BuiltIn_IntMethods); - ZEPHIR_INIT(Test_BuiltIn_StringMethods); - ZEPHIR_INIT(Test_Cast); - ZEPHIR_INIT(Test_Cblock); - ZEPHIR_INIT(Test_Chars); - ZEPHIR_INIT(Test_Closures); - ZEPHIR_INIT(Test_Compare); - ZEPHIR_INIT(Test_Concat); - ZEPHIR_INIT(Test_Constants); - ZEPHIR_INIT(Test_ConstantsInterface); - ZEPHIR_INIT(Test_ConstantsInterfaceA); - ZEPHIR_INIT(Test_ConstantsInterfaceB); - ZEPHIR_INIT(Test_DeclareTest); - ZEPHIR_INIT(Test_Echoes); - ZEPHIR_INIT(Test_EmptyTest); - ZEPHIR_INIT(Test_EvalTest); - ZEPHIR_INIT(Test_Exception); - ZEPHIR_INIT(Test_Exceptions); - ZEPHIR_INIT(Test_Exists); - ZEPHIR_INIT(Test_ExitDie); - ZEPHIR_INIT(Test_Factorial); - ZEPHIR_INIT(Test_Fannkuch); - ZEPHIR_INIT(Test_Fasta); - ZEPHIR_INIT(Test_Fcall); - ZEPHIR_INIT(Test_FetchTest); - ZEPHIR_INIT(Test_Fibonnaci); - ZEPHIR_INIT(Test_Flow); - ZEPHIR_INIT(Test_Flow_SwitchFlow); - ZEPHIR_INIT(Test_FortyTwo); - ZEPHIR_INIT(Test_FunctionExists); - ZEPHIR_INIT(Test_Functional); - ZEPHIR_INIT(Test_Geometry); - ZEPHIR_INIT(Test_Globals); - ZEPHIR_INIT(Test_Globals_Env); - ZEPHIR_INIT(Test_Globals_Post); - ZEPHIR_INIT(Test_Globals_Server); - ZEPHIR_INIT(Test_Globals_ServerRequestFactory); - ZEPHIR_INIT(Test_Globals_Session_Child); - ZEPHIR_INIT(Test_Instance); - ZEPHIR_INIT(Test_Instanceoff); - ZEPHIR_INIT(Test_InternalClasses); - ZEPHIR_INIT(Test_InternalInterfaces); - ZEPHIR_INIT(Test_Invoke); - ZEPHIR_INIT(Test_IssetTest); - ZEPHIR_INIT(Test_Issue1404); - ZEPHIR_INIT(Test_Issue1521); - ZEPHIR_INIT(Test_Issues); - ZEPHIR_INIT(Test_Json); - ZEPHIR_INIT(Test_Logical); - ZEPHIR_INIT(Test_Mcall); - ZEPHIR_INIT(Test_McallChained); - ZEPHIR_INIT(Test_McallDynamic); - ZEPHIR_INIT(Test_McallInternal); - ZEPHIR_INIT(Test_Mcall_Caller); - ZEPHIR_INIT(Test_MethodAbstract); - ZEPHIR_INIT(Test_MethodArgs); - ZEPHIR_INIT(Test_NativeArray); - ZEPHIR_INIT(Test_Oo); - ZEPHIR_INIT(Test_Oo_AbstractClass); - ZEPHIR_INIT(Test_Oo_ConcreteStatic); - ZEPHIR_INIT(Test_Oo_ConstantsInterface); - ZEPHIR_INIT(Test_Oo_DeprecatedMethods); - ZEPHIR_INIT(Test_Oo_DynamicProp); - ZEPHIR_INIT(Test_Oo_ExtendPdoClass); - ZEPHIR_INIT(Test_Oo_Extend_Db_Query_Placeholder_Exception); - ZEPHIR_INIT(Test_Oo_Extend_Spl_ArrayObject); - ZEPHIR_INIT(Test_Oo_Extend_Spl_DirectoryIterator); - ZEPHIR_INIT(Test_Oo_Extend_Spl_DoublyLinkedList); - ZEPHIR_INIT(Test_Oo_Extend_Spl_FileInfo); - ZEPHIR_INIT(Test_Oo_Extend_Spl_FileObject); - ZEPHIR_INIT(Test_Oo_Extend_Spl_FilesystemIterator); - ZEPHIR_INIT(Test_Oo_Extend_Spl_FixedArray); - ZEPHIR_INIT(Test_Oo_Extend_Spl_GlobIterator); - ZEPHIR_INIT(Test_Oo_Extend_Spl_Heap); - ZEPHIR_INIT(Test_Oo_Extend_Spl_MaxHeap); - ZEPHIR_INIT(Test_Oo_Extend_Spl_MinHeap); - ZEPHIR_INIT(Test_Oo_Extend_Spl_PriorityQueue); - ZEPHIR_INIT(Test_Oo_Extend_Spl_Queue); - ZEPHIR_INIT(Test_Oo_Extend_Spl_RecursiveDirectoryIterator); - ZEPHIR_INIT(Test_Oo_Extend_Spl_Stack); - ZEPHIR_INIT(Test_Oo_Extend_Spl_TempFileObject); - ZEPHIR_INIT(Test_Oo_OoConstruct); - ZEPHIR_INIT(Test_Oo_OoConstructParams); - ZEPHIR_INIT(Test_Oo_OoDestruct); - ZEPHIR_INIT(Test_Oo_OoDynamicB); - ZEPHIR_INIT(Test_Oo_OoNativeImplements); - ZEPHIR_INIT(Test_Oo_OoNoConstruct); - ZEPHIR_INIT(Test_Oo_OoParams); - ZEPHIR_INIT(Test_Oo_Param); - ZEPHIR_INIT(Test_Oo_PropertyAccess); - ZEPHIR_INIT(Test_Oo_Scopes_AbstractClass); - ZEPHIR_INIT(Test_Oo_Scopes_AbstractClassMagic); - ZEPHIR_INIT(Test_Oo_Scopes_PrivateScopeTester); - ZEPHIR_INIT(Test_Operator); - ZEPHIR_INIT(Test_Optimizers_ACos); - ZEPHIR_INIT(Test_Optimizers_ASin); - ZEPHIR_INIT(Test_Optimizers_ArrayMerge); - ZEPHIR_INIT(Test_Optimizers_Cos); - ZEPHIR_INIT(Test_Optimizers_CreateArray); - ZEPHIR_INIT(Test_Optimizers_IsScalar); - ZEPHIR_INIT(Test_Optimizers_Ldexp); - ZEPHIR_INIT(Test_Optimizers_Sin); - ZEPHIR_INIT(Test_Optimizers_Sqrt); - ZEPHIR_INIT(Test_Optimizers_StrReplace); - ZEPHIR_INIT(Test_Optimizers_Substr); - ZEPHIR_INIT(Test_Optimizers_Tan); - ZEPHIR_INIT(Test_PdoStatement); - ZEPHIR_INIT(Test_Pregmatch); - ZEPHIR_INIT(Test_Properties_App); - ZEPHIR_INIT(Test_Properties_ExtendsPublicProperties); - ZEPHIR_INIT(Test_Properties_PrivateProperties); - ZEPHIR_INIT(Test_Properties_PropertyArray); - ZEPHIR_INIT(Test_Properties_PropertyUpdate); - ZEPHIR_INIT(Test_Properties_ProtectedProperties); - ZEPHIR_INIT(Test_Properties_StaticPrivateProperties); - ZEPHIR_INIT(Test_Properties_StaticPropertyArray); - ZEPHIR_INIT(Test_Properties_StaticProtectedProperties); - ZEPHIR_INIT(Test_Properties_StaticPublicProperties); - ZEPHIR_INIT(Test_Quantum); - ZEPHIR_INIT(Test_Range); - ZEPHIR_INIT(Test_References); - ZEPHIR_INIT(Test_RegexDNA); - ZEPHIR_INIT(Test_Requires); - ZEPHIR_INIT(Test_Requires_External3); - ZEPHIR_INIT(Test_ResourceTest); - ZEPHIR_INIT(Test_Returns); - ZEPHIR_INIT(Test_Router); - ZEPHIR_INIT(Test_Router_Exception); - ZEPHIR_INIT(Test_Router_Route); - ZEPHIR_INIT(Test_SPropertyAccess); - ZEPHIR_INIT(Test_Scall); - ZEPHIR_INIT(Test_ScallDynamic); - ZEPHIR_INIT(Test_ScallExternal); - ZEPHIR_INIT(Test_Scope); - ZEPHIR_INIT(Test_Sort); - ZEPHIR_INIT(Test_SpectralNorm); - ZEPHIR_INIT(Test_Statements); - ZEPHIR_INIT(Test_Strings); - ZEPHIR_INIT(Test_Stubs); - ZEPHIR_INIT(Test_Ternary); - ZEPHIR_INIT(Test_TryTest); - ZEPHIR_INIT(Test_TypeHinting_TestAbstract); - ZEPHIR_INIT(Test_TypeInstances); - ZEPHIR_INIT(Test_Typeoff); - ZEPHIR_INIT(Test_UnknownClass); - ZEPHIR_INIT(Test_Unsettest); - ZEPHIR_INIT(Test_UseTest); - ZEPHIR_INIT(Test_Vars); - ZEPHIR_INIT(test_0__closure); - ZEPHIR_INIT(test_10__closure); - ZEPHIR_INIT(test_11__closure); - ZEPHIR_INIT(test_12__closure); - ZEPHIR_INIT(test_1__closure); - ZEPHIR_INIT(test_2__closure); - ZEPHIR_INIT(test_3__closure); - ZEPHIR_INIT(test_4__closure); - ZEPHIR_INIT(test_5__closure); - ZEPHIR_INIT(test_6__closure); - ZEPHIR_INIT(test_7__closure); - ZEPHIR_INIT(test_8__closure); - ZEPHIR_INIT(test_9__closure); - - return SUCCESS; -} - -#ifndef ZEPHIR_RELEASE -static PHP_MSHUTDOWN_FUNCTION(test) -{ - - zephir_deinitialize_memory(TSRMLS_C); - UNREGISTER_INI_ENTRIES(); - return SUCCESS; -} -#endif - -/** - * Initialize globals on each request or each thread started - */ -static void php_zephir_init_globals(zend_test_globals *test_globals TSRMLS_DC) -{ - test_globals->initialized = 0; - - /* Cache Enabled */ - test_globals->cache_enabled = 1; - - /* Recursive Lock */ - test_globals->recursive_lock = 0; - - /* Static cache */ - memset(test_globals->scache, '\0', sizeof(zephir_fcall_cache_entry*) * ZEPHIR_MAX_CACHE_SLOTS); - - - test_globals->db.my_setting_2 = 100; - test_globals->db.my_setting_3 = 7.5; - test_globals->orm.cache_level = 3; - - - test_globals->my_setting_1 = 1; - test_globals->test_setting_1 = 1; - test_globals->my_setting_2 = 10; - test_globals->my_setting_3 = 15.2; - test_globals->my_setting_4 = 'A'; - - -} - -/** - * Initialize globals only on each thread started - */ -static void php_zephir_init_module_globals(zend_test_globals *test_globals TSRMLS_DC) -{ - -} - -static PHP_RINIT_FUNCTION(test) -{ - zend_test_globals *test_globals_ptr; -#ifdef ZTS - tsrm_ls = ts_resource(0); -#endif - test_globals_ptr = ZEPHIR_VGLOBAL; - - php_zephir_init_globals(test_globals_ptr); - zephir_initialize_memory(test_globals_ptr); - - zephir_init_static_properties_Test_Properties_StaticPropertyArray(TSRMLS_C); - zephir_init_static_properties_Test_SPropertyAccess(TSRMLS_C); - - return SUCCESS; -} - -static PHP_RSHUTDOWN_FUNCTION(test) -{ - - zephir_deinitialize_memory(TSRMLS_C); - return SUCCESS; -} - - - -static PHP_MINFO_FUNCTION(test) -{ - php_info_print_box_start(0); - php_printf("%s", PHP_TEST_DESCRIPTION); - php_info_print_box_end(); - - php_info_print_table_start(); - php_info_print_table_header(2, PHP_TEST_NAME, "enabled"); - php_info_print_table_row(2, "Author", PHP_TEST_AUTHOR); - php_info_print_table_row(2, "Version", PHP_TEST_VERSION); - php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__ ); - php_info_print_table_row(2, "Powered by Zephir", "Version " PHP_TEST_ZEPVERSION); - php_info_print_table_end(); - php_info_print_table_start(); - php_info_print_table_header(2, "Test Extension support", "Value"); - php_info_print_table_row(2, "Lifecycle hooks", "PHP provides several lifecycle events, which extensions can use to perform common initialization or shutdown tasks."); - php_info_print_table_row(2, "Static Analysis", "Test extensions' compiler provides static analysis of the compiled code."); - php_info_print_table_end(); - php_info_print_table_start(); - php_info_print_table_header(2, "Test variable", "Value"); - php_info_print_table_row(2, "Extension", "Installed"); - php_info_print_table_row(2, "NFR", "Contributions are welcome!"); - php_info_print_table_end(); - - DISPLAY_INI_ENTRIES(); -} - -static PHP_GINIT_FUNCTION(test) -{ - php_zephir_init_globals(test_globals); - php_zephir_init_module_globals(test_globals); -} - -static PHP_GSHUTDOWN_FUNCTION(test) -{ - -} - -PHP_FUNCTION(g_test_zephir_global_method_test); -ZEND_BEGIN_ARG_INFO_EX(arginfo_g_test_zephir_global_method_test, 0, 0, 1) - ZEND_ARG_INFO(0, str) -ZEND_END_ARG_INFO() - -PHP_FUNCTION(g_test_zephir_global_method_with_type_casting); -ZEND_BEGIN_ARG_INFO_EX(arginfo_g_test_zephir_global_method_with_type_casting, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, variable, stdClass, 0) -ZEND_END_ARG_INFO() - -PHP_FUNCTION(f_Test_zephir_namespaced_method_test); -ZEND_BEGIN_ARG_INFO_EX(arginfo_f_test_zephir_namespaced_method_test, 0, 0, 1) - ZEND_ARG_INFO(0, str) -ZEND_END_ARG_INFO() - -PHP_FUNCTION(f_Test_test_call_relative_object_hint); -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_f_test_test_call_relative_object_hint, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_f_test_test_call_relative_object_hint, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_OBJ_INFO(0, a, Test\\Oo\\PropertyAccess, 0) -ZEND_END_ARG_INFO() - -PHP_FUNCTION(f_Test_zephir_namespaced_method_with_type_casting); -ZEND_BEGIN_ARG_INFO_EX(arginfo_f_test_zephir_namespaced_method_with_type_casting, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, variable, stdClass, 0) -ZEND_END_ARG_INFO() - -PHP_FUNCTION(f_Test_test_call_object_hint); -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_f_test_test_call_object_hint, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_f_test_test_call_object_hint, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_OBJ_INFO(0, a, Test\\Oo\\PropertyAccess, 0) -ZEND_END_ARG_INFO() - - -zend_function_entry php_test_functions[] = { - ZEND_NAMED_FE(zephir_global_method_test, ZEND_FN(g_test_zephir_global_method_test), arginfo_g_test_zephir_global_method_test) -ZEND_NAMED_FE(zephir_global_method_with_type_casting, ZEND_FN(g_test_zephir_global_method_with_type_casting), arginfo_g_test_zephir_global_method_with_type_casting) -ZEND_NS_NAMED_FE("Test", zephir_namespaced_method_test, ZEND_FN(f_Test_zephir_namespaced_method_test), arginfo_f_test_zephir_namespaced_method_test) -ZEND_NS_NAMED_FE("Test", test_call_relative_object_hint, ZEND_FN(f_Test_test_call_relative_object_hint), arginfo_f_test_test_call_relative_object_hint) -ZEND_NS_NAMED_FE("Test", zephir_namespaced_method_with_type_casting, ZEND_FN(f_Test_zephir_namespaced_method_with_type_casting), arginfo_f_test_zephir_namespaced_method_with_type_casting) -ZEND_NS_NAMED_FE("Test", test_call_object_hint, ZEND_FN(f_Test_test_call_object_hint), arginfo_f_test_test_call_object_hint) -ZEND_FE_END - -}; - -static const zend_module_dep php_test_deps[] = { - ZEND_MOD_REQUIRED("pdo") - ZEND_MOD_REQUIRED("spl") - ZEND_MOD_REQUIRED("standard") - ZEND_MOD_REQUIRED("hash") - ZEND_MOD_REQUIRED("json") - ZEND_MOD_END -}; - -zend_module_entry test_module_entry = { - STANDARD_MODULE_HEADER_EX, - NULL, - php_test_deps, - PHP_TEST_EXTNAME, - php_test_functions, - PHP_MINIT(test), -#ifndef ZEPHIR_RELEASE - PHP_MSHUTDOWN(test), -#else - NULL, -#endif - PHP_RINIT(test), - PHP_RSHUTDOWN(test), - PHP_MINFO(test), - PHP_TEST_VERSION, - ZEND_MODULE_GLOBALS(test), - PHP_GINIT(test), - PHP_GSHUTDOWN(test), -#ifdef ZEPHIR_POST_REQUEST - PHP_PRSHUTDOWN(test), -#else - NULL, -#endif - STANDARD_MODULE_PROPERTIES_EX -}; - -#ifdef COMPILE_DL_TEST -ZEND_GET_MODULE(test) -#endif diff --git a/ext/test.h b/ext/test.h deleted file mode 100644 index c8692d53eb..0000000000 --- a/ext/test.h +++ /dev/null @@ -1,200 +0,0 @@ - -/* This file was generated automatically by Zephir do not modify it! */ - -#ifndef ZEPHIR_CLASS_ENTRIES_H -#define ZEPHIR_CLASS_ENTRIES_H - -#include "test/testinterface.zep.h" -#include "test/oo/extend/exception.zep.h" -#include "test/oo/extend/db/exception.zep.h" -#include "test/scallparent.zep.h" -#include "test/constantsparent.zep.h" -#include "test/globals/session/base.zep.h" -#include "test/methodinterface.zep.h" -#include "test/oo/abstractstatic.zep.h" -#include "test/oo/extend/db/query/exception.zep.h" -#include "test/oo/oodynamica.zep.h" -#include "test/oo/scopes/hasprivatemethod.zep.h" -#include "test/oo/scopes/scopetesterinterface.zep.h" -#include "test/ooimpl/zbeginning.zep.h" -#include "test/properties/publicproperties.zep.h" -#include "test/arithmetic.zep.h" -#include "test/arrayaccessobj.zep.h" -#include "test/arrayaccesstest.zep.h" -#include "test/arrayiterator.zep.h" -#include "test/arrayiteratortest.zep.h" -#include "test/arrayobject.zep.h" -#include "test/arraysearch.zep.h" -#include "test/assign.zep.h" -#include "test/bench/foo.zep.h" -#include "test/bitwise.zep.h" -#include "test/branchprediction.zep.h" -#include "test/builtin/arraymethods.zep.h" -#include "test/builtin/charmethods.zep.h" -#include "test/builtin/intmethods.zep.h" -#include "test/builtin/stringmethods.zep.h" -#include "test/cast.zep.h" -#include "test/cblock.zep.h" -#include "test/chars.zep.h" -#include "test/closures.zep.h" -#include "test/compare.zep.h" -#include "test/concat.zep.h" -#include "test/constants.zep.h" -#include "test/constantsinterface.zep.h" -#include "test/constantsinterfacea.zep.h" -#include "test/constantsinterfaceb.zep.h" -#include "test/declaretest.zep.h" -#include "test/diinterface.zep.h" -#include "test/echoes.zep.h" -#include "test/emptytest.zep.h" -#include "test/evaltest.zep.h" -#include "test/exception.zep.h" -#include "test/exceptions.zep.h" -#include "test/exists.zep.h" -#include "test/exitdie.zep.h" -#include "test/extendedinterface.zep.h" -#include "test/factorial.zep.h" -#include "test/fannkuch.zep.h" -#include "test/fasta.zep.h" -#include "test/fcall.zep.h" -#include "test/fetchtest.zep.h" -#include "test/fibonnaci.zep.h" -#include "test/flow.zep.h" -#include "test/flow/switchflow.zep.h" -#include "test/fortytwo.zep.h" -#include "test/functional.zep.h" -#include "test/functionexists.zep.h" -#include "test/geometry.zep.h" -#include "test/globals.zep.h" -#include "test/globals/env.zep.h" -#include "test/globals/post.zep.h" -#include "test/globals/server.zep.h" -#include "test/globals/serverrequestfactory.zep.h" -#include "test/globals/session/child.zep.h" -#include "test/instance.zep.h" -#include "test/instanceoff.zep.h" -#include "test/integration/psr/http/message/messageinterfaceex.zep.h" -#include "test/internalclasses.zep.h" -#include "test/internalinterfaces.zep.h" -#include "test/invoke.zep.h" -#include "test/issettest.zep.h" -#include "test/issue1404.zep.h" -#include "test/issue1521.zep.h" -#include "test/issues.zep.h" -#include "test/json.zep.h" -#include "test/logical.zep.h" -#include "test/mcall.zep.h" -#include "test/mcall/caller.zep.h" -#include "test/mcallchained.zep.h" -#include "test/mcalldynamic.zep.h" -#include "test/mcallinternal.zep.h" -#include "test/methodabstract.zep.h" -#include "test/methodargs.zep.h" -#include "test/nativearray.zep.h" -#include "test/oo.zep.h" -#include "test/oo/abstractclass.zep.h" -#include "test/oo/concretestatic.zep.h" -#include "test/oo/constantsinterface.zep.h" -#include "test/oo/deprecatedmethods.zep.h" -#include "test/oo/dynamicprop.zep.h" -#include "test/oo/extend/db/query/placeholder/exception.zep.h" -#include "test/oo/extend/spl/arrayobject.zep.h" -#include "test/oo/extend/spl/directoryiterator.zep.h" -#include "test/oo/extend/spl/doublylinkedlist.zep.h" -#include "test/oo/extend/spl/fileinfo.zep.h" -#include "test/oo/extend/spl/fileobject.zep.h" -#include "test/oo/extend/spl/filesystemiterator.zep.h" -#include "test/oo/extend/spl/fixedarray.zep.h" -#include "test/oo/extend/spl/globiterator.zep.h" -#include "test/oo/extend/spl/heap.zep.h" -#include "test/oo/extend/spl/maxheap.zep.h" -#include "test/oo/extend/spl/minheap.zep.h" -#include "test/oo/extend/spl/priorityqueue.zep.h" -#include "test/oo/extend/spl/queue.zep.h" -#include "test/oo/extend/spl/recursivedirectoryiterator.zep.h" -#include "test/oo/extend/spl/stack.zep.h" -#include "test/oo/extend/spl/tempfileobject.zep.h" -#include "test/oo/extendpdoclass.zep.h" -#include "test/oo/ooconstruct.zep.h" -#include "test/oo/ooconstructparams.zep.h" -#include "test/oo/oodestruct.zep.h" -#include "test/oo/oodynamicb.zep.h" -#include "test/oo/oonativeimplements.zep.h" -#include "test/oo/oonoconstruct.zep.h" -#include "test/oo/ooparams.zep.h" -#include "test/oo/param.zep.h" -#include "test/oo/propertyaccess.zep.h" -#include "test/oo/scopes/abstractclass.zep.h" -#include "test/oo/scopes/abstractclassmagic.zep.h" -#include "test/oo/scopes/privatescopetester.zep.h" -#include "test/ooimpl/abeginning.zep.h" -#include "test/operator.zep.h" -#include "test/optimizers/isscalar.zep.h" -#include "test/optimizers/acos.zep.h" -#include "test/optimizers/arraymerge.zep.h" -#include "test/optimizers/asin.zep.h" -#include "test/optimizers/cos.zep.h" -#include "test/optimizers/createarray.zep.h" -#include "test/optimizers/ldexp.zep.h" -#include "test/optimizers/sin.zep.h" -#include "test/optimizers/sqrt.zep.h" -#include "test/optimizers/strreplace.zep.h" -#include "test/optimizers/substr.zep.h" -#include "test/optimizers/tan.zep.h" -#include "test/pdostatement.zep.h" -#include "test/pregmatch.zep.h" -#include "test/properties/app.zep.h" -#include "test/properties/extendspublicproperties.zep.h" -#include "test/properties/privateproperties.zep.h" -#include "test/properties/propertyarray.zep.h" -#include "test/properties/propertyupdate.zep.h" -#include "test/properties/protectedproperties.zep.h" -#include "test/properties/staticprivateproperties.zep.h" -#include "test/properties/staticpropertyarray.zep.h" -#include "test/properties/staticprotectedproperties.zep.h" -#include "test/properties/staticpublicproperties.zep.h" -#include "test/quantum.zep.h" -#include "test/range.zep.h" -#include "test/references.zep.h" -#include "test/regexdna.zep.h" -#include "test/requires.zep.h" -#include "test/requires/external3.zep.h" -#include "test/resourcetest.zep.h" -#include "test/returns.zep.h" -#include "test/router.zep.h" -#include "test/router/exception.zep.h" -#include "test/router/route.zep.h" -#include "test/scall.zep.h" -#include "test/scalldynamic.zep.h" -#include "test/scallexternal.zep.h" -#include "test/scope.zep.h" -#include "test/sort.zep.h" -#include "test/spectralnorm.zep.h" -#include "test/spropertyaccess.zep.h" -#include "test/statements.zep.h" -#include "test/strings.zep.h" -#include "test/stubs.zep.h" -#include "test/ternary.zep.h" -#include "test/trytest.zep.h" -#include "test/typehinting/testabstract.zep.h" -#include "test/typeinstances.zep.h" -#include "test/typeoff.zep.h" -#include "test/unknownclass.zep.h" -#include "test/unsettest.zep.h" -#include "test/usetest.zep.h" -#include "test/vars.zep.h" -#include "test/0__closure.zep.h" -#include "test/1__closure.zep.h" -#include "test/2__closure.zep.h" -#include "test/3__closure.zep.h" -#include "test/4__closure.zep.h" -#include "test/5__closure.zep.h" -#include "test/6__closure.zep.h" -#include "test/7__closure.zep.h" -#include "test/8__closure.zep.h" -#include "test/9__closure.zep.h" -#include "test/10__closure.zep.h" -#include "test/11__closure.zep.h" -#include "test/12__closure.zep.h" - -#endif \ No newline at end of file diff --git a/ext/test/0__closure.zep.h b/ext/test/0__closure.zep.h deleted file mode 100644 index e5d3cd3ceb..0000000000 --- a/ext/test/0__closure.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_0__closure_ce; - -ZEPHIR_INIT_CLASS(test_0__closure); - -PHP_METHOD(test_0__closure, __invoke); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_0__closure___invoke, 0, 0, 1) - ZEND_ARG_INFO(0, x) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_0__closure_method_entry) { - PHP_ME(test_0__closure, __invoke, arginfo_test_0__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/10__closure.zep.h b/ext/test/10__closure.zep.h deleted file mode 100644 index b36903be8d..0000000000 --- a/ext/test/10__closure.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_10__closure_ce; - -ZEPHIR_INIT_CLASS(test_10__closure); - -PHP_METHOD(test_10__closure, __invoke); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_10__closure___invoke, 0, 0, 1) - ZEND_ARG_INFO(0, x) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_10__closure_method_entry) { - PHP_ME(test_10__closure, __invoke, arginfo_test_10__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/11__closure.zep.h b/ext/test/11__closure.zep.h deleted file mode 100644 index e98d2dd4c5..0000000000 --- a/ext/test/11__closure.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_11__closure_ce; - -ZEPHIR_INIT_CLASS(test_11__closure); - -PHP_METHOD(test_11__closure, __invoke); - -ZEPHIR_INIT_FUNCS(test_11__closure_method_entry) { - PHP_ME(test_11__closure, __invoke, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/12__closure.zep.h b/ext/test/12__closure.zep.h deleted file mode 100644 index 5b756f270a..0000000000 --- a/ext/test/12__closure.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_12__closure_ce; - -ZEPHIR_INIT_CLASS(test_12__closure); - -PHP_METHOD(test_12__closure, __invoke); - -ZEPHIR_INIT_FUNCS(test_12__closure_method_entry) { - PHP_ME(test_12__closure, __invoke, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/1__closure.zep.h b/ext/test/1__closure.zep.h deleted file mode 100644 index d7fbe3894b..0000000000 --- a/ext/test/1__closure.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_1__closure_ce; - -ZEPHIR_INIT_CLASS(test_1__closure); - -PHP_METHOD(test_1__closure, __invoke); - -ZEPHIR_INIT_FUNCS(test_1__closure_method_entry) { - PHP_ME(test_1__closure, __invoke, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/2__closure.zep.h b/ext/test/2__closure.zep.h deleted file mode 100644 index 95b42afac3..0000000000 --- a/ext/test/2__closure.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_2__closure_ce; - -ZEPHIR_INIT_CLASS(test_2__closure); - -PHP_METHOD(test_2__closure, __invoke); - -ZEPHIR_INIT_FUNCS(test_2__closure_method_entry) { - PHP_ME(test_2__closure, __invoke, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/3__closure.zep.h b/ext/test/3__closure.zep.h deleted file mode 100644 index 34b470c86f..0000000000 --- a/ext/test/3__closure.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_3__closure_ce; - -ZEPHIR_INIT_CLASS(test_3__closure); - -PHP_METHOD(test_3__closure, __invoke); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_3__closure___invoke, 0, 0, 1) - ZEND_ARG_INFO(0, param1) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_3__closure_method_entry) { - PHP_ME(test_3__closure, __invoke, arginfo_test_3__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/4__closure.zep.h b/ext/test/4__closure.zep.h deleted file mode 100644 index 6784d29611..0000000000 --- a/ext/test/4__closure.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_4__closure_ce; - -ZEPHIR_INIT_CLASS(test_4__closure); - -PHP_METHOD(test_4__closure, __invoke); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_4__closure___invoke, 0, 0, 1) - ZEND_ARG_INFO(0, param1) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_4__closure_method_entry) { - PHP_ME(test_4__closure, __invoke, arginfo_test_4__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/5__closure.zep.h b/ext/test/5__closure.zep.h deleted file mode 100644 index 09b552225a..0000000000 --- a/ext/test/5__closure.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_5__closure_ce; - -ZEPHIR_INIT_CLASS(test_5__closure); - -PHP_METHOD(test_5__closure, __invoke); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_5__closure___invoke, 0, 0, 1) - ZEND_ARG_INFO(0, param1) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_5__closure_method_entry) { - PHP_ME(test_5__closure, __invoke, arginfo_test_5__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/6__closure.zep.h b/ext/test/6__closure.zep.h deleted file mode 100644 index ef017fe7b4..0000000000 --- a/ext/test/6__closure.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_6__closure_ce; - -ZEPHIR_INIT_CLASS(test_6__closure); - -PHP_METHOD(test_6__closure, __invoke); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_6__closure___invoke, 0, 0, 1) - ZEND_ARG_INFO(0, x) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_6__closure_method_entry) { - PHP_ME(test_6__closure, __invoke, arginfo_test_6__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/7__closure.zep.h b/ext/test/7__closure.zep.h deleted file mode 100644 index dff785f0f5..0000000000 --- a/ext/test/7__closure.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_7__closure_ce; - -ZEPHIR_INIT_CLASS(test_7__closure); - -PHP_METHOD(test_7__closure, __invoke); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_7__closure___invoke, 0, 0, 1) - ZEND_ARG_INFO(0, x) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_7__closure_method_entry) { - PHP_ME(test_7__closure, __invoke, arginfo_test_7__closure___invoke, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/8__closure.zep.h b/ext/test/8__closure.zep.h deleted file mode 100644 index fd7de2c495..0000000000 --- a/ext/test/8__closure.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_8__closure_ce; - -ZEPHIR_INIT_CLASS(test_8__closure); - -PHP_METHOD(test_8__closure, __invoke); - -ZEPHIR_INIT_FUNCS(test_8__closure_method_entry) { - PHP_ME(test_8__closure, __invoke, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/9__closure.zep.h b/ext/test/9__closure.zep.h deleted file mode 100644 index 9519adea72..0000000000 --- a/ext/test/9__closure.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_9__closure_ce; - -ZEPHIR_INIT_CLASS(test_9__closure); - -PHP_METHOD(test_9__closure, __invoke); - -ZEPHIR_INIT_FUNCS(test_9__closure_method_entry) { - PHP_ME(test_9__closure, __invoke, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/arithmetic.zep.h b/ext/test/arithmetic.zep.h deleted file mode 100644 index fcf168ad41..0000000000 --- a/ext/test/arithmetic.zep.h +++ /dev/null @@ -1,369 +0,0 @@ - -extern zend_class_entry *test_arithmetic_ce; - -ZEPHIR_INIT_CLASS(Test_Arithmetic); - -PHP_METHOD(Test_Arithmetic, intSum); -PHP_METHOD(Test_Arithmetic, int2Sum); -PHP_METHOD(Test_Arithmetic, intSumSimple); -PHP_METHOD(Test_Arithmetic, boolSum); -PHP_METHOD(Test_Arithmetic, bool2Sum); -PHP_METHOD(Test_Arithmetic, bool3Sum); -PHP_METHOD(Test_Arithmetic, boolSumSimple); -PHP_METHOD(Test_Arithmetic, boolSumExpression); -PHP_METHOD(Test_Arithmetic, doubleSum); -PHP_METHOD(Test_Arithmetic, double2Sum); -PHP_METHOD(Test_Arithmetic, doubleSumSimple); -PHP_METHOD(Test_Arithmetic, doubleSum2Simple); -PHP_METHOD(Test_Arithmetic, doubleSumExpression); -PHP_METHOD(Test_Arithmetic, doubleSumVarExpression); -PHP_METHOD(Test_Arithmetic, varSum); -PHP_METHOD(Test_Arithmetic, varSumSimple); -PHP_METHOD(Test_Arithmetic, intDoubleSum); -PHP_METHOD(Test_Arithmetic, intDoubleSumSimple); -PHP_METHOD(Test_Arithmetic, doubleIntSum); -PHP_METHOD(Test_Arithmetic, doubleIntSumSimple); -PHP_METHOD(Test_Arithmetic, varIntSum); -PHP_METHOD(Test_Arithmetic, intVarSum); -PHP_METHOD(Test_Arithmetic, intVarImplicitCastSum); -PHP_METHOD(Test_Arithmetic, intVarImplicitCast2Sum); -PHP_METHOD(Test_Arithmetic, complexSum); -PHP_METHOD(Test_Arithmetic, complex2Sum); -PHP_METHOD(Test_Arithmetic, complex3Sum); -PHP_METHOD(Test_Arithmetic, complex4Sum); -PHP_METHOD(Test_Arithmetic, complex5Sum); -PHP_METHOD(Test_Arithmetic, complex6Sum); -PHP_METHOD(Test_Arithmetic, complex7Sum); -PHP_METHOD(Test_Arithmetic, complex9Sum); -PHP_METHOD(Test_Arithmetic, complex10Sum); -PHP_METHOD(Test_Arithmetic, complex11Sum); -PHP_METHOD(Test_Arithmetic, complex12Sum); -PHP_METHOD(Test_Arithmetic, complex13Sum); -PHP_METHOD(Test_Arithmetic, complex14Sum); -PHP_METHOD(Test_Arithmetic, complex15Sum); -PHP_METHOD(Test_Arithmetic, complex16Sum); -PHP_METHOD(Test_Arithmetic, complex17Sum); -PHP_METHOD(Test_Arithmetic, complex18Sum); -PHP_METHOD(Test_Arithmetic, complex19Sum); -PHP_METHOD(Test_Arithmetic, complex20Sum); -PHP_METHOD(Test_Arithmetic, complex21Sum); -PHP_METHOD(Test_Arithmetic, complex22Sum); -PHP_METHOD(Test_Arithmetic, complex23Sum); -PHP_METHOD(Test_Arithmetic, complex24Sum); -PHP_METHOD(Test_Arithmetic, addSum1); -PHP_METHOD(Test_Arithmetic, addSum2); -PHP_METHOD(Test_Arithmetic, addSum2b); -PHP_METHOD(Test_Arithmetic, addSum3); -PHP_METHOD(Test_Arithmetic, addSum4); -PHP_METHOD(Test_Arithmetic, addSum5); -PHP_METHOD(Test_Arithmetic, addSum6); -PHP_METHOD(Test_Arithmetic, addSum7); -PHP_METHOD(Test_Arithmetic, addSum8); -PHP_METHOD(Test_Arithmetic, addSum8b); -PHP_METHOD(Test_Arithmetic, addSum9); -PHP_METHOD(Test_Arithmetic, addSum10); -PHP_METHOD(Test_Arithmetic, addSum11); -PHP_METHOD(Test_Arithmetic, addSum12); -PHP_METHOD(Test_Arithmetic, addSum13); -PHP_METHOD(Test_Arithmetic, addSum14); -PHP_METHOD(Test_Arithmetic, addSum15); -PHP_METHOD(Test_Arithmetic, addSum16); -PHP_METHOD(Test_Arithmetic, addSum17); -PHP_METHOD(Test_Arithmetic, addSum18); -PHP_METHOD(Test_Arithmetic, addSum19); -PHP_METHOD(Test_Arithmetic, addSum20); -PHP_METHOD(Test_Arithmetic, addSum21); -PHP_METHOD(Test_Arithmetic, addSum22); -PHP_METHOD(Test_Arithmetic, addSum23); -PHP_METHOD(Test_Arithmetic, addSum24); -PHP_METHOD(Test_Arithmetic, intSub); -PHP_METHOD(Test_Arithmetic, intLetSub); -PHP_METHOD(Test_Arithmetic, intSub2); -PHP_METHOD(Test_Arithmetic, intSubSimple); -PHP_METHOD(Test_Arithmetic, boolSub); -PHP_METHOD(Test_Arithmetic, bool2Sub); -PHP_METHOD(Test_Arithmetic, bool3Sub); -PHP_METHOD(Test_Arithmetic, bool4Sub); -PHP_METHOD(Test_Arithmetic, boolSubSimple); -PHP_METHOD(Test_Arithmetic, doubleSub); -PHP_METHOD(Test_Arithmetic, double2Sub); -PHP_METHOD(Test_Arithmetic, doubleSubSimple); -PHP_METHOD(Test_Arithmetic, doubleSub2Simple); -PHP_METHOD(Test_Arithmetic, varSub); -PHP_METHOD(Test_Arithmetic, varSubSimple); -PHP_METHOD(Test_Arithmetic, intDoubleSub); -PHP_METHOD(Test_Arithmetic, intDoubleSubSimple); -PHP_METHOD(Test_Arithmetic, doubleIntSub); -PHP_METHOD(Test_Arithmetic, doubleIntSubSimple); -PHP_METHOD(Test_Arithmetic, varIntSub); -PHP_METHOD(Test_Arithmetic, intVarSub); -PHP_METHOD(Test_Arithmetic, intVarImplicitCastSub); -PHP_METHOD(Test_Arithmetic, intVarImplicitCast2Sub); -PHP_METHOD(Test_Arithmetic, complexSub); -PHP_METHOD(Test_Arithmetic, complex2Sub); -PHP_METHOD(Test_Arithmetic, complex3Sub); -PHP_METHOD(Test_Arithmetic, complex4Sub); -PHP_METHOD(Test_Arithmetic, complex5Sub); -PHP_METHOD(Test_Arithmetic, complex6Sub); -PHP_METHOD(Test_Arithmetic, complex7Sub); -PHP_METHOD(Test_Arithmetic, complex9Sub); -PHP_METHOD(Test_Arithmetic, complex10Sub); -PHP_METHOD(Test_Arithmetic, complex11Sub); -PHP_METHOD(Test_Arithmetic, complex12Sub); -PHP_METHOD(Test_Arithmetic, complex13Sub); -PHP_METHOD(Test_Arithmetic, complex14Sub); -PHP_METHOD(Test_Arithmetic, complex15Sub); -PHP_METHOD(Test_Arithmetic, complex16Sub); -PHP_METHOD(Test_Arithmetic, complex17Sub); -PHP_METHOD(Test_Arithmetic, complex18Sub); -PHP_METHOD(Test_Arithmetic, complex19Sub); -PHP_METHOD(Test_Arithmetic, complex20Sub); -PHP_METHOD(Test_Arithmetic, complex21Sub); -PHP_METHOD(Test_Arithmetic, complex22Sub); -PHP_METHOD(Test_Arithmetic, complex23Sub); -PHP_METHOD(Test_Arithmetic, complex24Sub); -PHP_METHOD(Test_Arithmetic, sub1); -PHP_METHOD(Test_Arithmetic, sub2); -PHP_METHOD(Test_Arithmetic, sub2b); -PHP_METHOD(Test_Arithmetic, sub3); -PHP_METHOD(Test_Arithmetic, sub4); -PHP_METHOD(Test_Arithmetic, sub5); -PHP_METHOD(Test_Arithmetic, sub6); -PHP_METHOD(Test_Arithmetic, sub7); -PHP_METHOD(Test_Arithmetic, sub8); -PHP_METHOD(Test_Arithmetic, sub8b); -PHP_METHOD(Test_Arithmetic, sub9); -PHP_METHOD(Test_Arithmetic, sub10); -PHP_METHOD(Test_Arithmetic, sub11); -PHP_METHOD(Test_Arithmetic, sub12); -PHP_METHOD(Test_Arithmetic, sub13); -PHP_METHOD(Test_Arithmetic, sub14); -PHP_METHOD(Test_Arithmetic, sub15); -PHP_METHOD(Test_Arithmetic, sub16); -PHP_METHOD(Test_Arithmetic, sub17); -PHP_METHOD(Test_Arithmetic, sub18); -PHP_METHOD(Test_Arithmetic, sub19); -PHP_METHOD(Test_Arithmetic, sub20); -PHP_METHOD(Test_Arithmetic, sub21); -PHP_METHOD(Test_Arithmetic, sub22); -PHP_METHOD(Test_Arithmetic, sub23); -PHP_METHOD(Test_Arithmetic, sub24); -PHP_METHOD(Test_Arithmetic, mul1); -PHP_METHOD(Test_Arithmetic, mul2); -PHP_METHOD(Test_Arithmetic, mul3); -PHP_METHOD(Test_Arithmetic, less1); -PHP_METHOD(Test_Arithmetic, less2); -PHP_METHOD(Test_Arithmetic, less3); -PHP_METHOD(Test_Arithmetic, less4); -PHP_METHOD(Test_Arithmetic, greater1); -PHP_METHOD(Test_Arithmetic, greater2); -PHP_METHOD(Test_Arithmetic, greater3); -PHP_METHOD(Test_Arithmetic, greater4); -PHP_METHOD(Test_Arithmetic, letStatementIntMinus); -PHP_METHOD(Test_Arithmetic, declaredIntMinus); -PHP_METHOD(Test_Arithmetic, letStatementBoolMinus); -PHP_METHOD(Test_Arithmetic, letStatementVarMinus); -PHP_METHOD(Test_Arithmetic, div1); -PHP_METHOD(Test_Arithmetic, div2); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arithmetic_addsum24, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arithmetic_sub24, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arithmetic_mul2, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arithmetic_less3, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arithmetic_less4, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arithmetic_greater3, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arithmetic_greater4, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arithmetic_letstatementboolminus, 0, 0, 1) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arithmetic_letstatementvarminus, 0, 0, 1) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_arithmetic_method_entry) { - PHP_ME(Test_Arithmetic, intSum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, int2Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intSumSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, boolSum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, bool2Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, bool3Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, boolSumSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, boolSumExpression, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, doubleSum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, double2Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, doubleSumSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, doubleSum2Simple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, doubleSumExpression, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, doubleSumVarExpression, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, varSum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, varSumSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intDoubleSum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intDoubleSumSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, doubleIntSum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, doubleIntSumSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, varIntSum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intVarSum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intVarImplicitCastSum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intVarImplicitCast2Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complexSum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex2Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex3Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex4Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex5Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex6Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex7Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex9Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex10Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex11Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex12Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex13Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex14Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex15Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex16Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex17Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex18Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex19Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex20Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex21Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex22Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex23Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex24Sum, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum2b, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum6, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum7, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum8, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum8b, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum9, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum10, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum11, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum12, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum13, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum14, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum15, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum16, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum17, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum18, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum19, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum20, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum21, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum22, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum23, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, addSum24, arginfo_test_arithmetic_addsum24, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intSub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intLetSub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intSub2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intSubSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, boolSub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, bool2Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, bool3Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, bool4Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, boolSubSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, doubleSub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, double2Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, doubleSubSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, doubleSub2Simple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, varSub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, varSubSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intDoubleSub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intDoubleSubSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, doubleIntSub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, doubleIntSubSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, varIntSub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intVarSub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intVarImplicitCastSub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, intVarImplicitCast2Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complexSub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex2Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex3Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex4Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex5Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex6Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex7Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex9Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex10Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex11Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex12Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex13Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex14Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex15Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex16Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex17Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex18Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex19Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex20Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex21Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex22Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex23Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, complex24Sub, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub2b, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub6, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub7, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub8, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub8b, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub9, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub10, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub11, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub12, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub13, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub14, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub15, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub16, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub17, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub18, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub19, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub20, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub21, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub22, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub23, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, sub24, arginfo_test_arithmetic_sub24, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, mul1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, mul2, arginfo_test_arithmetic_mul2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, mul3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, less1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, less2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, less3, arginfo_test_arithmetic_less3, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, less4, arginfo_test_arithmetic_less4, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, greater1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, greater2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, greater3, arginfo_test_arithmetic_greater3, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, greater4, arginfo_test_arithmetic_greater4, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, letStatementIntMinus, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, declaredIntMinus, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, letStatementBoolMinus, arginfo_test_arithmetic_letstatementboolminus, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, letStatementVarMinus, arginfo_test_arithmetic_letstatementvarminus, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, div1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Arithmetic, div2, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/arrayaccessobj.zep.h b/ext/test/arrayaccessobj.zep.h deleted file mode 100644 index 24674e412a..0000000000 --- a/ext/test/arrayaccessobj.zep.h +++ /dev/null @@ -1,36 +0,0 @@ - -extern zend_class_entry *test_arrayaccessobj_ce; - -ZEPHIR_INIT_CLASS(Test_ArrayAccessObj); - -PHP_METHOD(Test_ArrayAccessObj, __construct); -PHP_METHOD(Test_ArrayAccessObj, offsetSet); -PHP_METHOD(Test_ArrayAccessObj, offsetExists); -PHP_METHOD(Test_ArrayAccessObj, offsetUnset); -PHP_METHOD(Test_ArrayAccessObj, offsetGet); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arrayaccessobj_offsetset, 0, 0, 2) - ZEND_ARG_INFO(0, offset) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arrayaccessobj_offsetexists, 0, 0, 1) - ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arrayaccessobj_offsetunset, 0, 0, 1) - ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arrayaccessobj_offsetget, 0, 0, 1) - ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_arrayaccessobj_method_entry) { - PHP_ME(Test_ArrayAccessObj, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Test_ArrayAccessObj, offsetSet, arginfo_test_arrayaccessobj_offsetset, ZEND_ACC_PUBLIC) - PHP_ME(Test_ArrayAccessObj, offsetExists, arginfo_test_arrayaccessobj_offsetexists, ZEND_ACC_PUBLIC) - PHP_ME(Test_ArrayAccessObj, offsetUnset, arginfo_test_arrayaccessobj_offsetunset, ZEND_ACC_PUBLIC) - PHP_ME(Test_ArrayAccessObj, offsetGet, arginfo_test_arrayaccessobj_offsetget, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/arrayaccesstest.zep.h b/ext/test/arrayaccesstest.zep.h deleted file mode 100644 index df0601b8bf..0000000000 --- a/ext/test/arrayaccesstest.zep.h +++ /dev/null @@ -1,13 +0,0 @@ - -extern zend_class_entry *test_arrayaccesstest_ce; - -ZEPHIR_INIT_CLASS(Test_ArrayAccessTest); - -PHP_METHOD(Test_ArrayAccessTest, exits); -PHP_METHOD(Test_ArrayAccessTest, get); - -ZEPHIR_INIT_FUNCS(test_arrayaccesstest_method_entry) { - PHP_ME(Test_ArrayAccessTest, exits, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_ArrayAccessTest, get, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/arrayiterator.zep.h b/ext/test/arrayiterator.zep.h deleted file mode 100644 index 4beaa8ff7f..0000000000 --- a/ext/test/arrayiterator.zep.h +++ /dev/null @@ -1,21 +0,0 @@ - -extern zend_class_entry *test_arrayiterator_ce; - -ZEPHIR_INIT_CLASS(Test_ArrayIterator); - -PHP_METHOD(Test_ArrayIterator, __construct); -PHP_METHOD(Test_ArrayIterator, rewind); -PHP_METHOD(Test_ArrayIterator, current); -PHP_METHOD(Test_ArrayIterator, key); -PHP_METHOD(Test_ArrayIterator, next); -PHP_METHOD(Test_ArrayIterator, valid); - -ZEPHIR_INIT_FUNCS(test_arrayiterator_method_entry) { - PHP_ME(Test_ArrayIterator, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Test_ArrayIterator, rewind, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ArrayIterator, current, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ArrayIterator, key, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ArrayIterator, next, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ArrayIterator, valid, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/arrayiteratortest.zep.h b/ext/test/arrayiteratortest.zep.h deleted file mode 100644 index df50394337..0000000000 --- a/ext/test/arrayiteratortest.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_arrayiteratortest_ce; - -ZEPHIR_INIT_CLASS(Test_ArrayIteratorTest); - -PHP_METHOD(Test_ArrayIteratorTest, test); - -ZEPHIR_INIT_FUNCS(test_arrayiteratortest_method_entry) { - PHP_ME(Test_ArrayIteratorTest, test, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/arrayobject.zep.h b/ext/test/arrayobject.zep.h deleted file mode 100644 index d9d17c647e..0000000000 --- a/ext/test/arrayobject.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_arrayobject_ce; - -ZEPHIR_INIT_CLASS(Test_ArrayObject); - diff --git a/ext/test/arraysearch.zep.h b/ext/test/arraysearch.zep.h deleted file mode 100644 index b909db1920..0000000000 --- a/ext/test/arraysearch.zep.h +++ /dev/null @@ -1,23 +0,0 @@ - -extern zend_class_entry *test_arraysearch_ce; - -ZEPHIR_INIT_CLASS(Test_ArraySearch); - -PHP_METHOD(Test_ArraySearch, simpleSearch); -PHP_METHOD(Test_ArraySearch, searchUsingArrayInsideZephir); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_arraysearch_simplesearch, 0, 0, 2) - ZEND_ARG_INFO(0, needle) - ZEND_ARG_ARRAY_INFO(0, haystack, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, strict, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, strict) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_arraysearch_method_entry) { - PHP_ME(Test_ArraySearch, simpleSearch, arginfo_test_arraysearch_simplesearch, ZEND_ACC_PUBLIC) - PHP_ME(Test_ArraySearch, searchUsingArrayInsideZephir, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/assign.zep.h b/ext/test/assign.zep.h deleted file mode 100644 index 4805806d90..0000000000 --- a/ext/test/assign.zep.h +++ /dev/null @@ -1,594 +0,0 @@ - -extern zend_class_entry *test_assign_ce; - -ZEPHIR_INIT_CLASS(Test_Assign); - -PHP_METHOD(Test_Assign, getTestVar); -PHP_METHOD(Test_Assign, getMyArray); -PHP_METHOD(Test_Assign, testAssign1); -PHP_METHOD(Test_Assign, testAssign2); -PHP_METHOD(Test_Assign, testAssign3); -PHP_METHOD(Test_Assign, testAssign4); -PHP_METHOD(Test_Assign, testAssign5); -PHP_METHOD(Test_Assign, testAssign6); -PHP_METHOD(Test_Assign, testAssign7); -PHP_METHOD(Test_Assign, testAssign8); -PHP_METHOD(Test_Assign, testAssign9); -PHP_METHOD(Test_Assign, testAssign10); -PHP_METHOD(Test_Assign, testAssign11); -PHP_METHOD(Test_Assign, testAssign12); -PHP_METHOD(Test_Assign, testAssign13); -PHP_METHOD(Test_Assign, testAssign14); -PHP_METHOD(Test_Assign, testAssign15); -PHP_METHOD(Test_Assign, testAssign16); -PHP_METHOD(Test_Assign, testAssign17); -PHP_METHOD(Test_Assign, testAssign18); -PHP_METHOD(Test_Assign, testAssign19); -PHP_METHOD(Test_Assign, testAssign20); -PHP_METHOD(Test_Assign, testAssign21); -PHP_METHOD(Test_Assign, testAssign22); -PHP_METHOD(Test_Assign, testAssign23); -PHP_METHOD(Test_Assign, testAssign24); -PHP_METHOD(Test_Assign, testAssign25); -PHP_METHOD(Test_Assign, testAssign26); -PHP_METHOD(Test_Assign, testAssign27); -PHP_METHOD(Test_Assign, testAssign28); -PHP_METHOD(Test_Assign, testAssign29); -PHP_METHOD(Test_Assign, testAssign30); -PHP_METHOD(Test_Assign, testAssign31); -PHP_METHOD(Test_Assign, testAssign32); -PHP_METHOD(Test_Assign, testAssign33); -PHP_METHOD(Test_Assign, testAssign34); -PHP_METHOD(Test_Assign, testAssign35); -PHP_METHOD(Test_Assign, testAssign36); -PHP_METHOD(Test_Assign, testAssign37); -PHP_METHOD(Test_Assign, testAssign38); -PHP_METHOD(Test_Assign, testAssign39); -PHP_METHOD(Test_Assign, testAssign40); -PHP_METHOD(Test_Assign, testAssign41); -PHP_METHOD(Test_Assign, testAssign42); -PHP_METHOD(Test_Assign, testAssign43); -PHP_METHOD(Test_Assign, testAssign44); -PHP_METHOD(Test_Assign, testPropertyAssign1); -PHP_METHOD(Test_Assign, testPropertyAssign2); -PHP_METHOD(Test_Assign, testPropertyIncr1); -PHP_METHOD(Test_Assign, testPropertyAddAssign1); -PHP_METHOD(Test_Assign, testPropertyAddAssign2); -PHP_METHOD(Test_Assign, testPropertyAssignValuePlus1); -PHP_METHOD(Test_Assign, testPropertyDecr); -PHP_METHOD(Test_Assign, testPropertySubAssign1); -PHP_METHOD(Test_Assign, testPropertySubAssign2); -PHP_METHOD(Test_Assign, testPropertyMulAssign1); -PHP_METHOD(Test_Assign, testPropertyMulAssign2); -PHP_METHOD(Test_Assign, testPropertyAssignStringConcat); -PHP_METHOD(Test_Assign, testPropertyArray1); -PHP_METHOD(Test_Assign, testPropertyArray2); -PHP_METHOD(Test_Assign, testPropertyArray3); -PHP_METHOD(Test_Assign, testPropertyArray4); -PHP_METHOD(Test_Assign, testPropertyArray5); -PHP_METHOD(Test_Assign, testPropertyArray6); -PHP_METHOD(Test_Assign, testPropertyArray7); -PHP_METHOD(Test_Assign, testPropertyArray8); -PHP_METHOD(Test_Assign, testPropertyArray9); -PHP_METHOD(Test_Assign, testPropertyArray10); -PHP_METHOD(Test_Assign, testPropertyArray11); -PHP_METHOD(Test_Assign, testPropertyArray12); -PHP_METHOD(Test_Assign, testPropertyArray13); -PHP_METHOD(Test_Assign, testPropertyArray14); -PHP_METHOD(Test_Assign, testStaticPropertyAssign1); -PHP_METHOD(Test_Assign, testStaticPropertyAssign2); -PHP_METHOD(Test_Assign, testStaticPropertyArray1); -PHP_METHOD(Test_Assign, testStaticPropertyArray2); -PHP_METHOD(Test_Assign, testStaticPropertyArray3); -PHP_METHOD(Test_Assign, testStaticPropertyArrayAppend); -PHP_METHOD(Test_Assign, testStaticPropertyArrayMutli1); -PHP_METHOD(Test_Assign, testStaticPropertyArrayMutli2); -PHP_METHOD(Test_Assign, testStaticPropertyArrayMutli3); -PHP_METHOD(Test_Assign, testStaticPropertyArrayMulti4); -PHP_METHOD(Test_Assign, testStaticPropertyArrayAppend1); -PHP_METHOD(Test_Assign, testArrayVarAssign1); -PHP_METHOD(Test_Assign, testArrayVarAssign2); -PHP_METHOD(Test_Assign, testArrayProperty); -PHP_METHOD(Test_Assign, testGlobalVarAssign); -PHP_METHOD(Test_Assign, testConstantKeyAssign); -PHP_METHOD(Test_Assign, testArrayBoolExpressionAssign); -PHP_METHOD(Test_Assign, testAssignSuperGlobals); -PHP_METHOD(Test_Assign, testAssignSuperGlobalsSERVER); -PHP_METHOD(Test_Assign, testAssignSuperGlobalsGET); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign1, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign1, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign2, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign2, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign3, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign3, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign4, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign4, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign5, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign5, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign6, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign6, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign7, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign7, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign8, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign8, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign9, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign9, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign10, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign10, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign11, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign11, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign12, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign12, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign13, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign13, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign14, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign14, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign15, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign15, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign16, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign16, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign17, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign17, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign18, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign18, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign19, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign19, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign20, 0, 0, IS_NULL, 1) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign20, 0, 0, IS_NULL, NULL, 1) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign21, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign21, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign22, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign22, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign23, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign23, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign24, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign24, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign25, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign25, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign26, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign26, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign27, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign27, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign28, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign28, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign29, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign29, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign30, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign30, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign31, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign31, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign32, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign32, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign33, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign33, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign34, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign34, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign35, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign35, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign36, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign36, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign37, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign37, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign38, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign38, 0, 1, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign39, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign39, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign40, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign40, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign41, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign41, 0, 1, IS_LONG, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign42, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign42, 0, 1, IS_LONG, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign43, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign43, 0, 1, IS_LONG, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign44, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_assign_testassign44, 0, 1, IS_LONG, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_testpropertyarray4, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_testpropertyarray5, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, index, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, index) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_testpropertyarray8, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_testpropertyarray9, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, index) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_testpropertyarray10, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, index, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, index) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_testpropertyarray11, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_testpropertyarray12, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_testpropertyarray13, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_teststaticpropertyarray3, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_teststaticpropertyarraymutli3, 0, 0, 1) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_testarrayvarassign1, 0, 0, 2) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_testarrayvarassign2, 0, 0, 2) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_testarrayproperty, 0, 0, 2) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_assign_testglobalvarassign, 0, 0, 2) - ZEND_ARG_INFO(0, index) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_assign_method_entry) { - PHP_ME(Test_Assign, getTestVar, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, getMyArray, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign1, arginfo_test_assign_testassign1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign2, arginfo_test_assign_testassign2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign3, arginfo_test_assign_testassign3, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign4, arginfo_test_assign_testassign4, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign5, arginfo_test_assign_testassign5, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign6, arginfo_test_assign_testassign6, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign7, arginfo_test_assign_testassign7, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign8, arginfo_test_assign_testassign8, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign9, arginfo_test_assign_testassign9, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign10, arginfo_test_assign_testassign10, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign11, arginfo_test_assign_testassign11, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign12, arginfo_test_assign_testassign12, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign13, arginfo_test_assign_testassign13, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign14, arginfo_test_assign_testassign14, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign15, arginfo_test_assign_testassign15, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign16, arginfo_test_assign_testassign16, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign17, arginfo_test_assign_testassign17, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign18, arginfo_test_assign_testassign18, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign19, arginfo_test_assign_testassign19, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign20, arginfo_test_assign_testassign20, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign21, arginfo_test_assign_testassign21, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign22, arginfo_test_assign_testassign22, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign23, arginfo_test_assign_testassign23, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign24, arginfo_test_assign_testassign24, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign25, arginfo_test_assign_testassign25, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign26, arginfo_test_assign_testassign26, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign27, arginfo_test_assign_testassign27, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign28, arginfo_test_assign_testassign28, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign29, arginfo_test_assign_testassign29, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign30, arginfo_test_assign_testassign30, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign31, arginfo_test_assign_testassign31, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign32, arginfo_test_assign_testassign32, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign33, arginfo_test_assign_testassign33, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign34, arginfo_test_assign_testassign34, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign35, arginfo_test_assign_testassign35, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign36, arginfo_test_assign_testassign36, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign37, arginfo_test_assign_testassign37, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign38, arginfo_test_assign_testassign38, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign39, arginfo_test_assign_testassign39, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign40, arginfo_test_assign_testassign40, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign41, arginfo_test_assign_testassign41, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign42, arginfo_test_assign_testassign42, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign43, arginfo_test_assign_testassign43, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssign44, arginfo_test_assign_testassign44, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyAssign1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyAssign2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyIncr1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyAddAssign1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyAddAssign2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyAssignValuePlus1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyDecr, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertySubAssign1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertySubAssign2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyMulAssign1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyMulAssign2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyAssignStringConcat, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray4, arginfo_test_assign_testpropertyarray4, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray5, arginfo_test_assign_testpropertyarray5, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray6, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray7, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray8, arginfo_test_assign_testpropertyarray8, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray9, arginfo_test_assign_testpropertyarray9, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray10, arginfo_test_assign_testpropertyarray10, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray11, arginfo_test_assign_testpropertyarray11, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray12, arginfo_test_assign_testpropertyarray12, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray13, arginfo_test_assign_testpropertyarray13, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testPropertyArray14, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testStaticPropertyAssign1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testStaticPropertyAssign2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testStaticPropertyArray1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testStaticPropertyArray2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testStaticPropertyArray3, arginfo_test_assign_teststaticpropertyarray3, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testStaticPropertyArrayAppend, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testStaticPropertyArrayMutli1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testStaticPropertyArrayMutli2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testStaticPropertyArrayMutli3, arginfo_test_assign_teststaticpropertyarraymutli3, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testStaticPropertyArrayMulti4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testStaticPropertyArrayAppend1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testArrayVarAssign1, arginfo_test_assign_testarrayvarassign1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testArrayVarAssign2, arginfo_test_assign_testarrayvarassign2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testArrayProperty, arginfo_test_assign_testarrayproperty, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testGlobalVarAssign, arginfo_test_assign_testglobalvarassign, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testConstantKeyAssign, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testArrayBoolExpressionAssign, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssignSuperGlobals, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssignSuperGlobalsSERVER, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Assign, testAssignSuperGlobalsGET, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/bench/foo.zep.h b/ext/test/bench/foo.zep.h deleted file mode 100644 index 1663e85f99..0000000000 --- a/ext/test/bench/foo.zep.h +++ /dev/null @@ -1,129 +0,0 @@ - -extern zend_class_entry *test_bench_foo_ce; - -ZEPHIR_INIT_CLASS(Test_Bench_Foo); - -PHP_METHOD(Test_Bench_Foo, emptyForInRange); -PHP_METHOD(Test_Bench_Foo, readStatic); -PHP_METHOD(Test_Bench_Foo, writeStatic); -PHP_METHOD(Test_Bench_Foo, issetStatic); -PHP_METHOD(Test_Bench_Foo, emptyStatic); -PHP_METHOD(Test_Bench_Foo, readProp); -PHP_METHOD(Test_Bench_Foo, writeProp); -PHP_METHOD(Test_Bench_Foo, assignAddProp); -PHP_METHOD(Test_Bench_Foo, postIncProp); -PHP_METHOD(Test_Bench_Foo, postDecProp); -PHP_METHOD(Test_Bench_Foo, issetProp); -PHP_METHOD(Test_Bench_Foo, emptyProp); -PHP_METHOD(Test_Bench_Foo, g); -PHP_METHOD(Test_Bench_Foo, call); -PHP_METHOD(Test_Bench_Foo, staticMethod); -PHP_METHOD(Test_Bench_Foo, staticMethod1); -PHP_METHOD(Test_Bench_Foo, scall); -PHP_METHOD(Test_Bench_Foo, scallWithReturnTrue); -PHP_METHOD(Test_Bench_Foo, readConst); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_emptyforinrange, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_readstatic, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_writestatic, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_issetstatic, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_emptystatic, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_readprop, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_writeprop, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_assignaddprop, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_postincprop, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_postdecprop, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_issetprop, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_emptyprop, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_call, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_bench_foo_staticmethod, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_bench_foo_staticmethod, 0, 0, IS_VOID, NULL, 0) -#endif -ZEND_END_ARG_INFO() -#else -#define arginfo_test_bench_foo_staticmethod NULL -#endif - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_bench_foo_staticmethod1, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_bench_foo_staticmethod1, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_scall, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_scallwithreturntrue, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bench_foo_readconst, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_bench_foo_method_entry) { - PHP_ME(Test_Bench_Foo, emptyForInRange, arginfo_test_bench_foo_emptyforinrange, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Bench_Foo, readStatic, arginfo_test_bench_foo_readstatic, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Bench_Foo, writeStatic, arginfo_test_bench_foo_writestatic, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Bench_Foo, issetStatic, arginfo_test_bench_foo_issetstatic, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Bench_Foo, emptyStatic, arginfo_test_bench_foo_emptystatic, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Bench_Foo, readProp, arginfo_test_bench_foo_readprop, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bench_Foo, writeProp, arginfo_test_bench_foo_writeprop, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bench_Foo, assignAddProp, arginfo_test_bench_foo_assignaddprop, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bench_Foo, postIncProp, arginfo_test_bench_foo_postincprop, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bench_Foo, postDecProp, arginfo_test_bench_foo_postdecprop, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bench_Foo, issetProp, arginfo_test_bench_foo_issetprop, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bench_Foo, emptyProp, arginfo_test_bench_foo_emptyprop, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bench_Foo, g, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bench_Foo, call, arginfo_test_bench_foo_call, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bench_Foo, staticMethod, arginfo_test_bench_foo_staticmethod, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_ME(Test_Bench_Foo, staticMethod1, arginfo_test_bench_foo_staticmethod1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_ME(Test_Bench_Foo, scall, arginfo_test_bench_foo_scall, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bench_Foo, scallWithReturnTrue, arginfo_test_bench_foo_scallwithreturntrue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bench_Foo, readConst, arginfo_test_bench_foo_readconst, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/bitwise.zep.h b/ext/test/bitwise.zep.h deleted file mode 100644 index 18540b37d4..0000000000 --- a/ext/test/bitwise.zep.h +++ /dev/null @@ -1,240 +0,0 @@ - -extern zend_class_entry *test_bitwise_ce; - -ZEPHIR_INIT_CLASS(Test_Bitwise); - -PHP_METHOD(Test_Bitwise, intAnd); -PHP_METHOD(Test_Bitwise, int2And); -PHP_METHOD(Test_Bitwise, intAndSimple); -PHP_METHOD(Test_Bitwise, boolAnd); -PHP_METHOD(Test_Bitwise, bool2And); -PHP_METHOD(Test_Bitwise, bool3And); -PHP_METHOD(Test_Bitwise, boolAndSimple); -PHP_METHOD(Test_Bitwise, doubleAnd); -PHP_METHOD(Test_Bitwise, double2And); -PHP_METHOD(Test_Bitwise, doubleAndSimple); -PHP_METHOD(Test_Bitwise, doubleAnd2Simple); -PHP_METHOD(Test_Bitwise, varAnd); -PHP_METHOD(Test_Bitwise, varAndSimple); -PHP_METHOD(Test_Bitwise, intDoubleAnd); -PHP_METHOD(Test_Bitwise, intDoubleAndSimple); -PHP_METHOD(Test_Bitwise, doubleIntAnd); -PHP_METHOD(Test_Bitwise, doubleIntAndSimple); -PHP_METHOD(Test_Bitwise, varIntAnd); -PHP_METHOD(Test_Bitwise, intVarAnd); -PHP_METHOD(Test_Bitwise, intVarImplicitCastAnd); -PHP_METHOD(Test_Bitwise, intVarImplicitCast2And); -PHP_METHOD(Test_Bitwise, complexAnd); -PHP_METHOD(Test_Bitwise, complex2And); -PHP_METHOD(Test_Bitwise, complex3And); -PHP_METHOD(Test_Bitwise, complex4And); -PHP_METHOD(Test_Bitwise, complex5And); -PHP_METHOD(Test_Bitwise, complex6And); -PHP_METHOD(Test_Bitwise, complex7And); -PHP_METHOD(Test_Bitwise, complex9And); -PHP_METHOD(Test_Bitwise, complex10And); -PHP_METHOD(Test_Bitwise, complex11And); -PHP_METHOD(Test_Bitwise, complex12And); -PHP_METHOD(Test_Bitwise, complex13And); -PHP_METHOD(Test_Bitwise, complex14And); -PHP_METHOD(Test_Bitwise, complex15And); -PHP_METHOD(Test_Bitwise, complex16And); -PHP_METHOD(Test_Bitwise, complex17And); -PHP_METHOD(Test_Bitwise, complex18And); -PHP_METHOD(Test_Bitwise, complex19And); -PHP_METHOD(Test_Bitwise, complex20And); -PHP_METHOD(Test_Bitwise, complex21And); -PHP_METHOD(Test_Bitwise, complex22And); -PHP_METHOD(Test_Bitwise, complex23And); -PHP_METHOD(Test_Bitwise, complex24And); -PHP_METHOD(Test_Bitwise, intOr); -PHP_METHOD(Test_Bitwise, int2Or); -PHP_METHOD(Test_Bitwise, intOrSimple); -PHP_METHOD(Test_Bitwise, boolOr); -PHP_METHOD(Test_Bitwise, bool2Or); -PHP_METHOD(Test_Bitwise, bool3Or); -PHP_METHOD(Test_Bitwise, bool4Or); -PHP_METHOD(Test_Bitwise, boolOrSimple); -PHP_METHOD(Test_Bitwise, doubleOr); -PHP_METHOD(Test_Bitwise, double2Or); -PHP_METHOD(Test_Bitwise, doubleOrSimple); -PHP_METHOD(Test_Bitwise, doubleOr2Simple); -PHP_METHOD(Test_Bitwise, varOr); -PHP_METHOD(Test_Bitwise, varOrSimple); -PHP_METHOD(Test_Bitwise, intDoubleOr); -PHP_METHOD(Test_Bitwise, intDoubleOrSimple); -PHP_METHOD(Test_Bitwise, doubleIntOr); -PHP_METHOD(Test_Bitwise, doubleIntOrSimple); -PHP_METHOD(Test_Bitwise, varIntOr); -PHP_METHOD(Test_Bitwise, intVarOr); -PHP_METHOD(Test_Bitwise, intVarImplicitCastOr); -PHP_METHOD(Test_Bitwise, intVarImplicitCast2Or); -PHP_METHOD(Test_Bitwise, complexOr); -PHP_METHOD(Test_Bitwise, complex2Or); -PHP_METHOD(Test_Bitwise, complex3Or); -PHP_METHOD(Test_Bitwise, complex4Or); -PHP_METHOD(Test_Bitwise, complex5Or); -PHP_METHOD(Test_Bitwise, complex6Or); -PHP_METHOD(Test_Bitwise, complex7Or); -PHP_METHOD(Test_Bitwise, complex9Or); -PHP_METHOD(Test_Bitwise, complex10Or); -PHP_METHOD(Test_Bitwise, complex11Or); -PHP_METHOD(Test_Bitwise, complex12Or); -PHP_METHOD(Test_Bitwise, complex13Or); -PHP_METHOD(Test_Bitwise, complex14Or); -PHP_METHOD(Test_Bitwise, complex15Or); -PHP_METHOD(Test_Bitwise, complex16Or); -PHP_METHOD(Test_Bitwise, complex17Or); -PHP_METHOD(Test_Bitwise, complex18Or); -PHP_METHOD(Test_Bitwise, complex19Or); -PHP_METHOD(Test_Bitwise, complex20Or); -PHP_METHOD(Test_Bitwise, complex21Or); -PHP_METHOD(Test_Bitwise, complex22Or); -PHP_METHOD(Test_Bitwise, complex23Or); -PHP_METHOD(Test_Bitwise, complex24Or); -PHP_METHOD(Test_Bitwise, intShiftLeft); -PHP_METHOD(Test_Bitwise, int2ShiftLeft); -PHP_METHOD(Test_Bitwise, intShiftLeftSimple); -PHP_METHOD(Test_Bitwise, intShiftRight); -PHP_METHOD(Test_Bitwise, int2ShiftRight); -PHP_METHOD(Test_Bitwise, intShiftRightSimple); -PHP_METHOD(Test_Bitwise, testBitwiseNot); -PHP_METHOD(Test_Bitwise, testBitwiseAndNot); -PHP_METHOD(Test_Bitwise, getInt); -PHP_METHOD(Test_Bitwise, testbitwiseXor); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bitwise_testbitwisenot, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_bitwise_testbitwiseandnot, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_bitwise_getint, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_bitwise_getint, 0, 1, IS_LONG, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_bitwise_method_entry) { - PHP_ME(Test_Bitwise, intAnd, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, int2And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intAndSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, boolAnd, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, bool2And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, bool3And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, boolAndSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, doubleAnd, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, double2And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, doubleAndSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, doubleAnd2Simple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, varAnd, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, varAndSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intDoubleAnd, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intDoubleAndSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, doubleIntAnd, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, doubleIntAndSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, varIntAnd, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intVarAnd, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intVarImplicitCastAnd, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intVarImplicitCast2And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complexAnd, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex2And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex3And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex4And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex5And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex6And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex7And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex9And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex10And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex11And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex12And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex13And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex14And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex15And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex16And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex17And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex18And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex19And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex20And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex21And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex22And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex23And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex24And, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intOr, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, int2Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intOrSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, boolOr, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, bool2Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, bool3Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, bool4Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, boolOrSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, doubleOr, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, double2Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, doubleOrSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, doubleOr2Simple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, varOr, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, varOrSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intDoubleOr, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intDoubleOrSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, doubleIntOr, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, doubleIntOrSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, varIntOr, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intVarOr, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intVarImplicitCastOr, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intVarImplicitCast2Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complexOr, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex2Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex3Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex4Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex5Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex6Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex7Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex9Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex10Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex11Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex12Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex13Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex14Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex15Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex16Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex17Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex18Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex19Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex20Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex21Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex22Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex23Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, complex24Or, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intShiftLeft, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, int2ShiftLeft, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intShiftLeftSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intShiftRight, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, int2ShiftRight, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, intShiftRightSimple, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, testBitwiseNot, arginfo_test_bitwise_testbitwisenot, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, testBitwiseAndNot, arginfo_test_bitwise_testbitwiseandnot, ZEND_ACC_PUBLIC) - PHP_ME(Test_Bitwise, getInt, arginfo_test_bitwise_getint, ZEND_ACC_PROTECTED) - PHP_ME(Test_Bitwise, testbitwiseXor, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/branchprediction.zep.h b/ext/test/branchprediction.zep.h deleted file mode 100644 index 5bdc644536..0000000000 --- a/ext/test/branchprediction.zep.h +++ /dev/null @@ -1,25 +0,0 @@ - -extern zend_class_entry *test_branchprediction_ce; - -ZEPHIR_INIT_CLASS(Test_BranchPrediction); - -PHP_METHOD(Test_BranchPrediction, testLikely1); -PHP_METHOD(Test_BranchPrediction, testLikely2); -PHP_METHOD(Test_BranchPrediction, testUnlikely1); -PHP_METHOD(Test_BranchPrediction, testUnlikely2); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_branchprediction_testlikely2, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_branchprediction_testunlikely2, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_branchprediction_method_entry) { - PHP_ME(Test_BranchPrediction, testLikely1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_BranchPrediction, testLikely2, arginfo_test_branchprediction_testlikely2, ZEND_ACC_PUBLIC) - PHP_ME(Test_BranchPrediction, testUnlikely1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_BranchPrediction, testUnlikely2, arginfo_test_branchprediction_testunlikely2, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/builtin/arraymethods.zep.h b/ext/test/builtin/arraymethods.zep.h deleted file mode 100644 index 3cafcc2d75..0000000000 --- a/ext/test/builtin/arraymethods.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_builtin_arraymethods_ce; - -ZEPHIR_INIT_CLASS(Test_BuiltIn_ArrayMethods); - -PHP_METHOD(Test_BuiltIn_ArrayMethods, getJoin1); -PHP_METHOD(Test_BuiltIn_ArrayMethods, getReversed1); -PHP_METHOD(Test_BuiltIn_ArrayMethods, getMap1); - -ZEPHIR_INIT_FUNCS(test_builtin_arraymethods_method_entry) { - PHP_ME(Test_BuiltIn_ArrayMethods, getJoin1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_ArrayMethods, getReversed1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_ArrayMethods, getMap1, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/builtin/charmethods.zep.h b/ext/test/builtin/charmethods.zep.h deleted file mode 100644 index 2a0c2bb1a5..0000000000 --- a/ext/test/builtin/charmethods.zep.h +++ /dev/null @@ -1,21 +0,0 @@ - -extern zend_class_entry *test_builtin_charmethods_ce; - -ZEPHIR_INIT_CLASS(Test_BuiltIn_CharMethods); - -PHP_METHOD(Test_BuiltIn_CharMethods, getHex); -PHP_METHOD(Test_BuiltIn_CharMethods, getHexForString); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_charmethods_gethexforstring, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, str) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_builtin_charmethods_method_entry) { - PHP_ME(Test_BuiltIn_CharMethods, getHex, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_CharMethods, getHexForString, arginfo_test_builtin_charmethods_gethexforstring, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/builtin/intmethods.zep.h b/ext/test/builtin/intmethods.zep.h deleted file mode 100644 index 06d21d67a5..0000000000 --- a/ext/test/builtin/intmethods.zep.h +++ /dev/null @@ -1,161 +0,0 @@ - -extern zend_class_entry *test_builtin_intmethods_ce; - -ZEPHIR_INIT_CLASS(Test_BuiltIn_IntMethods); - -PHP_METHOD(Test_BuiltIn_IntMethods, getAbs); -PHP_METHOD(Test_BuiltIn_IntMethods, getAbs1); -PHP_METHOD(Test_BuiltIn_IntMethods, getBinary); -PHP_METHOD(Test_BuiltIn_IntMethods, getHex); -PHP_METHOD(Test_BuiltIn_IntMethods, getOctal); -PHP_METHOD(Test_BuiltIn_IntMethods, getPow); -PHP_METHOD(Test_BuiltIn_IntMethods, getSqrt); -PHP_METHOD(Test_BuiltIn_IntMethods, getExp); -PHP_METHOD(Test_BuiltIn_IntMethods, getSin); -PHP_METHOD(Test_BuiltIn_IntMethods, getCos); -PHP_METHOD(Test_BuiltIn_IntMethods, getTan); -PHP_METHOD(Test_BuiltIn_IntMethods, getAsin); -PHP_METHOD(Test_BuiltIn_IntMethods, getAcos); -PHP_METHOD(Test_BuiltIn_IntMethods, getAtan); -PHP_METHOD(Test_BuiltIn_IntMethods, getLog); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_getabs, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_getbinary, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_gethex, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_getoctal, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_getpow, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, exp, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, exp) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_getsqrt, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_getexp, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_getsin, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_getcos, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_gettan, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_getasin, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_getacos, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_getatan, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_builtin_intmethods_getlog, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, base, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, base) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_builtin_intmethods_method_entry) { - PHP_ME(Test_BuiltIn_IntMethods, getAbs, arginfo_test_builtin_intmethods_getabs, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getAbs1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getBinary, arginfo_test_builtin_intmethods_getbinary, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getHex, arginfo_test_builtin_intmethods_gethex, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getOctal, arginfo_test_builtin_intmethods_getoctal, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getPow, arginfo_test_builtin_intmethods_getpow, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getSqrt, arginfo_test_builtin_intmethods_getsqrt, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getExp, arginfo_test_builtin_intmethods_getexp, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getSin, arginfo_test_builtin_intmethods_getsin, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getCos, arginfo_test_builtin_intmethods_getcos, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getTan, arginfo_test_builtin_intmethods_gettan, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getAsin, arginfo_test_builtin_intmethods_getasin, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getAcos, arginfo_test_builtin_intmethods_getacos, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getAtan, arginfo_test_builtin_intmethods_getatan, ZEND_ACC_PUBLIC) - PHP_ME(Test_BuiltIn_IntMethods, getLog, arginfo_test_builtin_intmethods_getlog, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/cast.zep.h b/ext/test/cast.zep.h deleted file mode 100644 index 31babbdb75..0000000000 --- a/ext/test/cast.zep.h +++ /dev/null @@ -1,582 +0,0 @@ - -extern zend_class_entry *test_cast_ce; - -ZEPHIR_INIT_CLASS(Test_Cast); - -PHP_METHOD(Test_Cast, testCharCastFromChar); -PHP_METHOD(Test_Cast, testCharCastFromVariableChar); -PHP_METHOD(Test_Cast, testStringCastChar); -PHP_METHOD(Test_Cast, testStringCastVariableChar); -PHP_METHOD(Test_Cast, testIntCastFromFloat); -PHP_METHOD(Test_Cast, testIntCastFromVariableFloat); -PHP_METHOD(Test_Cast, testIntCastFromChar); -PHP_METHOD(Test_Cast, testIntCastFromVariableChar); -PHP_METHOD(Test_Cast, testIntCastFromBooleanTrue); -PHP_METHOD(Test_Cast, testIntCastFromBooleanFalse); -PHP_METHOD(Test_Cast, testIntCastFromVariableBooleanTrue); -PHP_METHOD(Test_Cast, testIntCastFromVariableBooleanFalse); -PHP_METHOD(Test_Cast, testIntCastFromVariableNull); -PHP_METHOD(Test_Cast, testIntCastFromStringValue); -PHP_METHOD(Test_Cast, testIntCastFromVariableString); -PHP_METHOD(Test_Cast, testIntCastFromParameterString); -PHP_METHOD(Test_Cast, testIntCastFromNull); -PHP_METHOD(Test_Cast, testIntCastFromVariableEmptyArray); -PHP_METHOD(Test_Cast, testIntCastFromEmptyArray); -PHP_METHOD(Test_Cast, testIntCastFromVariableArray); -PHP_METHOD(Test_Cast, testIntCastFromArray); -PHP_METHOD(Test_Cast, testIntCastFromStdClass); -PHP_METHOD(Test_Cast, testIntCastFromVariableStdClass); -PHP_METHOD(Test_Cast, testLongCastFromChar); -PHP_METHOD(Test_Cast, testLongCastFromVariableChar); -PHP_METHOD(Test_Cast, testFloatCastFromFloat); -PHP_METHOD(Test_Cast, testFloatCastFromVariableFloat); -PHP_METHOD(Test_Cast, testFloatCastFromBooleanTrue); -PHP_METHOD(Test_Cast, testFloatCastFromBooleanFalse); -PHP_METHOD(Test_Cast, testFloatCastFromVariableBooleanTrue); -PHP_METHOD(Test_Cast, testFloatCastFromVariableBooleanFalse); -PHP_METHOD(Test_Cast, testFloatCastFromVariableNull); -PHP_METHOD(Test_Cast, testFloatCastFromNull); -PHP_METHOD(Test_Cast, testFloatCastFromVariableEmptyArray); -PHP_METHOD(Test_Cast, testFloatCastFromEmptyArray); -PHP_METHOD(Test_Cast, testFloatCastFromVariableArray); -PHP_METHOD(Test_Cast, testFloatCastFromArray); -PHP_METHOD(Test_Cast, testFloatCastFromStdClass); -PHP_METHOD(Test_Cast, testFloatCastFromVariableStdClass); -PHP_METHOD(Test_Cast, testDoubleCastFromVChar); -PHP_METHOD(Test_Cast, testDoubleCastFromVariableChar); -PHP_METHOD(Test_Cast, testBooleanCastFromIntTrue1); -PHP_METHOD(Test_Cast, testBooleanCastFromIntTrue2); -PHP_METHOD(Test_Cast, testBooleanCastFromIntFalse); -PHP_METHOD(Test_Cast, testBooleanCastFromObject); -PHP_METHOD(Test_Cast, testBooleanCastFromEmptyArray); -PHP_METHOD(Test_Cast, testBooleanCastFromArray); -PHP_METHOD(Test_Cast, testBooleanCastFromNull); -PHP_METHOD(Test_Cast, testBooleanCastFromChar); -PHP_METHOD(Test_Cast, testBooleanCastFromVariableChar); -PHP_METHOD(Test_Cast, testObjectCastFromInt); -PHP_METHOD(Test_Cast, testObjectCastFromFloat); -PHP_METHOD(Test_Cast, testObjectCastFromFalse); -PHP_METHOD(Test_Cast, testObjectCastFromTrue); -PHP_METHOD(Test_Cast, testObjectCastFromNull); -PHP_METHOD(Test_Cast, testObjectCastFromEmptyArray); -PHP_METHOD(Test_Cast, testObjectCastFromArray); -PHP_METHOD(Test_Cast, testObjectCastFromEmptyString); -PHP_METHOD(Test_Cast, testObjectCastFromString); -PHP_METHOD(Test_Cast, testCastStdinToInteger); -PHP_METHOD(Test_Cast, testCastStdoutToInteger); -PHP_METHOD(Test_Cast, testCastFileResourceToInteger); -PHP_METHOD(Test_Cast, testArrayCastFromVariableArray); -PHP_METHOD(Test_Cast, testArrayCastFromVariableTrue); -PHP_METHOD(Test_Cast, testArrayCastFromVariableFalse); -PHP_METHOD(Test_Cast, testArrayCastFromVariableNull); -PHP_METHOD(Test_Cast, testArrayCastFromVariableInteger); -PHP_METHOD(Test_Cast, testArrayCastFromVariableFloat); -PHP_METHOD(Test_Cast, testArrayCastFromVariableString); -PHP_METHOD(Test_Cast, testArrayCastFromVariableStdClass); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testcharcastfromchar, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testcharcastfromchar, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testcharcastfromvariablechar, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testcharcastfromvariablechar, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_teststringcastchar, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_teststringcastchar, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_teststringcastvariablechar, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_teststringcastvariablechar, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromfloat, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromfloat, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablefloat, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablefloat, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromchar, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromchar, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablechar, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablechar, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfrombooleantrue, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfrombooleantrue, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfrombooleanfalse, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfrombooleanfalse, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablebooleantrue, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablebooleantrue, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablebooleanfalse, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablebooleanfalse, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablenull, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablenull, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromstringvalue, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromstringvalue, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablestring, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablestring, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromparameterstring, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromparameterstring, 0, 1, IS_LONG, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromnull, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromnull, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariableemptyarray, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariableemptyarray, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromemptyarray, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromemptyarray, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablearray, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablearray, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromarray, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromarray, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromstdclass, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromstdclass, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablestdclass, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testintcastfromvariablestdclass, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testlongcastfromchar, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testlongcastfromchar, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testlongcastfromvariablechar, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testlongcastfromvariablechar, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromfloat, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromfloat, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariablefloat, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariablefloat, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfrombooleantrue, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfrombooleantrue, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfrombooleanfalse, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfrombooleanfalse, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariablebooleantrue, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariablebooleantrue, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariablebooleanfalse, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariablebooleanfalse, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariablenull, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariablenull, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromnull, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromnull, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariableemptyarray, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariableemptyarray, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromemptyarray, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromemptyarray, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariablearray, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariablearray, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromarray, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromarray, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromstdclass, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromstdclass, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariablestdclass, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testfloatcastfromvariablestdclass, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testdoublecastfromvchar, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testdoublecastfromvchar, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testdoublecastfromvariablechar, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testdoublecastfromvariablechar, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfrominttrue1, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfrominttrue1, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfrominttrue2, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfrominttrue2, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromintfalse, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromintfalse, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromobject, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromobject, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromemptyarray, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromemptyarray, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromarray, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromarray, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromnull, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromnull, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromchar, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromchar, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromvariablechar, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testbooleancastfromvariablechar, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testcaststdintointeger, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testcaststdintointeger, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testcaststdouttointeger, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testcaststdouttointeger, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testcastfileresourcetointeger, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testcastfileresourcetointeger, 0, 1, IS_LONG, NULL, 0) -#endif - ZEND_ARG_INFO(0, fileName) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariablearray, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariablearray, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariabletrue, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariabletrue, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariablefalse, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariablefalse, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariablenull, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariablenull, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariableinteger, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariableinteger, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariablefloat, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariablefloat, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariablestring, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariablestring, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariablestdclass, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_cast_testarraycastfromvariablestdclass, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_cast_method_entry) { - PHP_ME(Test_Cast, testCharCastFromChar, arginfo_test_cast_testcharcastfromchar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testCharCastFromVariableChar, arginfo_test_cast_testcharcastfromvariablechar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testStringCastChar, arginfo_test_cast_teststringcastchar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testStringCastVariableChar, arginfo_test_cast_teststringcastvariablechar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromFloat, arginfo_test_cast_testintcastfromfloat, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromVariableFloat, arginfo_test_cast_testintcastfromvariablefloat, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromChar, arginfo_test_cast_testintcastfromchar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromVariableChar, arginfo_test_cast_testintcastfromvariablechar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromBooleanTrue, arginfo_test_cast_testintcastfrombooleantrue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromBooleanFalse, arginfo_test_cast_testintcastfrombooleanfalse, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromVariableBooleanTrue, arginfo_test_cast_testintcastfromvariablebooleantrue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromVariableBooleanFalse, arginfo_test_cast_testintcastfromvariablebooleanfalse, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromVariableNull, arginfo_test_cast_testintcastfromvariablenull, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromStringValue, arginfo_test_cast_testintcastfromstringvalue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromVariableString, arginfo_test_cast_testintcastfromvariablestring, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromParameterString, arginfo_test_cast_testintcastfromparameterstring, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromNull, arginfo_test_cast_testintcastfromnull, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromVariableEmptyArray, arginfo_test_cast_testintcastfromvariableemptyarray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromEmptyArray, arginfo_test_cast_testintcastfromemptyarray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromVariableArray, arginfo_test_cast_testintcastfromvariablearray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromArray, arginfo_test_cast_testintcastfromarray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromStdClass, arginfo_test_cast_testintcastfromstdclass, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testIntCastFromVariableStdClass, arginfo_test_cast_testintcastfromvariablestdclass, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testLongCastFromChar, arginfo_test_cast_testlongcastfromchar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testLongCastFromVariableChar, arginfo_test_cast_testlongcastfromvariablechar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromFloat, arginfo_test_cast_testfloatcastfromfloat, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromVariableFloat, arginfo_test_cast_testfloatcastfromvariablefloat, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromBooleanTrue, arginfo_test_cast_testfloatcastfrombooleantrue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromBooleanFalse, arginfo_test_cast_testfloatcastfrombooleanfalse, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromVariableBooleanTrue, arginfo_test_cast_testfloatcastfromvariablebooleantrue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromVariableBooleanFalse, arginfo_test_cast_testfloatcastfromvariablebooleanfalse, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromVariableNull, arginfo_test_cast_testfloatcastfromvariablenull, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromNull, arginfo_test_cast_testfloatcastfromnull, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromVariableEmptyArray, arginfo_test_cast_testfloatcastfromvariableemptyarray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromEmptyArray, arginfo_test_cast_testfloatcastfromemptyarray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromVariableArray, arginfo_test_cast_testfloatcastfromvariablearray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromArray, arginfo_test_cast_testfloatcastfromarray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromStdClass, arginfo_test_cast_testfloatcastfromstdclass, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testFloatCastFromVariableStdClass, arginfo_test_cast_testfloatcastfromvariablestdclass, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testDoubleCastFromVChar, arginfo_test_cast_testdoublecastfromvchar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testDoubleCastFromVariableChar, arginfo_test_cast_testdoublecastfromvariablechar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testBooleanCastFromIntTrue1, arginfo_test_cast_testbooleancastfrominttrue1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testBooleanCastFromIntTrue2, arginfo_test_cast_testbooleancastfrominttrue2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testBooleanCastFromIntFalse, arginfo_test_cast_testbooleancastfromintfalse, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testBooleanCastFromObject, arginfo_test_cast_testbooleancastfromobject, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testBooleanCastFromEmptyArray, arginfo_test_cast_testbooleancastfromemptyarray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testBooleanCastFromArray, arginfo_test_cast_testbooleancastfromarray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testBooleanCastFromNull, arginfo_test_cast_testbooleancastfromnull, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testBooleanCastFromChar, arginfo_test_cast_testbooleancastfromchar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testBooleanCastFromVariableChar, arginfo_test_cast_testbooleancastfromvariablechar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testObjectCastFromInt, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testObjectCastFromFloat, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testObjectCastFromFalse, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testObjectCastFromTrue, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testObjectCastFromNull, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testObjectCastFromEmptyArray, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testObjectCastFromArray, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testObjectCastFromEmptyString, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testObjectCastFromString, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testCastStdinToInteger, arginfo_test_cast_testcaststdintointeger, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testCastStdoutToInteger, arginfo_test_cast_testcaststdouttointeger, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testCastFileResourceToInteger, arginfo_test_cast_testcastfileresourcetointeger, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testArrayCastFromVariableArray, arginfo_test_cast_testarraycastfromvariablearray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testArrayCastFromVariableTrue, arginfo_test_cast_testarraycastfromvariabletrue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testArrayCastFromVariableFalse, arginfo_test_cast_testarraycastfromvariablefalse, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testArrayCastFromVariableNull, arginfo_test_cast_testarraycastfromvariablenull, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testArrayCastFromVariableInteger, arginfo_test_cast_testarraycastfromvariableinteger, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testArrayCastFromVariableFloat, arginfo_test_cast_testarraycastfromvariablefloat, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testArrayCastFromVariableString, arginfo_test_cast_testarraycastfromvariablestring, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cast, testArrayCastFromVariableStdClass, arginfo_test_cast_testarraycastfromvariablestdclass, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/cblock.zep.h b/ext/test/cblock.zep.h deleted file mode 100644 index aa2c72ba9d..0000000000 --- a/ext/test/cblock.zep.h +++ /dev/null @@ -1,13 +0,0 @@ - -extern zend_class_entry *test_cblock_ce; - -ZEPHIR_INIT_CLASS(Test_Cblock); - -PHP_METHOD(Test_Cblock, testCblock1); -PHP_METHOD(Test_Cblock, testCblock2); - -ZEPHIR_INIT_FUNCS(test_cblock_method_entry) { - PHP_ME(Test_Cblock, testCblock1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Cblock, testCblock2, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/chars.zep.h b/ext/test/chars.zep.h deleted file mode 100644 index 61b23b24b4..0000000000 --- a/ext/test/chars.zep.h +++ /dev/null @@ -1,55 +0,0 @@ - -extern zend_class_entry *test_chars_ce; - -ZEPHIR_INIT_CLASS(Test_Chars); - -PHP_METHOD(Test_Chars, sumChars1); -PHP_METHOD(Test_Chars, sumChars2); -PHP_METHOD(Test_Chars, diffChars1); -PHP_METHOD(Test_Chars, diffChars2); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_chars_sumchars1, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_chars_sumchars1, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_chars_sumchars2, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_chars_sumchars2, 0, 1, IS_LONG, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, ch, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, ch) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_chars_diffchars1, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_chars_diffchars1, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_chars_diffchars2, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_chars_diffchars2, 0, 1, IS_LONG, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, ch, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, ch) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_chars_method_entry) { - PHP_ME(Test_Chars, sumChars1, arginfo_test_chars_sumchars1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Chars, sumChars2, arginfo_test_chars_sumchars2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Chars, diffChars1, arginfo_test_chars_diffchars1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Chars, diffChars2, arginfo_test_chars_diffchars2, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/closures.zep.h b/ext/test/closures.zep.h deleted file mode 100644 index 5b2a1487db..0000000000 --- a/ext/test/closures.zep.h +++ /dev/null @@ -1,31 +0,0 @@ - -extern zend_class_entry *test_closures_ce; - -ZEPHIR_INIT_CLASS(Test_Closures); - -PHP_METHOD(Test_Closures, simple1); -PHP_METHOD(Test_Closures, simple2); -PHP_METHOD(Test_Closures, simple3); -PHP_METHOD(Test_Closures, simple4); -PHP_METHOD(Test_Closures, simple5); -PHP_METHOD(Test_Closures, arrow1); -PHP_METHOD(Test_Closures, arrow2); -PHP_METHOD(Test_Closures, testUseCommand); -PHP_METHOD(Test_Closures, issue1860); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_closures_issue1860, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, abc, 0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_closures_method_entry) { - PHP_ME(Test_Closures, simple1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Closures, simple2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Closures, simple3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Closures, simple4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Closures, simple5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Closures, arrow1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Closures, arrow2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Closures, testUseCommand, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Closures, issue1860, arginfo_test_closures_issue1860, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/compare.zep.h b/ext/test/compare.zep.h deleted file mode 100644 index fad2ba5dfe..0000000000 --- a/ext/test/compare.zep.h +++ /dev/null @@ -1,102 +0,0 @@ - -extern zend_class_entry *test_compare_ce; - -ZEPHIR_INIT_CLASS(Test_Compare); - -PHP_METHOD(Test_Compare, isLessInt); -PHP_METHOD(Test_Compare, isGreaterEqual); -PHP_METHOD(Test_Compare, isLessDouble); -PHP_METHOD(Test_Compare, isLessThenPi); -PHP_METHOD(Test_Compare, isMoreThenPi); -PHP_METHOD(Test_Compare, testVarWithStringEquals); -PHP_METHOD(Test_Compare, testVarEqualsNull); -PHP_METHOD(Test_Compare, testNullEqualsVar); -PHP_METHOD(Test_Compare, testNotIdenticalZeroVar); -PHP_METHOD(Test_Compare, testNotIdenticalZeroInt); -PHP_METHOD(Test_Compare, testNotIdenticalZeroLong); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_compare_islessint, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_compare_isgreaterequal, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_compare_islessdouble, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_compare_islessthenpi, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_compare_ismorethenpi, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_compare_testvarwithstringequals, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, str) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_compare_testvarequalsnull, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_compare_testnullequalsvar, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_compare_method_entry) { - PHP_ME(Test_Compare, isLessInt, arginfo_test_compare_islessint, ZEND_ACC_PUBLIC) - PHP_ME(Test_Compare, isGreaterEqual, arginfo_test_compare_isgreaterequal, ZEND_ACC_PUBLIC) - PHP_ME(Test_Compare, isLessDouble, arginfo_test_compare_islessdouble, ZEND_ACC_PUBLIC) - PHP_ME(Test_Compare, isLessThenPi, arginfo_test_compare_islessthenpi, ZEND_ACC_PUBLIC) - PHP_ME(Test_Compare, isMoreThenPi, arginfo_test_compare_ismorethenpi, ZEND_ACC_PUBLIC) - PHP_ME(Test_Compare, testVarWithStringEquals, arginfo_test_compare_testvarwithstringequals, ZEND_ACC_PUBLIC) - PHP_ME(Test_Compare, testVarEqualsNull, arginfo_test_compare_testvarequalsnull, ZEND_ACC_PUBLIC) - PHP_ME(Test_Compare, testNullEqualsVar, arginfo_test_compare_testnullequalsvar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Compare, testNotIdenticalZeroVar, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Compare, testNotIdenticalZeroInt, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Compare, testNotIdenticalZeroLong, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/concat.zep.h b/ext/test/concat.zep.h deleted file mode 100644 index 762811d2b7..0000000000 --- a/ext/test/concat.zep.h +++ /dev/null @@ -1,89 +0,0 @@ - -extern zend_class_entry *test_concat_ce; - -ZEPHIR_INIT_CLASS(Test_Concat); - -PHP_METHOD(Test_Concat, getTestProperty); -PHP_METHOD(Test_Concat, testConcatBySelfProperty); -PHP_METHOD(Test_Concat, testConcat1); -PHP_METHOD(Test_Concat, testConcat2); -PHP_METHOD(Test_Concat, testConcat3); -PHP_METHOD(Test_Concat, testConcat4); -PHP_METHOD(Test_Concat, testConcat5); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_gettestproperty, 0, 0, IS_STRING, 1) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_gettestproperty, 0, 0, IS_STRING, NULL, 1) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_testconcatbyselfproperty, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_testconcatbyselfproperty, 0, 1, IS_VOID, NULL, 0) -#endif -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_concat_testconcatbyselfproperty, 0, 0, 1) -#define arginfo_test_concat_testconcatbyselfproperty NULL -#endif - -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, title, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, title) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_testconcat1, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_testconcat1, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_testconcat2, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_testconcat2, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_testconcat3, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_testconcat3, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_testconcat4, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_testconcat4, 0, 1, IS_STRING, NULL, 0) -#endif - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_testconcat5, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_concat_testconcat5, 0, 1, IS_STRING, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, number, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, number) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_concat_method_entry) { - PHP_ME(Test_Concat, getTestProperty, arginfo_test_concat_gettestproperty, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_ME(Test_Concat, testConcatBySelfProperty, arginfo_test_concat_testconcatbyselfproperty, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_ME(Test_Concat, testConcat1, arginfo_test_concat_testconcat1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Concat, testConcat2, arginfo_test_concat_testconcat2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Concat, testConcat3, arginfo_test_concat_testconcat3, ZEND_ACC_PUBLIC) - PHP_ME(Test_Concat, testConcat4, arginfo_test_concat_testconcat4, ZEND_ACC_PUBLIC) - PHP_ME(Test_Concat, testConcat5, arginfo_test_concat_testconcat5, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/constants.zep.h b/ext/test/constants.zep.h deleted file mode 100644 index a58496d29b..0000000000 --- a/ext/test/constants.zep.h +++ /dev/null @@ -1,59 +0,0 @@ - -extern zend_class_entry *test_constants_ce; - -ZEPHIR_INIT_CLASS(Test_Constants); - -PHP_METHOD(Test_Constants, getPropWsVarsGet); -PHP_METHOD(Test_Constants, getPropertyC1); -PHP_METHOD(Test_Constants, getPropertyC2); -PHP_METHOD(Test_Constants, getPropertyC3); -PHP_METHOD(Test_Constants, getPropertyC4); -PHP_METHOD(Test_Constants, getPropertyC5); -PHP_METHOD(Test_Constants, getPropertyC6); -PHP_METHOD(Test_Constants, getPropertyC7); -PHP_METHOD(Test_Constants, getPropertyC8); -PHP_METHOD(Test_Constants, getPropertyC9); -PHP_METHOD(Test_Constants, testReadConstant); -PHP_METHOD(Test_Constants, testReadClassConstant1); -PHP_METHOD(Test_Constants, testReadClassConstant2); -PHP_METHOD(Test_Constants, testReadClassConstant3); -PHP_METHOD(Test_Constants, testPHPVersionEnvConstant); -PHP_METHOD(Test_Constants, testClassMagicConstant); -PHP_METHOD(Test_Constants, testMethodMagicConstant); -PHP_METHOD(Test_Constants, testFunctionMagicConstant); -PHP_METHOD(Test_Constants, testNamespaceMagicConstant); -PHP_METHOD(Test_Constants, testDirConstant); -PHP_METHOD(Test_Constants, testPHPVersionEnvConstantInExpValue); -PHP_METHOD(Test_Constants, testStringDelimiterConstantDoubleQuoted); -PHP_METHOD(Test_Constants, testStringConstantWithVars); -PHP_METHOD(Test_Constants, testStringPropertyWithVarsAssigned); -PHP_METHOD(Test_Constants, testStringPropertyWithVarsGet); - -ZEPHIR_INIT_FUNCS(test_constants_method_entry) { - PHP_ME(Test_Constants, getPropWsVarsGet, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, getPropertyC1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, getPropertyC2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, getPropertyC3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, getPropertyC4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, getPropertyC5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, getPropertyC6, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, getPropertyC7, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, getPropertyC8, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, getPropertyC9, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testReadConstant, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testReadClassConstant1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testReadClassConstant2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testReadClassConstant3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testPHPVersionEnvConstant, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testClassMagicConstant, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testMethodMagicConstant, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testFunctionMagicConstant, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testNamespaceMagicConstant, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testDirConstant, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testPHPVersionEnvConstantInExpValue, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testStringDelimiterConstantDoubleQuoted, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testStringConstantWithVars, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testStringPropertyWithVarsAssigned, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Constants, testStringPropertyWithVarsGet, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/constantsinterface.zep.h b/ext/test/constantsinterface.zep.h deleted file mode 100644 index db1fbdf861..0000000000 --- a/ext/test/constantsinterface.zep.h +++ /dev/null @@ -1,33 +0,0 @@ - -extern zend_class_entry *test_constantsinterface_ce; - -ZEPHIR_INIT_CLASS(Test_ConstantsInterface); - -PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant1); -PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant2); -PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant3); -PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant4); -PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant5); -PHP_METHOD(Test_ConstantsInterface, testReadInterfaceConstant6); -PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant1); -PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant2); -PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant3); -PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant4); -PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant5); -PHP_METHOD(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant6); - -ZEPHIR_INIT_FUNCS(test_constantsinterface_method_entry) { - PHP_ME(Test_ConstantsInterface, testReadInterfaceConstant1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterface, testReadInterfaceConstant2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterface, testReadInterfaceConstant3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterface, testReadInterfaceConstant4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterface, testReadInterfaceConstant5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterface, testReadInterfaceConstant6, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterface, testReadInheritanceFromInterfaceConstant6, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/constantsinterfacea.zep.h b/ext/test/constantsinterfacea.zep.h deleted file mode 100644 index d58d6e7a45..0000000000 --- a/ext/test/constantsinterfacea.zep.h +++ /dev/null @@ -1,21 +0,0 @@ - -extern zend_class_entry *test_constantsinterfacea_ce; - -ZEPHIR_INIT_CLASS(Test_ConstantsInterfaceA); - -PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant1); -PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant2); -PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant3); -PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant4); -PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant5); -PHP_METHOD(Test_ConstantsInterfaceA, testReadInterfaceConstant6); - -ZEPHIR_INIT_FUNCS(test_constantsinterfacea_method_entry) { - PHP_ME(Test_ConstantsInterfaceA, testReadInterfaceConstant1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterfaceA, testReadInterfaceConstant2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterfaceA, testReadInterfaceConstant3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterfaceA, testReadInterfaceConstant4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterfaceA, testReadInterfaceConstant5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterfaceA, testReadInterfaceConstant6, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/constantsinterfaceb.zep.h b/ext/test/constantsinterfaceb.zep.h deleted file mode 100644 index 32e72d5385..0000000000 --- a/ext/test/constantsinterfaceb.zep.h +++ /dev/null @@ -1,21 +0,0 @@ - -extern zend_class_entry *test_constantsinterfaceb_ce; - -ZEPHIR_INIT_CLASS(Test_ConstantsInterfaceB); - -PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant1); -PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant2); -PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant3); -PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant4); -PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant5); -PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant6); - -ZEPHIR_INIT_FUNCS(test_constantsinterfaceb_method_entry) { - PHP_ME(Test_ConstantsInterfaceB, testReadInterfaceConstant1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterfaceB, testReadInterfaceConstant2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterfaceB, testReadInterfaceConstant3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterfaceB, testReadInterfaceConstant4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterfaceB, testReadInterfaceConstant5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ConstantsInterfaceB, testReadInterfaceConstant6, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/constantsparent.zep.c b/ext/test/constantsparent.zep.c deleted file mode 100644 index fbde024310..0000000000 --- a/ext/test/constantsparent.zep.c +++ /dev/null @@ -1,36 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../ext_config.h" -#endif - -#include -#include "../php_ext.h" -#include "../ext.h" - -#include -#include -#include - -#include "kernel/main.h" - - -ZEPHIR_INIT_CLASS(Test_ConstantsParent) { - - ZEPHIR_REGISTER_CLASS(Test, ConstantsParent, test, constantsparent, NULL, 0); - - zephir_declare_class_constant_null(test_constantsparent_ce, SL("P1")); - - zephir_declare_class_constant_bool(test_constantsparent_ce, SL("P2"), 0); - - zephir_declare_class_constant_bool(test_constantsparent_ce, SL("P3"), 1); - - zephir_declare_class_constant_long(test_constantsparent_ce, SL("P4"), 10); - - zephir_declare_class_constant_double(test_constantsparent_ce, SL("P5"), 10.25); - - zephir_declare_class_constant_string(test_constantsparent_ce, SL("P6"), "test"); - - return SUCCESS; - -} - diff --git a/ext/test/constantsparent.zep.h b/ext/test/constantsparent.zep.h deleted file mode 100644 index 26fe84cc87..0000000000 --- a/ext/test/constantsparent.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_constantsparent_ce; - -ZEPHIR_INIT_CLASS(Test_ConstantsParent); - diff --git a/ext/test/declaretest.zep.h b/ext/test/declaretest.zep.h deleted file mode 100644 index 030648a2b8..0000000000 --- a/ext/test/declaretest.zep.h +++ /dev/null @@ -1,45 +0,0 @@ - -extern zend_class_entry *test_declaretest_ce; - -ZEPHIR_INIT_CLASS(Test_DeclareTest); - -PHP_METHOD(Test_DeclareTest, testStringDeclare1); -PHP_METHOD(Test_DeclareTest, testStringDeclare2); -PHP_METHOD(Test_DeclareTest, testDeclare1); -PHP_METHOD(Test_DeclareTest, testDeclare2); -PHP_METHOD(Test_DeclareTest, testDeclare3); -PHP_METHOD(Test_DeclareTest, testDeclare4); -PHP_METHOD(Test_DeclareTest, testDeclare5); -PHP_METHOD(Test_DeclareTest, testDeclare6); -PHP_METHOD(Test_DeclareTest, testDeclare7); -PHP_METHOD(Test_DeclareTest, testDeclare8); -PHP_METHOD(Test_DeclareTest, testDeclare9); -PHP_METHOD(Test_DeclareTest, testDeclare10); -PHP_METHOD(Test_DeclareTest, testDeclare11); -PHP_METHOD(Test_DeclareTest, testDeclare12); -PHP_METHOD(Test_DeclareTest, testDeclare13); -PHP_METHOD(Test_DeclareTest, testDeclare14); -PHP_METHOD(Test_DeclareTest, testDeclare15); -PHP_METHOD(Test_DeclareTest, testDeclareMcallExpression); - -ZEPHIR_INIT_FUNCS(test_declaretest_method_entry) { - PHP_ME(Test_DeclareTest, testStringDeclare1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testStringDeclare2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare6, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare7, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare8, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare9, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare10, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare11, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare12, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare13, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare14, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclare15, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_DeclareTest, testDeclareMcallExpression, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/diinterface.zep.h b/ext/test/diinterface.zep.h deleted file mode 100644 index a3be466124..0000000000 --- a/ext/test/diinterface.zep.h +++ /dev/null @@ -1,13 +0,0 @@ - -extern zend_class_entry *test_diinterface_ce; - -ZEPHIR_INIT_CLASS(Test_DiInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_diinterface_getshared, 0, 0, 1) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_diinterface_method_entry) { - PHP_ABSTRACT_ME(Test_DiInterface, getShared, arginfo_test_diinterface_getshared) - PHP_FE_END -}; diff --git a/ext/test/echoes.zep.h b/ext/test/echoes.zep.h deleted file mode 100644 index ff57f4ae62..0000000000 --- a/ext/test/echoes.zep.h +++ /dev/null @@ -1,19 +0,0 @@ - -extern zend_class_entry *test_echoes_ce; - -ZEPHIR_INIT_CLASS(Test_Echoes); - -PHP_METHOD(Test_Echoes, testEcho1); -PHP_METHOD(Test_Echoes, testEcho2); -PHP_METHOD(Test_Echoes, testEcho3); -PHP_METHOD(Test_Echoes, testEcho4); -PHP_METHOD(Test_Echoes, testEcho5); - -ZEPHIR_INIT_FUNCS(test_echoes_method_entry) { - PHP_ME(Test_Echoes, testEcho1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Echoes, testEcho2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Echoes, testEcho3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Echoes, testEcho4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Echoes, testEcho5, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/emptytest.zep.h b/ext/test/emptytest.zep.h deleted file mode 100644 index 592db62c1c..0000000000 --- a/ext/test/emptytest.zep.h +++ /dev/null @@ -1,27 +0,0 @@ - -extern zend_class_entry *test_emptytest_ce; - -ZEPHIR_INIT_CLASS(Test_EmptyTest); - -PHP_METHOD(Test_EmptyTest, testDynamicVarArrayEmpty); -PHP_METHOD(Test_EmptyTest, testDynamicVarArrayNotEmpty); -PHP_METHOD(Test_EmptyTest, testEmptyString); -PHP_METHOD(Test_EmptyTest, testNotEmptyString); -PHP_METHOD(Test_EmptyTest, testString); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_emptytest_teststring, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_emptytest_method_entry) { - PHP_ME(Test_EmptyTest, testDynamicVarArrayEmpty, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_EmptyTest, testDynamicVarArrayNotEmpty, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_EmptyTest, testEmptyString, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_EmptyTest, testNotEmptyString, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_EmptyTest, testString, arginfo_test_emptytest_teststring, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/evaltest.zep.h b/ext/test/evaltest.zep.h deleted file mode 100644 index 275f109e6f..0000000000 --- a/ext/test/evaltest.zep.h +++ /dev/null @@ -1,19 +0,0 @@ - -extern zend_class_entry *test_evaltest_ce; - -ZEPHIR_INIT_CLASS(Test_EvalTest); - -PHP_METHOD(Test_EvalTest, evalCode); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_evaltest_evalcode, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, code, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, code) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_evaltest_method_entry) { - PHP_ME(Test_EvalTest, evalCode, arginfo_test_evaltest_evalcode, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/exception.zep.h b/ext/test/exception.zep.h deleted file mode 100644 index 36e9719329..0000000000 --- a/ext/test/exception.zep.h +++ /dev/null @@ -1,19 +0,0 @@ - -extern zend_class_entry *test_exception_ce; - -ZEPHIR_INIT_CLASS(Test_Exception); - -PHP_METHOD(Test_Exception, testRuntimePropertyFetch); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_exception_testruntimepropertyfetch, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, message) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_exception_method_entry) { - PHP_ME(Test_Exception, testRuntimePropertyFetch, arginfo_test_exception_testruntimepropertyfetch, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/exceptions.zep.h b/ext/test/exceptions.zep.h deleted file mode 100644 index 9cd5e352d2..0000000000 --- a/ext/test/exceptions.zep.h +++ /dev/null @@ -1,71 +0,0 @@ - -extern zend_class_entry *test_exceptions_ce; - -ZEPHIR_INIT_CLASS(Test_Exceptions); - -PHP_METHOD(Test_Exceptions, testException1); -PHP_METHOD(Test_Exceptions, testExceptionStringEscape); -PHP_METHOD(Test_Exceptions, testException2); -PHP_METHOD(Test_Exceptions, testException3); -PHP_METHOD(Test_Exceptions, getException); -PHP_METHOD(Test_Exceptions, testException4); -PHP_METHOD(Test_Exceptions, testException5); -PHP_METHOD(Test_Exceptions, testExceptionLiteral); -PHP_METHOD(Test_Exceptions, testExceptionSprintf); -PHP_METHOD(Test_Exceptions, testExceptionConcat); -PHP_METHOD(Test_Exceptions, testExceptionRethrow); -PHP_METHOD(Test_Exceptions, testMultiException); -PHP_METHOD(Test_Exceptions, issue1325); -PHP_METHOD(Test_Exceptions, doNoopException); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_exceptions_testexceptionliteral, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, type) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_exceptions_testexceptionsprintf, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_exceptions_testexceptionconcat, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, framework, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, framework) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, language, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, language) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_exceptions_testmultiexception, 0, 0, 2) - ZEND_ARG_INFO(0, returnValue) - ZEND_ARG_INFO(0, exception) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_exceptions_method_entry) { - PHP_ME(Test_Exceptions, testException1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exceptions, testExceptionStringEscape, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exceptions, testException2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exceptions, testException3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exceptions, getException, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Test_Exceptions, testException4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exceptions, testException5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exceptions, testExceptionLiteral, arginfo_test_exceptions_testexceptionliteral, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exceptions, testExceptionSprintf, arginfo_test_exceptions_testexceptionsprintf, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exceptions, testExceptionConcat, arginfo_test_exceptions_testexceptionconcat, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exceptions, testExceptionRethrow, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exceptions, testMultiException, arginfo_test_exceptions_testmultiexception, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exceptions, issue1325, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exceptions, doNoopException, NULL, ZEND_ACC_PRIVATE) - PHP_FE_END -}; diff --git a/ext/test/exists.zep.h b/ext/test/exists.zep.h deleted file mode 100644 index 6be0db403b..0000000000 --- a/ext/test/exists.zep.h +++ /dev/null @@ -1,60 +0,0 @@ - -extern zend_class_entry *test_exists_ce; - -ZEPHIR_INIT_CLASS(Test_Exists); - -PHP_METHOD(Test_Exists, testClassExists); -PHP_METHOD(Test_Exists, testInterfaceExists); -PHP_METHOD(Test_Exists, testMethodExists); -PHP_METHOD(Test_Exists, testFileExists); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_exists_testclassexists, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_exists_testclassexists, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_INFO(0, className) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, autoload, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, autoload) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_exists_testinterfaceexists, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_exists_testinterfaceexists, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_INFO(0, interfaceName) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, autoload, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, autoload) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_exists_testmethodexists, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_exists_testmethodexists, 0, 2, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_INFO(0, obj) - ZEND_ARG_INFO(0, methodName) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_exists_testfileexists, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_exists_testfileexists, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_INFO(0, fileName) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_exists_method_entry) { - PHP_ME(Test_Exists, testClassExists, arginfo_test_exists_testclassexists, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exists, testInterfaceExists, arginfo_test_exists_testinterfaceexists, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exists, testMethodExists, arginfo_test_exists_testmethodexists, ZEND_ACC_PUBLIC) - PHP_ME(Test_Exists, testFileExists, arginfo_test_exists_testfileexists, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/exitdie.zep.h b/ext/test/exitdie.zep.h deleted file mode 100644 index 401c7d4488..0000000000 --- a/ext/test/exitdie.zep.h +++ /dev/null @@ -1,41 +0,0 @@ - -extern zend_class_entry *test_exitdie_ce; - -ZEPHIR_INIT_CLASS(Test_ExitDie); - -PHP_METHOD(Test_ExitDie, testExit); -PHP_METHOD(Test_ExitDie, testDie); - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_exitdie_testexit, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_exitdie_testexit, 0, 0, IS_VOID, NULL, 0) -#endif -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_exitdie_testexit, 0, 0, 0) -#define arginfo_test_exitdie_testexit NULL -#endif - - ZEND_ARG_INFO(0, param) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_exitdie_testdie, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_exitdie_testdie, 0, 0, IS_VOID, NULL, 0) -#endif -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_exitdie_testdie, 0, 0, 0) -#define arginfo_test_exitdie_testdie NULL -#endif - - ZEND_ARG_INFO(0, param) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_exitdie_method_entry) { - PHP_ME(Test_ExitDie, testExit, arginfo_test_exitdie_testexit, ZEND_ACC_PUBLIC) - PHP_ME(Test_ExitDie, testDie, arginfo_test_exitdie_testdie, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/extendedinterface.zep.h b/ext/test/extendedinterface.zep.h deleted file mode 100644 index 1f3e64ed10..0000000000 --- a/ext/test/extendedinterface.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_extendedinterface_ce; - -ZEPHIR_INIT_CLASS(Test_ExtendedInterface); - diff --git a/ext/test/factorial.zep.h b/ext/test/factorial.zep.h deleted file mode 100644 index fc5a447698..0000000000 --- a/ext/test/factorial.zep.h +++ /dev/null @@ -1,37 +0,0 @@ - -extern zend_class_entry *test_factorial_ce; - -ZEPHIR_INIT_CLASS(Test_Factorial); - -PHP_METHOD(Test_Factorial, intIterativeFactorial); -PHP_METHOD(Test_Factorial, intRecursiveFactorial); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_factorial_intiterativefactorial, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_factorial_intiterativefactorial, 0, 1, IS_LONG, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, n) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_factorial_intrecursivefactorial, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_factorial_intrecursivefactorial, 0, 1, IS_LONG, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_factorial_method_entry) { - PHP_ME(Test_Factorial, intIterativeFactorial, arginfo_test_factorial_intiterativefactorial, ZEND_ACC_PUBLIC) - PHP_ME(Test_Factorial, intRecursiveFactorial, arginfo_test_factorial_intrecursivefactorial, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/fannkuch.zep.h b/ext/test/fannkuch.zep.h deleted file mode 100644 index 5fac9c7c27..0000000000 --- a/ext/test/fannkuch.zep.h +++ /dev/null @@ -1,19 +0,0 @@ - -extern zend_class_entry *test_fannkuch_ce; - -ZEPHIR_INIT_CLASS(Test_Fannkuch); - -PHP_METHOD(Test_Fannkuch, process); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fannkuch_process, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, n) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_fannkuch_method_entry) { - PHP_ME(Test_Fannkuch, process, arginfo_test_fannkuch_process, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/fasta.zep.h b/ext/test/fasta.zep.h deleted file mode 100644 index 34f930b016..0000000000 --- a/ext/test/fasta.zep.h +++ /dev/null @@ -1,28 +0,0 @@ - -extern zend_class_entry *test_fasta_ce; - -ZEPHIR_INIT_CLASS(Test_Fasta); - -PHP_METHOD(Test_Fasta, fastaRepeat); -PHP_METHOD(Test_Fasta, fastRandom); -PHP_METHOD(Test_Fasta, main); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fasta_fastarepeat, 0, 0, 2) - ZEND_ARG_INFO(0, n) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, seq, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, seq) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fasta_main, 0, 0, 1) - ZEND_ARG_INFO(0, n) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_fasta_method_entry) { - PHP_ME(Test_Fasta, fastaRepeat, arginfo_test_fasta_fastarepeat, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fasta, fastRandom, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fasta, main, arginfo_test_fasta_main, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/fcall.zep.h b/ext/test/fcall.zep.h deleted file mode 100644 index 7295f44767..0000000000 --- a/ext/test/fcall.zep.h +++ /dev/null @@ -1,151 +0,0 @@ - -extern zend_class_entry *test_fcall_ce; - -ZEPHIR_INIT_CLASS(Test_Fcall); - -PHP_METHOD(Test_Fcall, testCall1); -PHP_METHOD(Test_Fcall, testCall2); -PHP_METHOD(Test_Fcall, testCall3); -PHP_METHOD(Test_Fcall, testCall4); -PHP_METHOD(Test_Fcall, testCall5); -PHP_METHOD(Test_Fcall, testCall6); -PHP_METHOD(Test_Fcall, testCall7); -PHP_METHOD(Test_Fcall, zvalFcallWith1Parameter); -PHP_METHOD(Test_Fcall, testCall8); -PHP_METHOD(Test_Fcall, testCall1FromVar); -PHP_METHOD(Test_Fcall, testStrtokFalse); -PHP_METHOD(Test_Fcall, testStrtokVarBySlash); -PHP_METHOD(Test_Fcall, testFunctionGetArgs); -PHP_METHOD(Test_Fcall, testFunctionGetArgsAllExtra); -PHP_METHOD(Test_Fcall, testStaticFunctionGetArgsAllExtra); -PHP_METHOD(Test_Fcall, testFunctionGetArg); -PHP_METHOD(Test_Fcall, testFunctionGetArgAllExtra); -PHP_METHOD(Test_Fcall, testStaticFunctionGetArgAllExtra); -PHP_METHOD(Test_Fcall, testArrayFill); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testcall1, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testcall1, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testcall2, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testcall2, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fcall_testcall5, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fcall_zvalfcallwith1parameter, 0, 0, 1) - ZEND_ARG_INFO(0, callback) - ZEND_ARG_INFO(0, param1) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fcall_testcall8, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testcall1fromvar, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testcall1fromvar, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_teststrtokfalse, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_teststrtokfalse, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_teststrtokvarbyslash, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_teststrtokvarbyslash, 0, 1, IS_STRING, NULL, 0) -#endif - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testfunctiongetargs, 0, 2, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testfunctiongetargs, 0, 2, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_INFO(0, param1) - ZEND_ARG_INFO(0, param2) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testfunctiongetargsallextra, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testfunctiongetargsallextra, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_teststaticfunctiongetargsallextra, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_teststaticfunctiongetargsallextra, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testfunctiongetarg, 0, 2, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testfunctiongetarg, 0, 2, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_INFO(0, param1) - ZEND_ARG_INFO(0, param2) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testfunctiongetargallextra, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testfunctiongetargallextra, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_teststaticfunctiongetargallextra, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_teststaticfunctiongetargallextra, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testarrayfill, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fcall_testarrayfill, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_fcall_method_entry) { - PHP_ME(Test_Fcall, testCall1, arginfo_test_fcall_testcall1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testCall2, arginfo_test_fcall_testcall2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testCall3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testCall4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testCall5, arginfo_test_fcall_testcall5, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testCall6, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testCall7, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, zvalFcallWith1Parameter, arginfo_test_fcall_zvalfcallwith1parameter, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testCall8, arginfo_test_fcall_testcall8, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testCall1FromVar, arginfo_test_fcall_testcall1fromvar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testStrtokFalse, arginfo_test_fcall_teststrtokfalse, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testStrtokVarBySlash, arginfo_test_fcall_teststrtokvarbyslash, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testFunctionGetArgs, arginfo_test_fcall_testfunctiongetargs, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testFunctionGetArgsAllExtra, arginfo_test_fcall_testfunctiongetargsallextra, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testStaticFunctionGetArgsAllExtra, arginfo_test_fcall_teststaticfunctiongetargsallextra, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Fcall, testFunctionGetArg, arginfo_test_fcall_testfunctiongetarg, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testFunctionGetArgAllExtra, arginfo_test_fcall_testfunctiongetargallextra, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fcall, testStaticFunctionGetArgAllExtra, arginfo_test_fcall_teststaticfunctiongetargallextra, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Fcall, testArrayFill, arginfo_test_fcall_testarrayfill, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/fetchtest.zep.h b/ext/test/fetchtest.zep.h deleted file mode 100644 index 2af0c75646..0000000000 --- a/ext/test/fetchtest.zep.h +++ /dev/null @@ -1,119 +0,0 @@ - -extern zend_class_entry *test_fetchtest_ce; - -ZEPHIR_INIT_CLASS(Test_FetchTest); - -PHP_METHOD(Test_FetchTest, setValues); -PHP_METHOD(Test_FetchTest, getValues); -PHP_METHOD(Test_FetchTest, testFetchArray1); -PHP_METHOD(Test_FetchTest, testFetchArray2); -PHP_METHOD(Test_FetchTest, testFetchArray3); -PHP_METHOD(Test_FetchTest, testFetchArray4); -PHP_METHOD(Test_FetchTest, testFetchArray5); -PHP_METHOD(Test_FetchTest, testFetchArray6); -PHP_METHOD(Test_FetchTest, testFetchObject1); -PHP_METHOD(Test_FetchTest, testFetchObject2); -PHP_METHOD(Test_FetchTest, testFetchPost); -PHP_METHOD(Test_FetchTest, hasValue); -PHP_METHOD(Test_FetchTest, getValue); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fetchtest_setvalues, 0, 0, 1) - ZEND_ARG_INFO(0, values) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fetchtest_testfetcharray1, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fetchtest_testfetcharray2, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fetchtest_testfetcharray3, 0, 0, 2) - ZEND_ARG_INFO(0, a) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fetchtest_testfetcharray4, 0, 0, 2) - ZEND_ARG_INFO(0, a) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fetchtest_testfetcharray5, 0, 0, 2) - ZEND_ARG_INFO(0, a) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fetchtest_testfetcharray6, 0, 0, 2) - ZEND_ARG_INFO(0, a) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fetchtest_testfetchobject1, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fetchtest_testfetchobject2, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fetchtest_testfetchpost, 0, 0, 1) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fetchtest_hasvalue, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fetchtest_hasvalue, 0, 1, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fetchtest_getvalue, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_fetchtest_method_entry) { - PHP_ME(Test_FetchTest, setValues, arginfo_test_fetchtest_setvalues, ZEND_ACC_PUBLIC) - PHP_ME(Test_FetchTest, getValues, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_FetchTest, testFetchArray1, arginfo_test_fetchtest_testfetcharray1, ZEND_ACC_PUBLIC) - PHP_ME(Test_FetchTest, testFetchArray2, arginfo_test_fetchtest_testfetcharray2, ZEND_ACC_PUBLIC) - PHP_ME(Test_FetchTest, testFetchArray3, arginfo_test_fetchtest_testfetcharray3, ZEND_ACC_PUBLIC) - PHP_ME(Test_FetchTest, testFetchArray4, arginfo_test_fetchtest_testfetcharray4, ZEND_ACC_PUBLIC) - PHP_ME(Test_FetchTest, testFetchArray5, arginfo_test_fetchtest_testfetcharray5, ZEND_ACC_PUBLIC) - PHP_ME(Test_FetchTest, testFetchArray6, arginfo_test_fetchtest_testfetcharray6, ZEND_ACC_PUBLIC) - PHP_ME(Test_FetchTest, testFetchObject1, arginfo_test_fetchtest_testfetchobject1, ZEND_ACC_PUBLIC) - PHP_ME(Test_FetchTest, testFetchObject2, arginfo_test_fetchtest_testfetchobject2, ZEND_ACC_PUBLIC) - PHP_ME(Test_FetchTest, testFetchPost, arginfo_test_fetchtest_testfetchpost, ZEND_ACC_PUBLIC) - PHP_ME(Test_FetchTest, hasValue, arginfo_test_fetchtest_hasvalue, ZEND_ACC_PUBLIC) - PHP_ME(Test_FetchTest, getValue, arginfo_test_fetchtest_getvalue, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/fibonnaci.zep.h b/ext/test/fibonnaci.zep.h deleted file mode 100644 index 31a0582709..0000000000 --- a/ext/test/fibonnaci.zep.h +++ /dev/null @@ -1,37 +0,0 @@ - -extern zend_class_entry *test_fibonnaci_ce; - -ZEPHIR_INIT_CLASS(Test_Fibonnaci); - -PHP_METHOD(Test_Fibonnaci, fibInt); -PHP_METHOD(Test_Fibonnaci, fibDouble); -PHP_METHOD(Test_Fibonnaci, fibArray); -PHP_METHOD(Test_Fibonnaci, fibArray2); -PHP_METHOD(Test_Fibonnaci, fibonacciRecursive); -PHP_METHOD(Test_Fibonnaci, fibonacciFinalRecursive); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fibonnaci_fibonaccirecursive, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, n) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_fibonnaci_fibonaccifinalrecursive, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, n) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_fibonnaci_method_entry) { - PHP_ME(Test_Fibonnaci, fibInt, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fibonnaci, fibDouble, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fibonnaci, fibArray, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fibonnaci, fibArray2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Fibonnaci, fibonacciRecursive, arginfo_test_fibonnaci_fibonaccirecursive, ZEND_ACC_PRIVATE) - PHP_ME(Test_Fibonnaci, fibonacciFinalRecursive, arginfo_test_fibonnaci_fibonaccifinalrecursive, ZEND_ACC_PRIVATE|ZEND_ACC_FINAL) - PHP_FE_END -}; diff --git a/ext/test/flow.zep.h b/ext/test/flow.zep.h deleted file mode 100644 index 9f0ba941e0..0000000000 --- a/ext/test/flow.zep.h +++ /dev/null @@ -1,219 +0,0 @@ - -extern zend_class_entry *test_flow_ce; - -ZEPHIR_INIT_CLASS(Test_Flow); - -PHP_METHOD(Test_Flow, testIf1); -PHP_METHOD(Test_Flow, testIf2); -PHP_METHOD(Test_Flow, testIf3); -PHP_METHOD(Test_Flow, testIf4); -PHP_METHOD(Test_Flow, testIf5); -PHP_METHOD(Test_Flow, testIf6); -PHP_METHOD(Test_Flow, testIf7); -PHP_METHOD(Test_Flow, testIf8); -PHP_METHOD(Test_Flow, testIf9); -PHP_METHOD(Test_Flow, testIf10); -PHP_METHOD(Test_Flow, testIf12); -PHP_METHOD(Test_Flow, testIf13); -PHP_METHOD(Test_Flow, testIf14); -PHP_METHOD(Test_Flow, testIf15); -PHP_METHOD(Test_Flow, testIf16); -PHP_METHOD(Test_Flow, testIf17); -PHP_METHOD(Test_Flow, testLoop1); -PHP_METHOD(Test_Flow, testLoop2); -PHP_METHOD(Test_Flow, testLoop3); -PHP_METHOD(Test_Flow, testLoop4); -PHP_METHOD(Test_Flow, testWhile1); -PHP_METHOD(Test_Flow, testWhile2); -PHP_METHOD(Test_Flow, testWhile3); -PHP_METHOD(Test_Flow, testWhile4); -PHP_METHOD(Test_Flow, testWhile5); -PHP_METHOD(Test_Flow, testWhile6); -PHP_METHOD(Test_Flow, testWhile7); -PHP_METHOD(Test_Flow, testWhile8); -PHP_METHOD(Test_Flow, testWhile9); -PHP_METHOD(Test_Flow, testWhile10); -PHP_METHOD(Test_Flow, testWhile11); -PHP_METHOD(Test_Flow, testWhile12); -PHP_METHOD(Test_Flow, testWhile13); -PHP_METHOD(Test_Flow, testDoWhile1); -PHP_METHOD(Test_Flow, testWhileNextTest); -PHP_METHOD(Test_Flow, testWhileDoNextTest); -PHP_METHOD(Test_Flow, testFor1); -PHP_METHOD(Test_Flow, testFor2); -PHP_METHOD(Test_Flow, testFor3); -PHP_METHOD(Test_Flow, testFor4); -PHP_METHOD(Test_Flow, testFor5); -PHP_METHOD(Test_Flow, testFor6); -PHP_METHOD(Test_Flow, testFor7); -PHP_METHOD(Test_Flow, testFor8); -PHP_METHOD(Test_Flow, testFor9); -PHP_METHOD(Test_Flow, testFor10); -PHP_METHOD(Test_Flow, testFor11); -PHP_METHOD(Test_Flow, testFor12); -PHP_METHOD(Test_Flow, testFor13); -PHP_METHOD(Test_Flow, testFor14); -PHP_METHOD(Test_Flow, testFor15); -PHP_METHOD(Test_Flow, testFor16); -PHP_METHOD(Test_Flow, testFor17); -PHP_METHOD(Test_Flow, testFor18); -PHP_METHOD(Test_Flow, testFor19); -PHP_METHOD(Test_Flow, testFor20); -PHP_METHOD(Test_Flow, testFor21); -PHP_METHOD(Test_Flow, testFor22); -PHP_METHOD(Test_Flow, testFor23); -PHP_METHOD(Test_Flow, testFor24); -PHP_METHOD(Test_Flow, testFor30); -PHP_METHOD(Test_Flow, testFor31); -PHP_METHOD(Test_Flow, testFor32); -PHP_METHOD(Test_Flow, testFor33); -PHP_METHOD(Test_Flow, testFor34); -PHP_METHOD(Test_Flow, testFor35Aux); -PHP_METHOD(Test_Flow, testFor35); -PHP_METHOD(Test_Flow, testFor36Aux); -PHP_METHOD(Test_Flow, testFor36); -PHP_METHOD(Test_Flow, testFor37); -PHP_METHOD(Test_Flow, testFor38); -PHP_METHOD(Test_Flow, testFor39); -PHP_METHOD(Test_Flow, testFor40); -PHP_METHOD(Test_Flow, testUnrechable1); -PHP_METHOD(Test_Flow, testUnrechable2); -PHP_METHOD(Test_Flow, testUnrechable3); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_testif16, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_testif17, 0, 0, 1) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_testwhile10, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_testwhile11, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, d) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_testwhilenexttest, 0, 0, 1) - ZEND_ARG_INFO(0, variable) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_testwhiledonexttest, 0, 0, 1) - ZEND_ARG_INFO(0, variable) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_testfor15, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, c, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, c) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, d, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, d) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_testfor32, 0, 0, 1) - ZEND_ARG_INFO(0, e) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_testfor33, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, e, Iterator, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_testfor34, 0, 0, 0) - ZEND_ARG_OBJ_INFO(0, e, Iterator, 1) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_testfor35aux, 0, 0, 1) - ZEND_ARG_INFO(0, hello) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_testfor36aux, 0, 0, 1) - ZEND_ARG_INFO(0, hello) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_flow_method_entry) { - PHP_ME(Test_Flow, testIf1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf6, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf7, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf8, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf9, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf10, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf12, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf13, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf14, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf15, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf16, arginfo_test_flow_testif16, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testIf17, arginfo_test_flow_testif17, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testLoop1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testLoop2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testLoop3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testLoop4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhile1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhile2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhile3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhile4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhile5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhile6, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhile7, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhile8, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhile9, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhile10, arginfo_test_flow_testwhile10, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhile11, arginfo_test_flow_testwhile11, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhile12, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhile13, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testDoWhile1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhileNextTest, arginfo_test_flow_testwhilenexttest, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testWhileDoNextTest, arginfo_test_flow_testwhiledonexttest, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor6, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor7, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor8, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor9, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor10, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor11, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor12, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor13, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor14, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor15, arginfo_test_flow_testfor15, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor16, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor17, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor18, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor19, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor20, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor21, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor22, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor23, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor24, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor30, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor31, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor32, arginfo_test_flow_testfor32, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor33, arginfo_test_flow_testfor33, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor34, arginfo_test_flow_testfor34, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor35Aux, arginfo_test_flow_testfor35aux, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor35, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor36Aux, arginfo_test_flow_testfor36aux, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor36, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor37, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor38, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor39, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testFor40, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testUnrechable1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testUnrechable2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow, testUnrechable3, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/flow/switchflow.zep.h b/ext/test/flow/switchflow.zep.h deleted file mode 100644 index 1624d6d5c6..0000000000 --- a/ext/test/flow/switchflow.zep.h +++ /dev/null @@ -1,124 +0,0 @@ - -extern zend_class_entry *test_flow_switchflow_ce; - -ZEPHIR_INIT_CLASS(Test_Flow_SwitchFlow); - -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch1); -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch2); -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch3); -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch4); -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch5); -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch6); -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch7); -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch8); -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch9); -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch10); -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch11); -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch12); -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch13); -PHP_METHOD(Test_Flow_SwitchFlow, testSwitch14); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch1, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch1, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch2, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch2, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch3, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch3, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch4, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch4, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch5, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch5, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch6, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch6, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch7, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch7, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch8, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch8, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch9, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch9, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch10, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_flow_switchflow_testswitch10, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_switchflow_testswitch12, 0, 0, 2) - ZEND_ARG_INFO(0, var1) - ZEND_ARG_INFO(0, var2) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_switchflow_testswitch13, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_flow_switchflow_testswitch14, 0, 0, 0) - ZEND_ARG_INFO(0, result_type) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_flow_switchflow_method_entry) { - PHP_ME(Test_Flow_SwitchFlow, testSwitch1, arginfo_test_flow_switchflow_testswitch1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow_SwitchFlow, testSwitch2, arginfo_test_flow_switchflow_testswitch2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow_SwitchFlow, testSwitch3, arginfo_test_flow_switchflow_testswitch3, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow_SwitchFlow, testSwitch4, arginfo_test_flow_switchflow_testswitch4, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow_SwitchFlow, testSwitch5, arginfo_test_flow_switchflow_testswitch5, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow_SwitchFlow, testSwitch6, arginfo_test_flow_switchflow_testswitch6, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow_SwitchFlow, testSwitch7, arginfo_test_flow_switchflow_testswitch7, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow_SwitchFlow, testSwitch8, arginfo_test_flow_switchflow_testswitch8, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow_SwitchFlow, testSwitch9, arginfo_test_flow_switchflow_testswitch9, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow_SwitchFlow, testSwitch10, arginfo_test_flow_switchflow_testswitch10, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow_SwitchFlow, testSwitch11, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow_SwitchFlow, testSwitch12, arginfo_test_flow_switchflow_testswitch12, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow_SwitchFlow, testSwitch13, arginfo_test_flow_switchflow_testswitch13, ZEND_ACC_PUBLIC) - PHP_ME(Test_Flow_SwitchFlow, testSwitch14, arginfo_test_flow_switchflow_testswitch14, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/fortytwo.zep.h b/ext/test/fortytwo.zep.h deleted file mode 100644 index 125c9b8966..0000000000 --- a/ext/test/fortytwo.zep.h +++ /dev/null @@ -1,22 +0,0 @@ - -extern zend_class_entry *test_fortytwo_ce; - -ZEPHIR_INIT_CLASS(Test_FortyTwo); - -PHP_METHOD(Test_FortyTwo, proof); - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fortytwo_proof, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_fortytwo_proof, 0, 0, IS_VOID, NULL, 0) -#endif -ZEND_END_ARG_INFO() -#else -#define arginfo_test_fortytwo_proof NULL -#endif - -ZEPHIR_INIT_FUNCS(test_fortytwo_method_entry) { - PHP_ME(Test_FortyTwo, proof, arginfo_test_fortytwo_proof, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/functional.zep.h b/ext/test/functional.zep.h deleted file mode 100644 index d636ce0f0e..0000000000 --- a/ext/test/functional.zep.h +++ /dev/null @@ -1,22 +0,0 @@ - -extern zend_class_entry *test_functional_ce; - -ZEPHIR_INIT_CLASS(Test_Functional); - -PHP_METHOD(Test_Functional, map1); -PHP_METHOD(Test_Functional, map2); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_functional_map1, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, a, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_functional_map2, 0, 0, 2) - ZEND_ARG_ARRAY_INFO(0, a, 0) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_functional_method_entry) { - PHP_ME(Test_Functional, map1, arginfo_test_functional_map1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Functional, map2, arginfo_test_functional_map2, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/functionexists.zep.h b/ext/test/functionexists.zep.h deleted file mode 100644 index 17b070d311..0000000000 --- a/ext/test/functionexists.zep.h +++ /dev/null @@ -1,41 +0,0 @@ - -extern zend_class_entry *test_functionexists_ce; - -ZEPHIR_INIT_CLASS(Test_FunctionExists); - -PHP_METHOD(Test_FunctionExists, testWithPassedName); -PHP_METHOD(Test_FunctionExists, testBuiltInFunctions); -PHP_METHOD(Test_FunctionExists, testWithString); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_functionexists_testwithpassedname, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_functionexists_testwithpassedname, 0, 1, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, func, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, func) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_functionexists_testbuiltinfunctions, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_functionexists_testbuiltinfunctions, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_functionexists_testwithstring, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_functionexists_testwithstring, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_functionexists_method_entry) { - PHP_ME(Test_FunctionExists, testWithPassedName, arginfo_test_functionexists_testwithpassedname, ZEND_ACC_PUBLIC) - PHP_ME(Test_FunctionExists, testBuiltInFunctions, arginfo_test_functionexists_testbuiltinfunctions, ZEND_ACC_PUBLIC) - PHP_ME(Test_FunctionExists, testWithString, arginfo_test_functionexists_testwithstring, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/globals.zep.h b/ext/test/globals.zep.h deleted file mode 100644 index 8a06e2b2e6..0000000000 --- a/ext/test/globals.zep.h +++ /dev/null @@ -1,105 +0,0 @@ - -extern zend_class_entry *test_globals_ce; - -ZEPHIR_INIT_CLASS(Test_Globals); - -PHP_METHOD(Test_Globals, setBoolValueUsingDotNotation); -PHP_METHOD(Test_Globals, setIntValueUsingDotNotation); -PHP_METHOD(Test_Globals, setCharValue); -PHP_METHOD(Test_Globals, setBoolValue); -PHP_METHOD(Test_Globals, setDefaultGlobalsOrmCacheLevel); -PHP_METHOD(Test_Globals, getDefaultGlobals1); -PHP_METHOD(Test_Globals, getDefaultGlobals2); -PHP_METHOD(Test_Globals, getDefaultGlobals3); -PHP_METHOD(Test_Globals, getDefaultGlobals4); -PHP_METHOD(Test_Globals, getDefaultGlobals5); -PHP_METHOD(Test_Globals, getDefaultGlobals6); -PHP_METHOD(Test_Globals, getDefaultGlobals7); -PHP_METHOD(Test_Globals, getDefaultGlobalsOrmCacheLevel); - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_setboolvalueusingdotnotation, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_setboolvalueusingdotnotation, 0, 1, IS_VOID, NULL, 0) -#endif -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_globals_setboolvalueusingdotnotation, 0, 0, 1) -#define arginfo_test_globals_setboolvalueusingdotnotation NULL -#endif - - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_setintvalueusingdotnotation, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_setintvalueusingdotnotation, 0, 1, IS_VOID, NULL, 0) -#endif -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_globals_setintvalueusingdotnotation, 0, 0, 1) -#define arginfo_test_globals_setintvalueusingdotnotation NULL -#endif - - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_setcharvalue, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_setcharvalue, 0, 1, IS_VOID, NULL, 0) -#endif -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_globals_setcharvalue, 0, 0, 1) -#define arginfo_test_globals_setcharvalue NULL -#endif - - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_setboolvalue, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_setboolvalue, 0, 1, IS_VOID, NULL, 0) -#endif -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_globals_setboolvalue, 0, 0, 1) -#define arginfo_test_globals_setboolvalue NULL -#endif - - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_setdefaultglobalsormcachelevel, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_setdefaultglobalsormcachelevel, 0, 1, IS_VOID, NULL, 0) -#endif -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_globals_setdefaultglobalsormcachelevel, 0, 0, 1) -#define arginfo_test_globals_setdefaultglobalsormcachelevel NULL -#endif - - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_globals_method_entry) { - PHP_ME(Test_Globals, setBoolValueUsingDotNotation, arginfo_test_globals_setboolvalueusingdotnotation, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals, setIntValueUsingDotNotation, arginfo_test_globals_setintvalueusingdotnotation, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals, setCharValue, arginfo_test_globals_setcharvalue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals, setBoolValue, arginfo_test_globals_setboolvalue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals, setDefaultGlobalsOrmCacheLevel, arginfo_test_globals_setdefaultglobalsormcachelevel, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals, getDefaultGlobals1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals, getDefaultGlobals2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals, getDefaultGlobals3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals, getDefaultGlobals4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals, getDefaultGlobals5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals, getDefaultGlobals6, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals, getDefaultGlobals7, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals, getDefaultGlobalsOrmCacheLevel, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/globals/env.zep.h b/ext/test/globals/env.zep.h deleted file mode 100644 index cde3710a0a..0000000000 --- a/ext/test/globals/env.zep.h +++ /dev/null @@ -1,19 +0,0 @@ - -extern zend_class_entry *test_globals_env_ce; - -ZEPHIR_INIT_CLASS(Test_Globals_Env); - -PHP_METHOD(Test_Globals_Env, read); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_globals_env_read, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_globals_env_method_entry) { - PHP_ME(Test_Globals_Env, read, arginfo_test_globals_env_read, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/globals/post.zep.h b/ext/test/globals/post.zep.h deleted file mode 100644 index dd46807f38..0000000000 --- a/ext/test/globals/post.zep.h +++ /dev/null @@ -1,23 +0,0 @@ - -extern zend_class_entry *test_globals_post_ce; - -ZEPHIR_INIT_CLASS(Test_Globals_Post); - -PHP_METHOD(Test_Globals_Post, hasValue); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_post_hasvalue, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_post_hasvalue, 0, 1, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_globals_post_method_entry) { - PHP_ME(Test_Globals_Post, hasValue, arginfo_test_globals_post_hasvalue, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/globals/server.zep.h b/ext/test/globals/server.zep.h deleted file mode 100644 index e94484513b..0000000000 --- a/ext/test/globals/server.zep.h +++ /dev/null @@ -1,37 +0,0 @@ - -extern zend_class_entry *test_globals_server_ce; - -ZEPHIR_INIT_CLASS(Test_Globals_Server); - -PHP_METHOD(Test_Globals_Server, f1); -PHP_METHOD(Test_Globals_Server, f2); -PHP_METHOD(Test_Globals_Server, check); - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_server_f1, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_server_f1, 0, 0, IS_VOID, NULL, 0) -#endif -ZEND_END_ARG_INFO() -#else -#define arginfo_test_globals_server_f1 NULL -#endif - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_server_f2, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_server_f2, 0, 0, IS_VOID, NULL, 0) -#endif -ZEND_END_ARG_INFO() -#else -#define arginfo_test_globals_server_f2 NULL -#endif - -ZEPHIR_INIT_FUNCS(test_globals_server_method_entry) { - PHP_ME(Test_Globals_Server, f1, arginfo_test_globals_server_f1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals_Server, f2, arginfo_test_globals_server_f2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals_Server, check, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/globals/serverrequestfactory.zep.h b/ext/test/globals/serverrequestfactory.zep.h deleted file mode 100644 index 8e1c79cfe4..0000000000 --- a/ext/test/globals/serverrequestfactory.zep.h +++ /dev/null @@ -1,34 +0,0 @@ - -extern zend_class_entry *test_globals_serverrequestfactory_ce; - -ZEPHIR_INIT_CLASS(Test_Globals_ServerRequestFactory); - -PHP_METHOD(Test_Globals_ServerRequestFactory, load); -PHP_METHOD(Test_Globals_ServerRequestFactory, checkNullArray); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_serverrequestfactory_load, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_serverrequestfactory_load, 0, 0, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, server, 1) - ZEND_ARG_ARRAY_INFO(0, get, 1) - ZEND_ARG_ARRAY_INFO(0, post, 1) - ZEND_ARG_ARRAY_INFO(0, cookies, 1) - ZEND_ARG_ARRAY_INFO(0, files, 1) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_serverrequestfactory_checknullarray, 0, 2, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_globals_serverrequestfactory_checknullarray, 0, 2, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_INFO(0, source) - ZEND_ARG_ARRAY_INFO(0, super, 0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_globals_serverrequestfactory_method_entry) { - PHP_ME(Test_Globals_ServerRequestFactory, load, arginfo_test_globals_serverrequestfactory_load, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals_ServerRequestFactory, checkNullArray, arginfo_test_globals_serverrequestfactory_checknullarray, ZEND_ACC_PRIVATE) - PHP_FE_END -}; diff --git a/ext/test/globals/session/base.zep.h b/ext/test/globals/session/base.zep.h deleted file mode 100644 index 52dd7f9496..0000000000 --- a/ext/test/globals/session/base.zep.h +++ /dev/null @@ -1,53 +0,0 @@ - -extern zend_class_entry *test_globals_session_base_ce; - -ZEPHIR_INIT_CLASS(Test_Globals_Session_Base); - -PHP_METHOD(Test_Globals_Session_Base, set); -PHP_METHOD(Test_Globals_Session_Base, remove); -PHP_METHOD(Test_Globals_Session_Base, __set); -PHP_METHOD(Test_Globals_Session_Base, __unset); -PHP_METHOD(Test_Globals_Session_Base, removeSessionData); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_globals_session_base_set, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, index, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, index) -#endif - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_globals_session_base_remove, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, index, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, index) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_globals_session_base___set, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, index, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, index) -#endif - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_globals_session_base___unset, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, index, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, index) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_globals_session_base_method_entry) { - PHP_ME(Test_Globals_Session_Base, set, arginfo_test_globals_session_base_set, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals_Session_Base, remove, arginfo_test_globals_session_base_remove, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals_Session_Base, __set, arginfo_test_globals_session_base___set, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals_Session_Base, __unset, arginfo_test_globals_session_base___unset, ZEND_ACC_PUBLIC) - PHP_ME(Test_Globals_Session_Base, removeSessionData, NULL, ZEND_ACC_PROTECTED) - PHP_FE_END -}; diff --git a/ext/test/globals/session/child.zep.h b/ext/test/globals/session/child.zep.h deleted file mode 100644 index 923f491049..0000000000 --- a/ext/test/globals/session/child.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_globals_session_child_ce; - -ZEPHIR_INIT_CLASS(Test_Globals_Session_Child); - -PHP_METHOD(Test_Globals_Session_Child, destroy); - -ZEPHIR_INIT_FUNCS(test_globals_session_child_method_entry) { - PHP_ME(Test_Globals_Session_Child, destroy, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/instance.zep.h b/ext/test/instance.zep.h deleted file mode 100644 index 6f678a308a..0000000000 --- a/ext/test/instance.zep.h +++ /dev/null @@ -1,48 +0,0 @@ - -extern zend_class_entry *test_instance_ce; - -ZEPHIR_INIT_CLASS(Test_Instance); - -PHP_METHOD(Test_Instance, __construct); -PHP_METHOD(Test_Instance, testIssue1339); -PHP_METHOD(Test_Instance, testInstanceCreate); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_instance___construct, 0, 0, 11) - ZEND_ARG_OBJ_INFO(0, a1, Test\\Arithmetic, 0) - ZEND_ARG_OBJ_INFO(0, a2, Test\\ArrayObject, 0) - ZEND_ARG_OBJ_INFO(0, a3, Test\\Assign, 0) - ZEND_ARG_OBJ_INFO(0, a4, Test\\Bitwise, 0) - ZEND_ARG_OBJ_INFO(0, a5, Test\\BranchPrediction, 0) - ZEND_ARG_OBJ_INFO(0, a6, Test\\Cast, 0) - ZEND_ARG_OBJ_INFO(0, a7, Test\\Cblock, 0) - ZEND_ARG_OBJ_INFO(0, a8, Test\\Chars, 0) - ZEND_ARG_OBJ_INFO(0, a9, Test\\Closures, 0) - ZEND_ARG_OBJ_INFO(0, a10, Test\\Compare, 0) - ZEND_ARG_OBJ_INFO(0, a11, Test\\Concat, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_test_instance_testissue1339, 0, 0, Test\\Instance, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instance_testissue1339, 0, 0, IS_OBJECT, "Test\\Instance", 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_test_instance_testinstancecreate, 0, 1, Test\\Instance, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instance_testinstancecreate, 0, 1, IS_OBJECT, "Test\\Instance", 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, className, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, className) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_instance_method_entry) { - PHP_ME(Test_Instance, __construct, arginfo_test_instance___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Test_Instance, testIssue1339, arginfo_test_instance_testissue1339, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Instance, testInstanceCreate, arginfo_test_instance_testinstancecreate, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/instanceoff.zep.h b/ext/test/instanceoff.zep.h deleted file mode 100644 index 1a1dd23360..0000000000 --- a/ext/test/instanceoff.zep.h +++ /dev/null @@ -1,104 +0,0 @@ - -extern zend_class_entry *test_instanceoff_ce; - -ZEPHIR_INIT_CLASS(Test_Instanceoff); - -PHP_METHOD(Test_Instanceoff, testInstanceOf1); -PHP_METHOD(Test_Instanceoff, testInstanceOf2); -PHP_METHOD(Test_Instanceoff, testInstanceOf3); -PHP_METHOD(Test_Instanceoff, testInstanceOf4); -PHP_METHOD(Test_Instanceoff, testInstanceOf5); -PHP_METHOD(Test_Instanceoff, testInstanceOf6); -PHP_METHOD(Test_Instanceoff, testInstanceOf7); -PHP_METHOD(Test_Instanceoff, testInstanceOf8); -PHP_METHOD(Test_Instanceoff, testInstanceOf9); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof1, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof1, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof2, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof2, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof3, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof3, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof4, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof4, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof5, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof5, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof6, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof6, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof7, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof7, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_INFO(0, test) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof8, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof8, 0, 1, _IS_BOOL, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, test, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, test) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof9, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_instanceoff_testinstanceof9, 0, 2, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_INFO(0, a) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, test, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, test) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_instanceoff_method_entry) { - PHP_ME(Test_Instanceoff, testInstanceOf1, arginfo_test_instanceoff_testinstanceof1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Instanceoff, testInstanceOf2, arginfo_test_instanceoff_testinstanceof2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Instanceoff, testInstanceOf3, arginfo_test_instanceoff_testinstanceof3, ZEND_ACC_PUBLIC) - PHP_ME(Test_Instanceoff, testInstanceOf4, arginfo_test_instanceoff_testinstanceof4, ZEND_ACC_PUBLIC) - PHP_ME(Test_Instanceoff, testInstanceOf5, arginfo_test_instanceoff_testinstanceof5, ZEND_ACC_PUBLIC) - PHP_ME(Test_Instanceoff, testInstanceOf6, arginfo_test_instanceoff_testinstanceof6, ZEND_ACC_PUBLIC) - PHP_ME(Test_Instanceoff, testInstanceOf7, arginfo_test_instanceoff_testinstanceof7, ZEND_ACC_PUBLIC) - PHP_ME(Test_Instanceoff, testInstanceOf8, arginfo_test_instanceoff_testinstanceof8, ZEND_ACC_PUBLIC) - PHP_ME(Test_Instanceoff, testInstanceOf9, arginfo_test_instanceoff_testinstanceof9, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/integration/psr/http/message/messageinterfaceex.zep.h b/ext/test/integration/psr/http/message/messageinterfaceex.zep.h deleted file mode 100644 index 7930b66fd7..0000000000 --- a/ext/test/integration/psr/http/message/messageinterfaceex.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_integration_psr_http_message_messageinterfaceex_ce; - -ZEPHIR_INIT_CLASS(Test_Integration_Psr_Http_Message_MessageInterfaceEx); - diff --git a/ext/test/internalclasses.zep.h b/ext/test/internalclasses.zep.h deleted file mode 100644 index ac508f5921..0000000000 --- a/ext/test/internalclasses.zep.h +++ /dev/null @@ -1,13 +0,0 @@ - -extern zend_class_entry *test_internalclasses_ce; - -ZEPHIR_INIT_CLASS(Test_InternalClasses); - -PHP_METHOD(Test_InternalClasses, testStaticCall); -PHP_METHOD(Test_InternalClasses, testStaticPropertyFetch); - -ZEPHIR_INIT_FUNCS(test_internalclasses_method_entry) { - PHP_ME(Test_InternalClasses, testStaticCall, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_InternalClasses, testStaticPropertyFetch, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/internalinterfaces.zep.h b/ext/test/internalinterfaces.zep.h deleted file mode 100644 index b448c9e40d..0000000000 --- a/ext/test/internalinterfaces.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_internalinterfaces_ce; - -ZEPHIR_INIT_CLASS(Test_InternalInterfaces); - -PHP_METHOD(Test_InternalInterfaces, count); - -ZEPHIR_INIT_FUNCS(test_internalinterfaces_method_entry) { - PHP_ME(Test_InternalInterfaces, count, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/invoke.zep.h b/ext/test/invoke.zep.h deleted file mode 100644 index 8034488783..0000000000 --- a/ext/test/invoke.zep.h +++ /dev/null @@ -1,29 +0,0 @@ - -extern zend_class_entry *test_invoke_ce; - -ZEPHIR_INIT_CLASS(Test_Invoke); - -PHP_METHOD(Test_Invoke, __construct); -PHP_METHOD(Test_Invoke, __invoke); -PHP_METHOD(Test_Invoke, test); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_invoke___invoke, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_invoke___invoke, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_invoke_test, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_invoke_test, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_invoke_method_entry) { - PHP_ME(Test_Invoke, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Test_Invoke, __invoke, arginfo_test_invoke___invoke, ZEND_ACC_PUBLIC) - PHP_ME(Test_Invoke, test, arginfo_test_invoke_test, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/issettest.zep.h b/ext/test/issettest.zep.h deleted file mode 100644 index ce2711c48c..0000000000 --- a/ext/test/issettest.zep.h +++ /dev/null @@ -1,78 +0,0 @@ - -extern zend_class_entry *test_issettest_ce; - -ZEPHIR_INIT_CLASS(Test_IssetTest); - -PHP_METHOD(Test_IssetTest, testIssetArray1); -PHP_METHOD(Test_IssetTest, testIssetArray2); -PHP_METHOD(Test_IssetTest, testIssetArray3); -PHP_METHOD(Test_IssetTest, testIssetArray4); -PHP_METHOD(Test_IssetTest, testIssetArray5); -PHP_METHOD(Test_IssetTest, testIssetProperty1); -PHP_METHOD(Test_IssetTest, testIssetProperty2); -PHP_METHOD(Test_IssetTest, testIssetProperty3); -PHP_METHOD(Test_IssetTest, testIssetDynamicProperty1); -PHP_METHOD(Test_IssetTest, testIssetDynamicProperty2); -zend_object *zephir_init_properties_Test_IssetTest(zend_class_entry *class_type TSRMLS_DC); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_issettest_testissetarray1, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_issettest_testissetarray2, 0, 0, 2) - ZEND_ARG_INFO(0, a) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_issettest_testissetarray3, 0, 0, 2) - ZEND_ARG_INFO(0, a) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_issettest_testissetarray4, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_issettest_testissetarray5, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_issettest_testissetproperty1, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_issettest_testissetproperty2, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_issettest_testissetproperty3, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_issettest_testissetdynamicproperty2, 0, 0, 1) - ZEND_ARG_INFO(0, inp) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_issettest_method_entry) { - PHP_ME(Test_IssetTest, testIssetArray1, arginfo_test_issettest_testissetarray1, ZEND_ACC_PUBLIC) - PHP_ME(Test_IssetTest, testIssetArray2, arginfo_test_issettest_testissetarray2, ZEND_ACC_PUBLIC) - PHP_ME(Test_IssetTest, testIssetArray3, arginfo_test_issettest_testissetarray3, ZEND_ACC_PUBLIC) - PHP_ME(Test_IssetTest, testIssetArray4, arginfo_test_issettest_testissetarray4, ZEND_ACC_PUBLIC) - PHP_ME(Test_IssetTest, testIssetArray5, arginfo_test_issettest_testissetarray5, ZEND_ACC_PUBLIC) - PHP_ME(Test_IssetTest, testIssetProperty1, arginfo_test_issettest_testissetproperty1, ZEND_ACC_PUBLIC) - PHP_ME(Test_IssetTest, testIssetProperty2, arginfo_test_issettest_testissetproperty2, ZEND_ACC_PUBLIC) - PHP_ME(Test_IssetTest, testIssetProperty3, arginfo_test_issettest_testissetproperty3, ZEND_ACC_PUBLIC) - PHP_ME(Test_IssetTest, testIssetDynamicProperty1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_IssetTest, testIssetDynamicProperty2, arginfo_test_issettest_testissetdynamicproperty2, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/issue1404.zep.h b/ext/test/issue1404.zep.h deleted file mode 100644 index 87222cd6ec..0000000000 --- a/ext/test/issue1404.zep.h +++ /dev/null @@ -1,261 +0,0 @@ - -extern zend_class_entry *test_issue1404_ce; - -ZEPHIR_INIT_CLASS(Test_Issue1404); - -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingInteger70000); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingDouble70100); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingLong70000); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingString70000); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsingZero); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing50000); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing50500); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing50600); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70101); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70102); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70103); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70104); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70105); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70106); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70107); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70108); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70109); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70110); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70111); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70112); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70113); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70114); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70115); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70116); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70117); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70100); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70200); -PHP_METHOD(Test_Issue1404, testIsPhpVersionUsing70300); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusinginteger70000, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusinginteger70000, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusingdouble70100, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusingdouble70100, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusinglong70000, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusinglong70000, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusingstring70000, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusingstring70000, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusingzero, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusingzero, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing50000, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing50000, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing50500, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing50500, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing50600, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing50600, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70101, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70101, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70102, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70102, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70103, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70103, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70104, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70104, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70105, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70105, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70106, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70106, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70107, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70107, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70108, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70108, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70109, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70109, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70110, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70110, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70111, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70111, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70112, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70112, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70113, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70113, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70114, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70114, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70115, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70115, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70116, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70116, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70117, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70117, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70100, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70100, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70200, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70200, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70300, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_issue1404_testisphpversionusing70300, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_issue1404_method_entry) { - PHP_ME(Test_Issue1404, testIsPhpVersionUsingInteger70000, arginfo_test_issue1404_testisphpversionusinginteger70000, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsingDouble70100, arginfo_test_issue1404_testisphpversionusingdouble70100, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsingLong70000, arginfo_test_issue1404_testisphpversionusinglong70000, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsingString70000, arginfo_test_issue1404_testisphpversionusingstring70000, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsingZero, arginfo_test_issue1404_testisphpversionusingzero, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing50000, arginfo_test_issue1404_testisphpversionusing50000, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing50500, arginfo_test_issue1404_testisphpversionusing50500, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing50600, arginfo_test_issue1404_testisphpversionusing50600, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70101, arginfo_test_issue1404_testisphpversionusing70101, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70102, arginfo_test_issue1404_testisphpversionusing70102, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70103, arginfo_test_issue1404_testisphpversionusing70103, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70104, arginfo_test_issue1404_testisphpversionusing70104, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70105, arginfo_test_issue1404_testisphpversionusing70105, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70106, arginfo_test_issue1404_testisphpversionusing70106, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70107, arginfo_test_issue1404_testisphpversionusing70107, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70108, arginfo_test_issue1404_testisphpversionusing70108, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70109, arginfo_test_issue1404_testisphpversionusing70109, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70110, arginfo_test_issue1404_testisphpversionusing70110, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70111, arginfo_test_issue1404_testisphpversionusing70111, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70112, arginfo_test_issue1404_testisphpversionusing70112, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70113, arginfo_test_issue1404_testisphpversionusing70113, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70114, arginfo_test_issue1404_testisphpversionusing70114, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70115, arginfo_test_issue1404_testisphpversionusing70115, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70116, arginfo_test_issue1404_testisphpversionusing70116, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70117, arginfo_test_issue1404_testisphpversionusing70117, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70100, arginfo_test_issue1404_testisphpversionusing70100, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70200, arginfo_test_issue1404_testisphpversionusing70200, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issue1404, testIsPhpVersionUsing70300, arginfo_test_issue1404_testisphpversionusing70300, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/issue1521.zep.h b/ext/test/issue1521.zep.h deleted file mode 100644 index 9167b4c514..0000000000 --- a/ext/test/issue1521.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_issue1521_ce; - -ZEPHIR_INIT_CLASS(Test_Issue1521); - -PHP_METHOD(Test_Issue1521, test); - -ZEPHIR_INIT_FUNCS(test_issue1521_method_entry) { - PHP_ME(Test_Issue1521, test, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/issues.zep.h b/ext/test/issues.zep.h deleted file mode 100644 index 4d902891c5..0000000000 --- a/ext/test/issues.zep.h +++ /dev/null @@ -1,23 +0,0 @@ - -extern zend_class_entry *test_issues_ce; - -ZEPHIR_INIT_CLASS(Test_Issues); - -PHP_METHOD(Test_Issues, setAdapter); -PHP_METHOD(Test_Issues, someMethod); -PHP_METHOD(Test_Issues, test); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_issues_setadapter, 0, 0, 1) - ZEND_ARG_INFO(0, adapter) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_issues_somemethod, 0, 0, 1) - ZEND_ARG_INFO(0, methodName) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_issues_method_entry) { - PHP_ME(Test_Issues, setAdapter, arginfo_test_issues_setadapter, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issues, someMethod, arginfo_test_issues_somemethod, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issues, test, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/json.zep.h b/ext/test/json.zep.h deleted file mode 100644 index 3268cd07af..0000000000 --- a/ext/test/json.zep.h +++ /dev/null @@ -1,21 +0,0 @@ - -extern zend_class_entry *test_json_ce; - -ZEPHIR_INIT_CLASS(Test_Json); - -PHP_METHOD(Test_Json, testEncodeObject); -PHP_METHOD(Test_Json, testEncodeArray); -PHP_METHOD(Test_Json, testEncodeOptions); -PHP_METHOD(Test_Json, testDecodeObject); -PHP_METHOD(Test_Json, testDecodeObject2); -PHP_METHOD(Test_Json, testDecodeArray); - -ZEPHIR_INIT_FUNCS(test_json_method_entry) { - PHP_ME(Test_Json, testEncodeObject, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Json, testEncodeArray, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Json, testEncodeOptions, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Json, testDecodeObject, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Json, testDecodeObject2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Json, testDecodeArray, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/logical.zep.h b/ext/test/logical.zep.h deleted file mode 100644 index 4b4ce9b7be..0000000000 --- a/ext/test/logical.zep.h +++ /dev/null @@ -1,58 +0,0 @@ - -extern zend_class_entry *test_logical_ce; - -ZEPHIR_INIT_CLASS(Test_Logical); - -PHP_METHOD(Test_Logical, testAnd1); -PHP_METHOD(Test_Logical, testAnd2); -PHP_METHOD(Test_Logical, testAnd3); -PHP_METHOD(Test_Logical, testAnd4); -PHP_METHOD(Test_Logical, testAnd9); -PHP_METHOD(Test_Logical, testOr1); -PHP_METHOD(Test_Logical, testOr2); -PHP_METHOD(Test_Logical, testMixed1); -PHP_METHOD(Test_Logical, testMixed2); -PHP_METHOD(Test_Logical, testMixed3); -PHP_METHOD(Test_Logical, testMixed4); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_logical_testand9, 0, 0, 2) - ZEND_ARG_INFO(0, a) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_logical_testmixed2, 0, 0, 2) - ZEND_ARG_INFO(0, match) - ZEND_ARG_INFO(0, minLength) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_logical_testmixed4, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_logical_method_entry) { - PHP_ME(Test_Logical, testAnd1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Logical, testAnd2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Logical, testAnd3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Logical, testAnd4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Logical, testAnd9, arginfo_test_logical_testand9, ZEND_ACC_PUBLIC) - PHP_ME(Test_Logical, testOr1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Logical, testOr2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Logical, testMixed1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Logical, testMixed2, arginfo_test_logical_testmixed2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Logical, testMixed3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Logical, testMixed4, arginfo_test_logical_testmixed4, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/mcall.zep.h b/ext/test/mcall.zep.h deleted file mode 100644 index 5a71ecd942..0000000000 --- a/ext/test/mcall.zep.h +++ /dev/null @@ -1,312 +0,0 @@ - -extern zend_class_entry *test_mcall_ce; - -ZEPHIR_INIT_CLASS(Test_Mcall); - -PHP_METHOD(Test_Mcall, testMethod1); -PHP_METHOD(Test_Mcall, testMethod2); -PHP_METHOD(Test_Mcall, testMethod3); -PHP_METHOD(Test_Mcall, testMethod4); -PHP_METHOD(Test_Mcall, testMethod5); -PHP_METHOD(Test_Mcall, testMethod6); -PHP_METHOD(Test_Mcall, testMethod7); -PHP_METHOD(Test_Mcall, testCall1); -PHP_METHOD(Test_Mcall, testCall2); -PHP_METHOD(Test_Mcall, testCall3); -PHP_METHOD(Test_Mcall, testCall4); -PHP_METHOD(Test_Mcall, testCall5); -PHP_METHOD(Test_Mcall, testCall6); -PHP_METHOD(Test_Mcall, testCall7); -PHP_METHOD(Test_Mcall, testCall8); -PHP_METHOD(Test_Mcall, testCall9); -PHP_METHOD(Test_Mcall, testCall10); -PHP_METHOD(Test_Mcall, testCall11); -PHP_METHOD(Test_Mcall, testCall12); -PHP_METHOD(Test_Mcall, testCall13); -PHP_METHOD(Test_Mcall, testCall14); -PHP_METHOD(Test_Mcall, testCall15); -PHP_METHOD(Test_Mcall, testCall16); -PHP_METHOD(Test_Mcall, testCall17); -PHP_METHOD(Test_Mcall, testCall18); -PHP_METHOD(Test_Mcall, testMethod19); -PHP_METHOD(Test_Mcall, testCall20); -PHP_METHOD(Test_Mcall, testMethod21); -PHP_METHOD(Test_Mcall, testCall22); -PHP_METHOD(Test_Mcall, optionalRequereString); -PHP_METHOD(Test_Mcall, optionalParameterString); -PHP_METHOD(Test_Mcall, optionalParameterStringNull); -PHP_METHOD(Test_Mcall, optionalParameterInt); -PHP_METHOD(Test_Mcall, optionalParameterVar); -PHP_METHOD(Test_Mcall, optionalParameterBoolTrue); -PHP_METHOD(Test_Mcall, optionalParameterBoolFalse); -PHP_METHOD(Test_Mcall, optionalParameterBoolean); -PHP_METHOD(Test_Mcall, optionalParameterBooleanNull); -PHP_METHOD(Test_Mcall, arrayParamWithDefaultEmptyArray); -PHP_METHOD(Test_Mcall, arrayParamWithDefaultNullValue); -PHP_METHOD(Test_Mcall, arrayParam); -PHP_METHOD(Test_Mcall, objectParamCastStdClass); -PHP_METHOD(Test_Mcall, objectParamCastOoParam); -PHP_METHOD(Test_Mcall, bb); -PHP_METHOD(Test_Mcall, testCallablePass); -PHP_METHOD(Test_Mcall, testCallableArrayThisMethodPass); -PHP_METHOD(Test_Mcall, aa); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testmethod4, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testmethod5, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testmethod6, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_test_mcall_testmethod7, 0, 0, stdClass, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_mcall_testmethod7, 0, 0, IS_OBJECT, "stdClass", 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testcall4, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testcall5, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testcall6, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testcall7, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testcall8, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testcall9, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testcall13, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testcall14, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testcall15, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testcall16, 0, 0, 2) - ZEND_ARG_INFO(0, c) - ZEND_ARG_INFO(0, d) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testcall17, 0, 0, 2) - ZEND_ARG_INFO(0, c) - ZEND_ARG_INFO(0, d) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testmethod19, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testcall20, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, k, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, k) -#endif - ZEND_ARG_INFO(0, p) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testmethod21, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_testcall22, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, k, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, k) -#endif - ZEND_ARG_INFO(0, p) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_optionalrequerestring, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, param, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, param) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_optionalparameterstring, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, param, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, param) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_optionalparameterstringnull, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, param, IS_STRING, 1) -#else - ZEND_ARG_INFO(0, param) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_optionalparameterint, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, param, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, param) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_optionalparametervar, 0, 0, 0) - ZEND_ARG_INFO(0, param) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_optionalparameterbooltrue, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, param, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, param) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_optionalparameterboolfalse, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, param, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, param) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_optionalparameterboolean, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, start, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, start) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_optionalparameterbooleannull, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, value, _IS_BOOL, 1) -#else - ZEND_ARG_INFO(0, value) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_arrayparamwithdefaultemptyarray, 0, 0, 0) - ZEND_ARG_ARRAY_INFO(0, driverOptions, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_arrayparamwithdefaultnullvalue, 0, 0, 0) - ZEND_ARG_ARRAY_INFO(0, driverOptions, 1) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_arrayparam, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, driverOptions, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_objectparamcaststdclass, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, param, StdClass, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_objectparamcastooparam, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, param, Test\\Oo\\Param, 0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_mcall_method_entry) { - PHP_ME(Test_Mcall, testMethod1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testMethod2, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Test_Mcall, testMethod3, NULL, ZEND_ACC_PRIVATE) - PHP_ME(Test_Mcall, testMethod4, arginfo_test_mcall_testmethod4, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testMethod5, arginfo_test_mcall_testmethod5, ZEND_ACC_PROTECTED) - PHP_ME(Test_Mcall, testMethod6, arginfo_test_mcall_testmethod6, ZEND_ACC_PRIVATE) - PHP_ME(Test_Mcall, testMethod7, arginfo_test_mcall_testmethod7, ZEND_ACC_PRIVATE) - PHP_ME(Test_Mcall, testCall1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall4, arginfo_test_mcall_testcall4, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall5, arginfo_test_mcall_testcall5, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall6, arginfo_test_mcall_testcall6, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall7, arginfo_test_mcall_testcall7, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall8, arginfo_test_mcall_testcall8, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall9, arginfo_test_mcall_testcall9, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall10, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall11, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall12, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall13, arginfo_test_mcall_testcall13, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall14, arginfo_test_mcall_testcall14, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall15, arginfo_test_mcall_testcall15, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall16, arginfo_test_mcall_testcall16, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall17, arginfo_test_mcall_testcall17, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall18, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testMethod19, arginfo_test_mcall_testmethod19, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCall20, arginfo_test_mcall_testcall20, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testMethod21, arginfo_test_mcall_testmethod21, ZEND_ACC_PRIVATE) - PHP_ME(Test_Mcall, testCall22, arginfo_test_mcall_testcall22, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, optionalRequereString, arginfo_test_mcall_optionalrequerestring, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, optionalParameterString, arginfo_test_mcall_optionalparameterstring, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, optionalParameterStringNull, arginfo_test_mcall_optionalparameterstringnull, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, optionalParameterInt, arginfo_test_mcall_optionalparameterint, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, optionalParameterVar, arginfo_test_mcall_optionalparametervar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, optionalParameterBoolTrue, arginfo_test_mcall_optionalparameterbooltrue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, optionalParameterBoolFalse, arginfo_test_mcall_optionalparameterboolfalse, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, optionalParameterBoolean, arginfo_test_mcall_optionalparameterboolean, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, optionalParameterBooleanNull, arginfo_test_mcall_optionalparameterbooleannull, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, arrayParamWithDefaultEmptyArray, arginfo_test_mcall_arrayparamwithdefaultemptyarray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, arrayParamWithDefaultNullValue, arginfo_test_mcall_arrayparamwithdefaultnullvalue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, arrayParam, arginfo_test_mcall_arrayparam, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, objectParamCastStdClass, arginfo_test_mcall_objectparamcaststdclass, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, objectParamCastOoParam, arginfo_test_mcall_objectparamcastooparam, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, bb, NULL, ZEND_ACC_PRIVATE) - PHP_ME(Test_Mcall, testCallablePass, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, testCallableArrayThisMethodPass, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Mcall, aa, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/mcall/caller.zep.h b/ext/test/mcall/caller.zep.h deleted file mode 100644 index 2ad30b4fc7..0000000000 --- a/ext/test/mcall/caller.zep.h +++ /dev/null @@ -1,24 +0,0 @@ - -extern zend_class_entry *test_mcall_caller_ce; - -ZEPHIR_INIT_CLASS(Test_Mcall_Caller); - -PHP_METHOD(Test_Mcall_Caller, start); -PHP_METHOD(Test_Mcall_Caller, perform); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcall_caller_start, 0, 0, 1) - ZEND_ARG_INFO(0, f) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_mcall_caller_perform, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_mcall_caller_perform, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_mcall_caller_method_entry) { - PHP_ME(Test_Mcall_Caller, start, arginfo_test_mcall_caller_start, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Mcall_Caller, perform, arginfo_test_mcall_caller_perform, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/mcallchained.zep.h b/ext/test/mcallchained.zep.h deleted file mode 100644 index 1ab47759f6..0000000000 --- a/ext/test/mcallchained.zep.h +++ /dev/null @@ -1,23 +0,0 @@ - -extern zend_class_entry *test_mcallchained_ce; - -ZEPHIR_INIT_CLASS(Test_McallChained); - -PHP_METHOD(Test_McallChained, testMethod1); -PHP_METHOD(Test_McallChained, testMethod2); -PHP_METHOD(Test_McallChained, testMethod3); -PHP_METHOD(Test_McallChained, testChained1); -PHP_METHOD(Test_McallChained, testChained2); -PHP_METHOD(Test_McallChained, testChained3); -PHP_METHOD(Test_McallChained, testChained4); - -ZEPHIR_INIT_FUNCS(test_mcallchained_method_entry) { - PHP_ME(Test_McallChained, testMethod1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_McallChained, testMethod2, NULL, ZEND_ACC_PROTECTED) - PHP_ME(Test_McallChained, testMethod3, NULL, ZEND_ACC_PRIVATE) - PHP_ME(Test_McallChained, testChained1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_McallChained, testChained2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_McallChained, testChained3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_McallChained, testChained4, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/mcalldynamic.zep.h b/ext/test/mcalldynamic.zep.h deleted file mode 100644 index f2696e1d00..0000000000 --- a/ext/test/mcalldynamic.zep.h +++ /dev/null @@ -1,22 +0,0 @@ - -extern zend_class_entry *test_mcalldynamic_ce; - -ZEPHIR_INIT_CLASS(Test_McallDynamic); - -PHP_METHOD(Test_McallDynamic, testMethod1); -PHP_METHOD(Test_McallDynamic, testMagicCall1); -PHP_METHOD(Test_McallDynamic, __call); -PHP_METHOD(Test_McallDynamic, testCallAnonymousFunctionWithContext); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcalldynamic___call, 0, 0, 2) - ZEND_ARG_INFO(0, method) - ZEND_ARG_INFO(0, arguments) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_mcalldynamic_method_entry) { - PHP_ME(Test_McallDynamic, testMethod1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_McallDynamic, testMagicCall1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_McallDynamic, __call, arginfo_test_mcalldynamic___call, ZEND_ACC_PUBLIC) - PHP_ME(Test_McallDynamic, testCallAnonymousFunctionWithContext, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/mcallinternal.zep.h b/ext/test/mcallinternal.zep.h deleted file mode 100644 index 4787d125c8..0000000000 --- a/ext/test/mcallinternal.zep.h +++ /dev/null @@ -1,82 +0,0 @@ - -extern zend_class_entry *test_mcallinternal_ce; - -ZEPHIR_INIT_CLASS(Test_McallInternal); - -void zep_Test_McallInternal_a(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used); -void zep_Test_McallInternal_b(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used, zval *a_ext , zval *b_ext ); -void zep_Test_McallInternal_c(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used, zval *a_param_ext, zval *b_param_ext); -PHP_METHOD(Test_McallInternal, e); -PHP_METHOD(Test_McallInternal, d); -PHP_METHOD(Test_McallInternal, f); -PHP_METHOD(Test_McallInternal, g); -void zep_Test_McallInternal_other(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used, zval *a_param_ext, zval *b_param_ext); -PHP_METHOD(Test_McallInternal, callFibonacci); -void zep_Test_McallInternal_test1956(int ht, zend_execute_data *execute_data, zval *return_value, zval *this_ptr, int return_value_used); -PHP_METHOD(Test_McallInternal, issue1956); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcallinternal_b, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_mcallinternal_c, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_mcallinternal_other, 0, 2, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_mcallinternal_other, 0, 2, IS_DOUBLE, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_mcallinternal_callfibonacci, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_mcallinternal_callfibonacci, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_test_mcallinternal_test1956, 0, 0, Test\\McallInternal, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_mcallinternal_test1956, 0, 0, IS_OBJECT, "Test\\McallInternal", 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_test_mcallinternal_issue1956, 0, 0, Test\\McallInternal, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_mcallinternal_issue1956, 0, 0, IS_OBJECT, "Test\\McallInternal", 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_mcallinternal_method_entry) { - PHP_ME(Test_McallInternal, e, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_McallInternal, d, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_McallInternal, f, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_McallInternal, g, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_McallInternal, callFibonacci, arginfo_test_mcallinternal_callfibonacci, ZEND_ACC_PUBLIC) - PHP_ME(Test_McallInternal, issue1956, arginfo_test_mcallinternal_issue1956, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/methodabstract.zep.h b/ext/test/methodabstract.zep.h deleted file mode 100644 index 4991622bf5..0000000000 --- a/ext/test/methodabstract.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_methodabstract_ce; - -ZEPHIR_INIT_CLASS(Test_MethodAbstract); - -PHP_METHOD(Test_MethodAbstract, testInterfaceMetho); - -ZEPHIR_INIT_FUNCS(test_methodabstract_method_entry) { - PHP_ME(Test_MethodAbstract, testInterfaceMetho, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/methodargs.zep.h b/ext/test/methodargs.zep.h deleted file mode 100644 index 2efb6c8631..0000000000 --- a/ext/test/methodargs.zep.h +++ /dev/null @@ -1,85 +0,0 @@ - -extern zend_class_entry *test_methodargs_ce; - -ZEPHIR_INIT_CLASS(Test_MethodArgs); - -PHP_METHOD(Test_MethodArgs, setCallable); -PHP_METHOD(Test_MethodArgs, setObject); -PHP_METHOD(Test_MethodArgs, setCallableStrict); -PHP_METHOD(Test_MethodArgs, setObjectStrict); -PHP_METHOD(Test_MethodArgs, setResourceStrict); -PHP_METHOD(Test_MethodArgs, methodOptionalValueWithDefaultStaticConstantAccess); -PHP_METHOD(Test_MethodArgs, methodOptionalStringValueWithDefaultStaticConstantAccess); -PHP_METHOD(Test_MethodArgs, methodOptionalDoubleValueWithDefaultStaticConstantAccess); -PHP_METHOD(Test_MethodArgs, methodOptionalBoolValueWithDefaultStaticConstantAccess); -PHP_METHOD(Test_MethodArgs, methodOptionalIntValueWithDefaultStaticConstantAccess); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_methodargs_setcallable, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_methodargs_setobject, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_methodargs_setcallablestrict, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_methodargs_setobjectstrict, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_methodargs_setresourcestrict, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_methodargs_methodoptionalvaluewithdefaultstaticconstantaccess, 0, 0, 0) - ZEND_ARG_INFO(0, method) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_methodargs_methodoptionalstringvaluewithdefaultstaticconstantaccess, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, parameter, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, parameter) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_methodargs_methodoptionaldoublevaluewithdefaultstaticconstantaccess, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, parameter, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, parameter) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_methodargs_methodoptionalboolvaluewithdefaultstaticconstantaccess, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, parameter, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, parameter) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_methodargs_methodoptionalintvaluewithdefaultstaticconstantaccess, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, parameter, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, parameter) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_methodargs_method_entry) { - PHP_ME(Test_MethodArgs, setCallable, arginfo_test_methodargs_setcallable, ZEND_ACC_PUBLIC) - PHP_ME(Test_MethodArgs, setObject, arginfo_test_methodargs_setobject, ZEND_ACC_PUBLIC) - PHP_ME(Test_MethodArgs, setCallableStrict, arginfo_test_methodargs_setcallablestrict, ZEND_ACC_PUBLIC) - PHP_ME(Test_MethodArgs, setObjectStrict, arginfo_test_methodargs_setobjectstrict, ZEND_ACC_PUBLIC) - PHP_ME(Test_MethodArgs, setResourceStrict, arginfo_test_methodargs_setresourcestrict, ZEND_ACC_PUBLIC) - PHP_ME(Test_MethodArgs, methodOptionalValueWithDefaultStaticConstantAccess, arginfo_test_methodargs_methodoptionalvaluewithdefaultstaticconstantaccess, ZEND_ACC_PUBLIC) - PHP_ME(Test_MethodArgs, methodOptionalStringValueWithDefaultStaticConstantAccess, arginfo_test_methodargs_methodoptionalstringvaluewithdefaultstaticconstantaccess, ZEND_ACC_PUBLIC) - PHP_ME(Test_MethodArgs, methodOptionalDoubleValueWithDefaultStaticConstantAccess, arginfo_test_methodargs_methodoptionaldoublevaluewithdefaultstaticconstantaccess, ZEND_ACC_PUBLIC) - PHP_ME(Test_MethodArgs, methodOptionalBoolValueWithDefaultStaticConstantAccess, arginfo_test_methodargs_methodoptionalboolvaluewithdefaultstaticconstantaccess, ZEND_ACC_PUBLIC) - PHP_ME(Test_MethodArgs, methodOptionalIntValueWithDefaultStaticConstantAccess, arginfo_test_methodargs_methodoptionalintvaluewithdefaultstaticconstantaccess, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/methodinterface.zep.h b/ext/test/methodinterface.zep.h deleted file mode 100644 index 30e99fa006..0000000000 --- a/ext/test/methodinterface.zep.h +++ /dev/null @@ -1,9 +0,0 @@ - -extern zend_class_entry *test_methodinterface_ce; - -ZEPHIR_INIT_CLASS(Test_MethodInterface); - -ZEPHIR_INIT_FUNCS(test_methodinterface_method_entry) { - PHP_ABSTRACT_ME(Test_MethodInterface, testMethod, NULL) - PHP_FE_END -}; diff --git a/ext/test/nativearray.zep.h b/ext/test/nativearray.zep.h deleted file mode 100644 index 3b029007c9..0000000000 --- a/ext/test/nativearray.zep.h +++ /dev/null @@ -1,681 +0,0 @@ - -extern zend_class_entry *test_nativearray_ce; - -ZEPHIR_INIT_CLASS(Test_NativeArray); - -PHP_METHOD(Test_NativeArray, testArray1); -PHP_METHOD(Test_NativeArray, testArray2); -PHP_METHOD(Test_NativeArray, testArray3); -PHP_METHOD(Test_NativeArray, testArray4); -PHP_METHOD(Test_NativeArray, testArray5); -PHP_METHOD(Test_NativeArray, testArray6); -PHP_METHOD(Test_NativeArray, testArray7); -PHP_METHOD(Test_NativeArray, testArray8); -PHP_METHOD(Test_NativeArray, testArray9); -PHP_METHOD(Test_NativeArray, testArray10); -PHP_METHOD(Test_NativeArray, testArray11); -PHP_METHOD(Test_NativeArray, testArray12); -PHP_METHOD(Test_NativeArray, testArray13); -PHP_METHOD(Test_NativeArray, testArray14); -PHP_METHOD(Test_NativeArray, testArray15); -PHP_METHOD(Test_NativeArray, testArray16); -PHP_METHOD(Test_NativeArray, testArray17); -PHP_METHOD(Test_NativeArray, testArray18); -PHP_METHOD(Test_NativeArray, testArray19); -PHP_METHOD(Test_NativeArray, testArray20); -PHP_METHOD(Test_NativeArray, testArray21); -PHP_METHOD(Test_NativeArray, testArray22); -PHP_METHOD(Test_NativeArray, testArray23); -PHP_METHOD(Test_NativeArray, testArray24); -PHP_METHOD(Test_NativeArray, testArray25); -PHP_METHOD(Test_NativeArray, testArray26); -PHP_METHOD(Test_NativeArray, testArray27); -PHP_METHOD(Test_NativeArray, testArray28); -PHP_METHOD(Test_NativeArray, testArray29); -PHP_METHOD(Test_NativeArray, testArray30); -PHP_METHOD(Test_NativeArray, testArrayAccess1); -PHP_METHOD(Test_NativeArray, testArrayAccess2); -PHP_METHOD(Test_NativeArray, testArrayAccess3); -PHP_METHOD(Test_NativeArray, testArrayAccess4); -PHP_METHOD(Test_NativeArray, testArrayAccess5); -PHP_METHOD(Test_NativeArray, testArrayAccess6); -PHP_METHOD(Test_NativeArray, testArrayMultipleAccess1); -PHP_METHOD(Test_NativeArray, testArrayMultipleAccess2); -PHP_METHOD(Test_NativeArray, testArrayMultipleAccess3); -PHP_METHOD(Test_NativeArray, testArrayMultipleAccess4); -PHP_METHOD(Test_NativeArray, testArrayMultipleAccess5); -PHP_METHOD(Test_NativeArray, testArrayUpdate1); -PHP_METHOD(Test_NativeArray, testArrayUpdate2); -PHP_METHOD(Test_NativeArray, testArrayUpdate3); -PHP_METHOD(Test_NativeArray, testArrayUpdate4); -PHP_METHOD(Test_NativeArray, testArrayUpdate5); -PHP_METHOD(Test_NativeArray, testArrayAppend1); -PHP_METHOD(Test_NativeArray, testArrayAppend2); -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate1); -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate2); -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate3); -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate4); -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate5); -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate6); -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate7); -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate8); -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate9); -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate10); -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate11); -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate12); -PHP_METHOD(Test_NativeArray, testMultipleArrayUpdate13); -PHP_METHOD(Test_NativeArray, testMultipleArrayAppend1); -PHP_METHOD(Test_NativeArray, testMultipleArrayAppend2); -PHP_METHOD(Test_NativeArray, testMultipleArrayAppend3); -PHP_METHOD(Test_NativeArray, testArrayKeys); -PHP_METHOD(Test_NativeArray, testImplodeArray); -PHP_METHOD(Test_NativeArray, issue110); -PHP_METHOD(Test_NativeArray, issue264); -PHP_METHOD(Test_NativeArray, issue743a); -PHP_METHOD(Test_NativeArray, issue743b); -PHP_METHOD(Test_NativeArray, issue743c); -PHP_METHOD(Test_NativeArray, issue709); -PHP_METHOD(Test_NativeArray, Issue1140); -PHP_METHOD(Test_NativeArray, Issue1159); -zend_object *zephir_init_properties_Test_NativeArray(zend_class_entry *class_type TSRMLS_DC); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray1, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray1, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray2, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray2, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray3, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray3, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray4, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray4, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray5, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray5, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray6, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray6, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray7, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray7, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray8, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray8, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray9, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray9, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray10, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray10, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray11, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray11, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray12, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray12, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray13, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray13, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray14, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray14, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray15, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray15, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray16, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray16, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray17, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray17, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray18, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray18, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray19, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray19, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray20, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray20, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray21, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray21, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray22, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray22, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray23, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray23, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray24, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray24, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray25, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray25, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray26, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray26, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray27, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray27, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray28, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray28, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray29, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray29, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray30, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarray30, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayaccess1, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayaccess1, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayaccess2, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayaccess2, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayaccess3, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayaccess3, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayaccess4, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayaccess4, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayaccess5, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayaccess5, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayaccess6, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayaccess6, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarraymultipleaccess1, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarraymultipleaccess1, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarraymultipleaccess2, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarraymultipleaccess2, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarraymultipleaccess3, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarraymultipleaccess3, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarraymultipleaccess4, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarraymultipleaccess4, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarraymultipleaccess5, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarraymultipleaccess5, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayupdate1, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayupdate1, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayupdate2, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayupdate2, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayupdate3, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayupdate3, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayupdate4, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayupdate4, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayupdate5, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayupdate5, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayappend1, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayappend1, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayappend2, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarrayappend2, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate1, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate1, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate2, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate2, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate3, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate3, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate4, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate4, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate5, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate5, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate6, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate6, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate7, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate7, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate8, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate8, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate9, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate9, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate10, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate10, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate11, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate11, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate12, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate12, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate13, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayupdate13, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayappend1, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayappend1, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayappend2, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayappend2, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayappend3, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testmultiplearrayappend3, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarraykeys, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testarraykeys, 0, 1, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_INFO(0, param) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testimplodearray, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_testimplodearray, 0, 1, IS_STRING, NULL, 0) -#endif - ZEND_ARG_INFO(0, param) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_issue110, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_issue110, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_issue264, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_issue264, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, tokens, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_issue743a, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_issue743a, 0, 1, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, current743a, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_issue743b, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_issue743b, 0, 1, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, current, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_issue743c, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_issue743c, 0, 1, IS_ARRAY, NULL, 0) -#endif - ZEND_ARG_ARRAY_INFO(0, current, 0) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_issue709, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_nativearray_issue709, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_nativearray_issue1140, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, prefix, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, prefix) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, baseDir, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, baseDir) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_nativearray_method_entry) { - PHP_ME(Test_NativeArray, testArray1, arginfo_test_nativearray_testarray1, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray2, arginfo_test_nativearray_testarray2, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray3, arginfo_test_nativearray_testarray3, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray4, arginfo_test_nativearray_testarray4, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray5, arginfo_test_nativearray_testarray5, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray6, arginfo_test_nativearray_testarray6, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray7, arginfo_test_nativearray_testarray7, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray8, arginfo_test_nativearray_testarray8, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray9, arginfo_test_nativearray_testarray9, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray10, arginfo_test_nativearray_testarray10, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray11, arginfo_test_nativearray_testarray11, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray12, arginfo_test_nativearray_testarray12, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray13, arginfo_test_nativearray_testarray13, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray14, arginfo_test_nativearray_testarray14, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray15, arginfo_test_nativearray_testarray15, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray16, arginfo_test_nativearray_testarray16, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray17, arginfo_test_nativearray_testarray17, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray18, arginfo_test_nativearray_testarray18, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray19, arginfo_test_nativearray_testarray19, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray20, arginfo_test_nativearray_testarray20, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray21, arginfo_test_nativearray_testarray21, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray22, arginfo_test_nativearray_testarray22, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray23, arginfo_test_nativearray_testarray23, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray24, arginfo_test_nativearray_testarray24, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray25, arginfo_test_nativearray_testarray25, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray26, arginfo_test_nativearray_testarray26, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray27, arginfo_test_nativearray_testarray27, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray28, arginfo_test_nativearray_testarray28, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray29, arginfo_test_nativearray_testarray29, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArray30, arginfo_test_nativearray_testarray30, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayAccess1, arginfo_test_nativearray_testarrayaccess1, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayAccess2, arginfo_test_nativearray_testarrayaccess2, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayAccess3, arginfo_test_nativearray_testarrayaccess3, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayAccess4, arginfo_test_nativearray_testarrayaccess4, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayAccess5, arginfo_test_nativearray_testarrayaccess5, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayAccess6, arginfo_test_nativearray_testarrayaccess6, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayMultipleAccess1, arginfo_test_nativearray_testarraymultipleaccess1, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayMultipleAccess2, arginfo_test_nativearray_testarraymultipleaccess2, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayMultipleAccess3, arginfo_test_nativearray_testarraymultipleaccess3, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayMultipleAccess4, arginfo_test_nativearray_testarraymultipleaccess4, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayMultipleAccess5, arginfo_test_nativearray_testarraymultipleaccess5, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayUpdate1, arginfo_test_nativearray_testarrayupdate1, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayUpdate2, arginfo_test_nativearray_testarrayupdate2, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayUpdate3, arginfo_test_nativearray_testarrayupdate3, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayUpdate4, arginfo_test_nativearray_testarrayupdate4, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayUpdate5, arginfo_test_nativearray_testarrayupdate5, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayAppend1, arginfo_test_nativearray_testarrayappend1, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayAppend2, arginfo_test_nativearray_testarrayappend2, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayUpdate1, arginfo_test_nativearray_testmultiplearrayupdate1, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayUpdate2, arginfo_test_nativearray_testmultiplearrayupdate2, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayUpdate3, arginfo_test_nativearray_testmultiplearrayupdate3, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayUpdate4, arginfo_test_nativearray_testmultiplearrayupdate4, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayUpdate5, arginfo_test_nativearray_testmultiplearrayupdate5, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayUpdate6, arginfo_test_nativearray_testmultiplearrayupdate6, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayUpdate7, arginfo_test_nativearray_testmultiplearrayupdate7, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayUpdate8, arginfo_test_nativearray_testmultiplearrayupdate8, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayUpdate9, arginfo_test_nativearray_testmultiplearrayupdate9, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayUpdate10, arginfo_test_nativearray_testmultiplearrayupdate10, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayUpdate11, arginfo_test_nativearray_testmultiplearrayupdate11, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayUpdate12, arginfo_test_nativearray_testmultiplearrayupdate12, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayUpdate13, arginfo_test_nativearray_testmultiplearrayupdate13, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayAppend1, arginfo_test_nativearray_testmultiplearrayappend1, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayAppend2, arginfo_test_nativearray_testmultiplearrayappend2, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testMultipleArrayAppend3, arginfo_test_nativearray_testmultiplearrayappend3, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testArrayKeys, arginfo_test_nativearray_testarraykeys, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, testImplodeArray, arginfo_test_nativearray_testimplodearray, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, issue110, arginfo_test_nativearray_issue110, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, issue264, arginfo_test_nativearray_issue264, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, issue743a, arginfo_test_nativearray_issue743a, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, issue743b, arginfo_test_nativearray_issue743b, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, issue743c, arginfo_test_nativearray_issue743c, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, issue709, arginfo_test_nativearray_issue709, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, Issue1140, arginfo_test_nativearray_issue1140, ZEND_ACC_PUBLIC) - PHP_ME(Test_NativeArray, Issue1159, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo.zep.h b/ext/test/oo.zep.h deleted file mode 100644 index 69f1780103..0000000000 --- a/ext/test/oo.zep.h +++ /dev/null @@ -1,42 +0,0 @@ - -extern zend_class_entry *test_oo_ce; - -ZEPHIR_INIT_CLASS(Test_Oo); - -PHP_METHOD(Test_Oo, testInstance1); -PHP_METHOD(Test_Oo, testInstance2); -PHP_METHOD(Test_Oo, testInstance3); -PHP_METHOD(Test_Oo, testInstance4); -PHP_METHOD(Test_Oo, testInstance5); -PHP_METHOD(Test_Oo, testInstance6); -PHP_METHOD(Test_Oo, testInstance7); -PHP_METHOD(Test_Oo, testInstance8); -PHP_METHOD(Test_Oo, testInstance9); -PHP_METHOD(Test_Oo, testInstance10); -PHP_METHOD(Test_Oo, testInstance11); -PHP_METHOD(Test_Oo, testInstance12); -PHP_METHOD(Test_Oo, createInstancesInLoop); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_createinstancesinloop, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_createinstancesinloop, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_method_entry) { - PHP_ME(Test_Oo, testInstance1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo, testInstance2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo, testInstance3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo, testInstance4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo, testInstance5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo, testInstance6, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo, testInstance7, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo, testInstance8, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo, testInstance9, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo, testInstance10, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo, testInstance11, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo, testInstance12, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo, createInstancesInLoop, arginfo_test_oo_createinstancesinloop, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/abstractclass.zep.c b/ext/test/oo/abstractclass.zep.c deleted file mode 100644 index 41a95e1d48..0000000000 --- a/ext/test/oo/abstractclass.zep.c +++ /dev/null @@ -1,56 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../ext_config.h" -#endif - -#include -#include "../../php_ext.h" -#include "../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" - - -ZEPHIR_INIT_CLASS(Test_Oo_AbstractClass) { - - ZEPHIR_REGISTER_CLASS(Test\\Oo, AbstractClass, test, oo_abstractclass, test_oo_abstractclass_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); - - return SUCCESS; - -} - -PHP_METHOD(Test_Oo_AbstractClass, testMethodDeclaration) { - -} - -PHP_METHOD(Test_Oo_AbstractClass, testMethodDeclarationWithReturnType) { - -} - -PHP_METHOD(Test_Oo_AbstractClass, testMethodDeclarationWithParameter) { - -} - -PHP_METHOD(Test_Oo_AbstractClass, testMethodDeclarationWithParameterAndReturnType) { - -} - -PHP_METHOD(Test_Oo_AbstractClass, testAbstractMethodDeclaration) { - -} - -PHP_METHOD(Test_Oo_AbstractClass, testAbstractMethodDeclarationWithReturnType) { - -} - -PHP_METHOD(Test_Oo_AbstractClass, testAbstractMethodDeclarationWithParameter) { - -} - -PHP_METHOD(Test_Oo_AbstractClass, testAbstractMethodDeclarationWithParameterAndReturnType) { - -} - diff --git a/ext/test/oo/abstractclass.zep.h b/ext/test/oo/abstractclass.zep.h deleted file mode 100644 index 86bab0ca96..0000000000 --- a/ext/test/oo/abstractclass.zep.h +++ /dev/null @@ -1,63 +0,0 @@ - -extern zend_class_entry *test_oo_abstractclass_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_AbstractClass); - -PHP_METHOD(Test_Oo_AbstractClass, testMethodDeclaration); -PHP_METHOD(Test_Oo_AbstractClass, testMethodDeclarationWithReturnType); -PHP_METHOD(Test_Oo_AbstractClass, testMethodDeclarationWithParameter); -PHP_METHOD(Test_Oo_AbstractClass, testMethodDeclarationWithParameterAndReturnType); -PHP_METHOD(Test_Oo_AbstractClass, testAbstractMethodDeclaration); -PHP_METHOD(Test_Oo_AbstractClass, testAbstractMethodDeclarationWithReturnType); -PHP_METHOD(Test_Oo_AbstractClass, testAbstractMethodDeclarationWithParameter); -PHP_METHOD(Test_Oo_AbstractClass, testAbstractMethodDeclarationWithParameterAndReturnType); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_abstractclass_testmethoddeclarationwithreturntype, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_abstractclass_testmethoddeclarationwithreturntype, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_abstractclass_testmethoddeclarationwithparameter, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_abstractclass_testmethoddeclarationwithparameterandreturntype, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_abstractclass_testmethoddeclarationwithparameterandreturntype, 0, 1, IS_STRING, NULL, 0) -#endif - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_abstractclass_testabstractmethoddeclarationwithreturntype, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_abstractclass_testabstractmethoddeclarationwithreturntype, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_abstractclass_testabstractmethoddeclarationwithparameter, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_abstractclass_testabstractmethoddeclarationwithparameterandreturntype, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_abstractclass_testabstractmethoddeclarationwithparameterandreturntype, 0, 1, IS_STRING, NULL, 0) -#endif - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_abstractclass_method_entry) { - PHP_ME(Test_Oo_AbstractClass, testMethodDeclaration, NULL, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_AbstractClass, testMethodDeclarationWithReturnType, arginfo_test_oo_abstractclass_testmethoddeclarationwithreturntype, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_AbstractClass, testMethodDeclarationWithParameter, arginfo_test_oo_abstractclass_testmethoddeclarationwithparameter, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_AbstractClass, testMethodDeclarationWithParameterAndReturnType, arginfo_test_oo_abstractclass_testmethoddeclarationwithparameterandreturntype, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_AbstractClass, testAbstractMethodDeclaration, NULL, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_AbstractClass, testAbstractMethodDeclarationWithReturnType, arginfo_test_oo_abstractclass_testabstractmethoddeclarationwithreturntype, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_AbstractClass, testAbstractMethodDeclarationWithParameter, arginfo_test_oo_abstractclass_testabstractmethoddeclarationwithparameter, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_AbstractClass, testAbstractMethodDeclarationWithParameterAndReturnType, arginfo_test_oo_abstractclass_testabstractmethoddeclarationwithparameterandreturntype, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/abstractstatic.zep.h b/ext/test/oo/abstractstatic.zep.h deleted file mode 100644 index 38c5d23254..0000000000 --- a/ext/test/oo/abstractstatic.zep.h +++ /dev/null @@ -1,18 +0,0 @@ - -extern zend_class_entry *test_oo_abstractstatic_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_AbstractStatic); - -PHP_METHOD(Test_Oo_AbstractStatic, getCalledClass); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_abstractstatic_getcalledclass, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_abstractstatic_getcalledclass, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_abstractstatic_method_entry) { - PHP_ME(Test_Oo_AbstractStatic, getCalledClass, arginfo_test_oo_abstractstatic_getcalledclass, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/oo/concretestatic.zep.h b/ext/test/oo/concretestatic.zep.h deleted file mode 100644 index 86fa56a71d..0000000000 --- a/ext/test/oo/concretestatic.zep.h +++ /dev/null @@ -1,13 +0,0 @@ - -extern zend_class_entry *test_oo_concretestatic_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_ConcreteStatic); - -PHP_METHOD(Test_Oo_ConcreteStatic, parentFunction); -PHP_METHOD(Test_Oo_ConcreteStatic, childFunction); - -ZEPHIR_INIT_FUNCS(test_oo_concretestatic_method_entry) { - PHP_ME(Test_Oo_ConcreteStatic, parentFunction, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Oo_ConcreteStatic, childFunction, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/oo/constantsinterface.zep.c b/ext/test/oo/constantsinterface.zep.c deleted file mode 100644 index 3a70786aae..0000000000 --- a/ext/test/oo/constantsinterface.zep.c +++ /dev/null @@ -1,84 +0,0 @@ - -#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/object.h" - - -ZEPHIR_INIT_CLASS(Test_Oo_ConstantsInterface) { - - ZEPHIR_REGISTER_CLASS(Test\\Oo, ConstantsInterface, test, oo_constantsinterface, test_oo_constantsinterface_method_entry, 0); - - zephir_declare_class_constant_string(test_oo_constantsinterface_ce, SL("CLASSNAME"), "Test\\Oo\\ConstantsInterface"); - - zephir_declare_class_constant_string(test_oo_constantsinterface_ce, SL("NAMESPACENAME"), "Test\\Oo"); - - zend_class_implements(test_oo_constantsinterface_ce, 1, test_testinterface_ce); - return SUCCESS; - -} - -PHP_METHOD(Test_Oo_ConstantsInterface, testReadInterfaceConstant1) { - - zval *this_ptr = getThis(); - - - RETURN_NULL(); - -} - -PHP_METHOD(Test_Oo_ConstantsInterface, testReadInterfaceConstant2) { - - zval *this_ptr = getThis(); - - - RETURN_BOOL(0); - -} - -PHP_METHOD(Test_Oo_ConstantsInterface, testReadInterfaceConstant3) { - - zval *this_ptr = getThis(); - - - RETURN_BOOL(1); - -} - -PHP_METHOD(Test_Oo_ConstantsInterface, testReadInterfaceConstant4) { - - zval *this_ptr = getThis(); - - - RETURN_LONG(10); - -} - -PHP_METHOD(Test_Oo_ConstantsInterface, testReadInterfaceConstant5) { - - zval *this_ptr = getThis(); - - - RETURN_DOUBLE(10.25); - -} - -PHP_METHOD(Test_Oo_ConstantsInterface, testReadInterfaceConstant6) { - - zval *this_ptr = getThis(); - - - RETURN_STRING("test"); - -} - diff --git a/ext/test/oo/constantsinterface.zep.h b/ext/test/oo/constantsinterface.zep.h deleted file mode 100644 index 8c68efee6b..0000000000 --- a/ext/test/oo/constantsinterface.zep.h +++ /dev/null @@ -1,21 +0,0 @@ - -extern zend_class_entry *test_oo_constantsinterface_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_ConstantsInterface); - -PHP_METHOD(Test_Oo_ConstantsInterface, testReadInterfaceConstant1); -PHP_METHOD(Test_Oo_ConstantsInterface, testReadInterfaceConstant2); -PHP_METHOD(Test_Oo_ConstantsInterface, testReadInterfaceConstant3); -PHP_METHOD(Test_Oo_ConstantsInterface, testReadInterfaceConstant4); -PHP_METHOD(Test_Oo_ConstantsInterface, testReadInterfaceConstant5); -PHP_METHOD(Test_Oo_ConstantsInterface, testReadInterfaceConstant6); - -ZEPHIR_INIT_FUNCS(test_oo_constantsinterface_method_entry) { - PHP_ME(Test_Oo_ConstantsInterface, testReadInterfaceConstant1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_ConstantsInterface, testReadInterfaceConstant2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_ConstantsInterface, testReadInterfaceConstant3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_ConstantsInterface, testReadInterfaceConstant4, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_ConstantsInterface, testReadInterfaceConstant5, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_ConstantsInterface, testReadInterfaceConstant6, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/deprecatedmethods.zep.h b/ext/test/oo/deprecatedmethods.zep.h deleted file mode 100644 index 776257c8e8..0000000000 --- a/ext/test/oo/deprecatedmethods.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_oo_deprecatedmethods_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_DeprecatedMethods); - -PHP_METHOD(Test_Oo_DeprecatedMethods, publicDeprecated); -PHP_METHOD(Test_Oo_DeprecatedMethods, normalMethod); -PHP_METHOD(Test_Oo_DeprecatedMethods, privateDeprecated); - -ZEPHIR_INIT_FUNCS(test_oo_deprecatedmethods_method_entry) { - PHP_ME(Test_Oo_DeprecatedMethods, publicDeprecated, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_DEPRECATED) - PHP_ME(Test_Oo_DeprecatedMethods, normalMethod, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DeprecatedMethods, privateDeprecated, NULL, ZEND_ACC_PRIVATE|ZEND_ACC_DEPRECATED) - PHP_FE_END -}; diff --git a/ext/test/oo/dynamicprop.zep.h b/ext/test/oo/dynamicprop.zep.h deleted file mode 100644 index 571ddaa220..0000000000 --- a/ext/test/oo/dynamicprop.zep.h +++ /dev/null @@ -1,133 +0,0 @@ - -extern zend_class_entry *test_oo_dynamicprop_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_DynamicProp); - -PHP_METHOD(Test_Oo_DynamicProp, setPropertyInt); -PHP_METHOD(Test_Oo_DynamicProp, setPropertyBoolTrue); -PHP_METHOD(Test_Oo_DynamicProp, setPropertyBoolFalse); -PHP_METHOD(Test_Oo_DynamicProp, setPropertyString); -PHP_METHOD(Test_Oo_DynamicProp, setPropertyChar); -PHP_METHOD(Test_Oo_DynamicProp, setPropertyUChar); -PHP_METHOD(Test_Oo_DynamicProp, setPropertyNull); -PHP_METHOD(Test_Oo_DynamicProp, setPropertyVariableInt); -PHP_METHOD(Test_Oo_DynamicProp, setPropertyVariableString); -PHP_METHOD(Test_Oo_DynamicProp, setPropertyVariableBoolTrue); -PHP_METHOD(Test_Oo_DynamicProp, setPropertyVariableBoolFalse); -PHP_METHOD(Test_Oo_DynamicProp, setExistingStringProperty); -PHP_METHOD(Test_Oo_DynamicProp, setExistingStringPropertyString); -PHP_METHOD(Test_Oo_DynamicProp, setNonExistingStringProperty); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_dynamicprop_setpropertyint, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, property) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_dynamicprop_setpropertybooltrue, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, property) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_dynamicprop_setpropertyboolfalse, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, property) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_dynamicprop_setpropertystring, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, property) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_dynamicprop_setpropertychar, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, property) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_dynamicprop_setpropertyuchar, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, property) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_dynamicprop_setpropertynull, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, property) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_dynamicprop_setpropertyvariableint, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, property) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_dynamicprop_setpropertyvariablestring, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, property) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_dynamicprop_setpropertyvariablebooltrue, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, property) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_dynamicprop_setpropertyvariableboolfalse, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, property) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_dynamicprop_setexistingstringpropertystring, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, value) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_dynamicprop_method_entry) { - PHP_ME(Test_Oo_DynamicProp, setPropertyInt, arginfo_test_oo_dynamicprop_setpropertyint, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DynamicProp, setPropertyBoolTrue, arginfo_test_oo_dynamicprop_setpropertybooltrue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DynamicProp, setPropertyBoolFalse, arginfo_test_oo_dynamicprop_setpropertyboolfalse, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DynamicProp, setPropertyString, arginfo_test_oo_dynamicprop_setpropertystring, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DynamicProp, setPropertyChar, arginfo_test_oo_dynamicprop_setpropertychar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DynamicProp, setPropertyUChar, arginfo_test_oo_dynamicprop_setpropertyuchar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DynamicProp, setPropertyNull, arginfo_test_oo_dynamicprop_setpropertynull, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DynamicProp, setPropertyVariableInt, arginfo_test_oo_dynamicprop_setpropertyvariableint, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DynamicProp, setPropertyVariableString, arginfo_test_oo_dynamicprop_setpropertyvariablestring, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DynamicProp, setPropertyVariableBoolTrue, arginfo_test_oo_dynamicprop_setpropertyvariablebooltrue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DynamicProp, setPropertyVariableBoolFalse, arginfo_test_oo_dynamicprop_setpropertyvariableboolfalse, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DynamicProp, setExistingStringProperty, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DynamicProp, setExistingStringPropertyString, arginfo_test_oo_dynamicprop_setexistingstringpropertystring, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_DynamicProp, setNonExistingStringProperty, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/extend/db/exception.zep.h b/ext/test/oo/extend/db/exception.zep.h deleted file mode 100644 index 27fe81b085..0000000000 --- a/ext/test/oo/extend/db/exception.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_db_exception_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Db_Exception); - diff --git a/ext/test/oo/extend/db/query/exception.zep.h b/ext/test/oo/extend/db/query/exception.zep.h deleted file mode 100644 index 92569701ee..0000000000 --- a/ext/test/oo/extend/db/query/exception.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_db_query_exception_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Db_Query_Exception); - diff --git a/ext/test/oo/extend/db/query/placeholder/exception.zep.h b/ext/test/oo/extend/db/query/placeholder/exception.zep.h deleted file mode 100644 index 94d9ef3525..0000000000 --- a/ext/test/oo/extend/db/query/placeholder/exception.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_db_query_placeholder_exception_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Db_Query_Placeholder_Exception); - diff --git a/ext/test/oo/extend/exception.zep.h b/ext/test/oo/extend/exception.zep.h deleted file mode 100644 index b5dd20e929..0000000000 --- a/ext/test/oo/extend/exception.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_exception_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Exception); - diff --git a/ext/test/oo/extend/spl/arrayobject.zep.h b/ext/test/oo/extend/spl/arrayobject.zep.h deleted file mode 100644 index 82efa0ac45..0000000000 --- a/ext/test/oo/extend/spl/arrayobject.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_arrayobject_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_ArrayObject); - diff --git a/ext/test/oo/extend/spl/directoryiterator.zep.h b/ext/test/oo/extend/spl/directoryiterator.zep.h deleted file mode 100644 index 794283a8a6..0000000000 --- a/ext/test/oo/extend/spl/directoryiterator.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_directoryiterator_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_DirectoryIterator); - diff --git a/ext/test/oo/extend/spl/doublylinkedlist.zep.h b/ext/test/oo/extend/spl/doublylinkedlist.zep.h deleted file mode 100644 index c5d1f4a305..0000000000 --- a/ext/test/oo/extend/spl/doublylinkedlist.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_doublylinkedlist_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_DoublyLinkedList); - diff --git a/ext/test/oo/extend/spl/fileinfo.zep.h b/ext/test/oo/extend/spl/fileinfo.zep.h deleted file mode 100644 index c9692ac8bc..0000000000 --- a/ext/test/oo/extend/spl/fileinfo.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_fileinfo_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_FileInfo); - diff --git a/ext/test/oo/extend/spl/fileobject.zep.h b/ext/test/oo/extend/spl/fileobject.zep.h deleted file mode 100644 index 120c161cc4..0000000000 --- a/ext/test/oo/extend/spl/fileobject.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_fileobject_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_FileObject); - diff --git a/ext/test/oo/extend/spl/filesystemiterator.zep.h b/ext/test/oo/extend/spl/filesystemiterator.zep.h deleted file mode 100644 index b3eccbb241..0000000000 --- a/ext/test/oo/extend/spl/filesystemiterator.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_filesystemiterator_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_FilesystemIterator); - diff --git a/ext/test/oo/extend/spl/fixedarray.zep.h b/ext/test/oo/extend/spl/fixedarray.zep.h deleted file mode 100644 index 10d3872b9d..0000000000 --- a/ext/test/oo/extend/spl/fixedarray.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_fixedarray_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_FixedArray); - diff --git a/ext/test/oo/extend/spl/globiterator.zep.h b/ext/test/oo/extend/spl/globiterator.zep.h deleted file mode 100644 index 225c7f46a1..0000000000 --- a/ext/test/oo/extend/spl/globiterator.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_globiterator_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_GlobIterator); - diff --git a/ext/test/oo/extend/spl/heap.zep.h b/ext/test/oo/extend/spl/heap.zep.h deleted file mode 100644 index 402c25e214..0000000000 --- a/ext/test/oo/extend/spl/heap.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_heap_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_Heap); - diff --git a/ext/test/oo/extend/spl/maxheap.zep.h b/ext/test/oo/extend/spl/maxheap.zep.h deleted file mode 100644 index 660337997d..0000000000 --- a/ext/test/oo/extend/spl/maxheap.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_maxheap_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_MaxHeap); - diff --git a/ext/test/oo/extend/spl/minheap.zep.h b/ext/test/oo/extend/spl/minheap.zep.h deleted file mode 100644 index b96df45ba8..0000000000 --- a/ext/test/oo/extend/spl/minheap.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_minheap_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_MinHeap); - diff --git a/ext/test/oo/extend/spl/priorityqueue.zep.h b/ext/test/oo/extend/spl/priorityqueue.zep.h deleted file mode 100644 index 90efe18eb9..0000000000 --- a/ext/test/oo/extend/spl/priorityqueue.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_priorityqueue_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_PriorityQueue); - diff --git a/ext/test/oo/extend/spl/queue.zep.h b/ext/test/oo/extend/spl/queue.zep.h deleted file mode 100644 index f2fee837cd..0000000000 --- a/ext/test/oo/extend/spl/queue.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_queue_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_Queue); - diff --git a/ext/test/oo/extend/spl/recursivedirectoryiterator.zep.h b/ext/test/oo/extend/spl/recursivedirectoryiterator.zep.h deleted file mode 100644 index f39f9d1a8c..0000000000 --- a/ext/test/oo/extend/spl/recursivedirectoryiterator.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_recursivedirectoryiterator_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_RecursiveDirectoryIterator); - diff --git a/ext/test/oo/extend/spl/stack.zep.h b/ext/test/oo/extend/spl/stack.zep.h deleted file mode 100644 index 8b1b2cb7d4..0000000000 --- a/ext/test/oo/extend/spl/stack.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_stack_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_Stack); - diff --git a/ext/test/oo/extend/spl/tempfileobject.zep.h b/ext/test/oo/extend/spl/tempfileobject.zep.h deleted file mode 100644 index 016e8fce91..0000000000 --- a/ext/test/oo/extend/spl/tempfileobject.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_extend_spl_tempfileobject_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Extend_Spl_TempFileObject); - diff --git a/ext/test/oo/ooconstruct.zep.h b/ext/test/oo/ooconstruct.zep.h deleted file mode 100644 index 098d1de6ce..0000000000 --- a/ext/test/oo/ooconstruct.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_oo_ooconstruct_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_OoConstruct); - -PHP_METHOD(Test_Oo_OoConstruct, __construct); - -ZEPHIR_INIT_FUNCS(test_oo_ooconstruct_method_entry) { - PHP_ME(Test_Oo_OoConstruct, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_FE_END -}; diff --git a/ext/test/oo/ooconstructparams.zep.h b/ext/test/oo/ooconstructparams.zep.h deleted file mode 100644 index 2e4ed67bcf..0000000000 --- a/ext/test/oo/ooconstructparams.zep.h +++ /dev/null @@ -1,20 +0,0 @@ - -extern zend_class_entry *test_oo_ooconstructparams_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_OoConstructParams); - -PHP_METHOD(Test_Oo_OoConstructParams, __construct); -PHP_METHOD(Test_Oo_OoConstructParams, getA); -PHP_METHOD(Test_Oo_OoConstructParams, getB); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooconstructparams___construct, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_ooconstructparams_method_entry) { - PHP_ME(Test_Oo_OoConstructParams, __construct, arginfo_test_oo_ooconstructparams___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Test_Oo_OoConstructParams, getA, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoConstructParams, getB, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/oodestruct.zep.h b/ext/test/oo/oodestruct.zep.h deleted file mode 100644 index 348192ae90..0000000000 --- a/ext/test/oo/oodestruct.zep.h +++ /dev/null @@ -1,89 +0,0 @@ - -extern zend_class_entry *test_oo_oodestruct_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_OoDestruct); - -PHP_METHOD(Test_Oo_OoDestruct, getHeight); -PHP_METHOD(Test_Oo_OoDestruct, getImage); -PHP_METHOD(Test_Oo_OoDestruct, getMime); -PHP_METHOD(Test_Oo_OoDestruct, getRealpath); -PHP_METHOD(Test_Oo_OoDestruct, getType); -PHP_METHOD(Test_Oo_OoDestruct, getWidth); -PHP_METHOD(Test_Oo_OoDestruct, __construct); -PHP_METHOD(Test_Oo_OoDestruct, __destruct); -PHP_METHOD(Test_Oo_OoDestruct, check); -PHP_METHOD(Test_Oo_OoDestruct, getVersion); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oodestruct_getheight, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oodestruct_getheight, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oodestruct_getmime, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oodestruct_getmime, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oodestruct_gettype, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oodestruct_gettype, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oodestruct_getwidth, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oodestruct_getwidth, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_oodestruct___construct, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, file, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, file) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 1) -#else - ZEND_ARG_INFO(0, width) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 1) -#else - ZEND_ARG_INFO(0, height) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oodestruct_check, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oodestruct_check, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oodestruct_getversion, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oodestruct_getversion, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_oodestruct_method_entry) { - PHP_ME(Test_Oo_OoDestruct, getHeight, arginfo_test_oo_oodestruct_getheight, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoDestruct, getImage, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoDestruct, getMime, arginfo_test_oo_oodestruct_getmime, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoDestruct, getRealpath, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoDestruct, getType, arginfo_test_oo_oodestruct_gettype, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoDestruct, getWidth, arginfo_test_oo_oodestruct_getwidth, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoDestruct, __construct, arginfo_test_oo_oodestruct___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Test_Oo_OoDestruct, __destruct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_DTOR) - PHP_ME(Test_Oo_OoDestruct, check, arginfo_test_oo_oodestruct_check, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Oo_OoDestruct, getVersion, arginfo_test_oo_oodestruct_getversion, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/oo/oodynamica.zep.h b/ext/test/oo/oodynamica.zep.h deleted file mode 100644 index 90aed647b2..0000000000 --- a/ext/test/oo/oodynamica.zep.h +++ /dev/null @@ -1,19 +0,0 @@ - -extern zend_class_entry *test_oo_oodynamica_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_OoDynamicA); - -PHP_METHOD(Test_Oo_OoDynamicA, getNew); -PHP_METHOD(Test_Oo_OoDynamicA, call2); -PHP_METHOD(Test_Oo_OoDynamicA, call1); -PHP_METHOD(Test_Oo_OoDynamicA, execute); -PHP_METHOD(Test_Oo_OoDynamicA, execute2); - -ZEPHIR_INIT_FUNCS(test_oo_oodynamica_method_entry) { - PHP_ME(Test_Oo_OoDynamicA, getNew, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Oo_OoDynamicA, call2, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Oo_OoDynamicA, call1, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Oo_OoDynamicA, execute, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoDynamicA, execute2, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/oodynamicb.zep.h b/ext/test/oo/oodynamicb.zep.h deleted file mode 100644 index 06e0b68121..0000000000 --- a/ext/test/oo/oodynamicb.zep.h +++ /dev/null @@ -1,13 +0,0 @@ - -extern zend_class_entry *test_oo_oodynamicb_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_OoDynamicB); - -PHP_METHOD(Test_Oo_OoDynamicB, execute); -PHP_METHOD(Test_Oo_OoDynamicB, execute2); - -ZEPHIR_INIT_FUNCS(test_oo_oodynamicb_method_entry) { - PHP_ME(Test_Oo_OoDynamicB, execute, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoDynamicB, execute2, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/oonativeimplements.zep.h b/ext/test/oo/oonativeimplements.zep.h deleted file mode 100644 index 1c2461dab5..0000000000 --- a/ext/test/oo/oonativeimplements.zep.h +++ /dev/null @@ -1,118 +0,0 @@ - -extern zend_class_entry *test_oo_oonativeimplements_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_OoNativeImplements); - -PHP_METHOD(Test_Oo_OoNativeImplements, count); -PHP_METHOD(Test_Oo_OoNativeImplements, current); -PHP_METHOD(Test_Oo_OoNativeImplements, key); -PHP_METHOD(Test_Oo_OoNativeImplements, next); -PHP_METHOD(Test_Oo_OoNativeImplements, rewind); -PHP_METHOD(Test_Oo_OoNativeImplements, valid); -PHP_METHOD(Test_Oo_OoNativeImplements, getInnerIterator); -PHP_METHOD(Test_Oo_OoNativeImplements, getChildren); -PHP_METHOD(Test_Oo_OoNativeImplements, hasChildren); -PHP_METHOD(Test_Oo_OoNativeImplements, seek); -PHP_METHOD(Test_Oo_OoNativeImplements, getIterator); -PHP_METHOD(Test_Oo_OoNativeImplements, offsetExists); -PHP_METHOD(Test_Oo_OoNativeImplements, offsetGet); -PHP_METHOD(Test_Oo_OoNativeImplements, offsetSet); -PHP_METHOD(Test_Oo_OoNativeImplements, offsetUnset); -PHP_METHOD(Test_Oo_OoNativeImplements, serialize); -PHP_METHOD(Test_Oo_OoNativeImplements, unserialize); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oonativeimplements_count, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oonativeimplements_count, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oonativeimplements_valid, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oonativeimplements_valid, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_test_oo_oonativeimplements_getchildren, 0, 0, RecursiveIterator, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oonativeimplements_getchildren, 0, 0, IS_OBJECT, "RecursiveIterator", 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oonativeimplements_haschildren, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oonativeimplements_haschildren, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_oonativeimplements_seek, 0, 0, 1) - ZEND_ARG_INFO(0, position) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_test_oo_oonativeimplements_getiterator, 0, 0, Traversable, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oonativeimplements_getiterator, 0, 0, IS_OBJECT, "Traversable", 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oonativeimplements_offsetexists, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oonativeimplements_offsetexists, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_oonativeimplements_offsetget, 0, 0, 1) - ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_oonativeimplements_offsetset, 0, 0, 2) - ZEND_ARG_INFO(0, offset) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_oonativeimplements_offsetunset, 0, 0, 1) - ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oonativeimplements_serialize, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_oonativeimplements_serialize, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_oonativeimplements_unserialize, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, serialized, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, serialized) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_oonativeimplements_method_entry) { - PHP_ME(Test_Oo_OoNativeImplements, count, arginfo_test_oo_oonativeimplements_count, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, current, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, key, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, next, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, rewind, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, valid, arginfo_test_oo_oonativeimplements_valid, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, getInnerIterator, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, getChildren, arginfo_test_oo_oonativeimplements_getchildren, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, hasChildren, arginfo_test_oo_oonativeimplements_haschildren, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, seek, arginfo_test_oo_oonativeimplements_seek, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, getIterator, arginfo_test_oo_oonativeimplements_getiterator, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, offsetExists, arginfo_test_oo_oonativeimplements_offsetexists, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, offsetGet, arginfo_test_oo_oonativeimplements_offsetget, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, offsetSet, arginfo_test_oo_oonativeimplements_offsetset, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, offsetUnset, arginfo_test_oo_oonativeimplements_offsetunset, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, serialize, arginfo_test_oo_oonativeimplements_serialize, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoNativeImplements, unserialize, arginfo_test_oo_oonativeimplements_unserialize, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/oonoconstruct.zep.h b/ext/test/oo/oonoconstruct.zep.h deleted file mode 100644 index 3a55daebdf..0000000000 --- a/ext/test/oo/oonoconstruct.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_oonoconstruct_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_OoNoConstruct); - diff --git a/ext/test/oo/ooparams.zep.h b/ext/test/oo/ooparams.zep.h deleted file mode 100644 index 93a38d9e8c..0000000000 --- a/ext/test/oo/ooparams.zep.h +++ /dev/null @@ -1,201 +0,0 @@ - -extern zend_class_entry *test_oo_ooparams_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_OoParams); - -PHP_METHOD(Test_Oo_OoParams, createThisClassWithoutWriteCurrentNamespace); -PHP_METHOD(Test_Oo_OoParams, createOtherClassWithoutWriteCurrentNamespace); -PHP_METHOD(Test_Oo_OoParams, setAge); -PHP_METHOD(Test_Oo_OoParams, setAverage); -PHP_METHOD(Test_Oo_OoParams, setName); -PHP_METHOD(Test_Oo_OoParams, setEnabled); -PHP_METHOD(Test_Oo_OoParams, setList); -PHP_METHOD(Test_Oo_OoParams, setStrictAge); -PHP_METHOD(Test_Oo_OoParams, setStrictAverage); -PHP_METHOD(Test_Oo_OoParams, setStrictNameFromZephirLand); -PHP_METHOD(Test_Oo_OoParams, setStrictName); -PHP_METHOD(Test_Oo_OoParams, setStrictEnabled); -PHP_METHOD(Test_Oo_OoParams, setStrictList); -PHP_METHOD(Test_Oo_OoParams, setAgeDefault); -PHP_METHOD(Test_Oo_OoParams, setAverageDefault); -PHP_METHOD(Test_Oo_OoParams, setNameDefault); -PHP_METHOD(Test_Oo_OoParams, setEnabledDefault); -PHP_METHOD(Test_Oo_OoParams, setListDefault); -PHP_METHOD(Test_Oo_OoParams, setConstAge); -PHP_METHOD(Test_Oo_OoParams, setConstAverage); -PHP_METHOD(Test_Oo_OoParams, setObject); -PHP_METHOD(Test_Oo_OoParams, setCallable); -PHP_METHOD(Test_Oo_OoParams, setResource); -PHP_METHOD(Test_Oo_OoParams, setObjectClassCast); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setage, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, age, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, age) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setaverage, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, average, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, average) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setname, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setenabled, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, enabled, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, enabled) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setlist, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, someList, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setstrictage, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, age, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, age) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setstrictaverage, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, average, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, average) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_ooparams_setstrictname, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_ooparams_setstrictname, 0, 1, IS_STRING, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setstrictenabled, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, enabled, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, enabled) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setstrictlist, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, someList, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setagedefault, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, age, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, age) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setaveragedefault, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, average, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, average) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setnamedefault, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setenableddefault, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, enabled, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, enabled) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setlistdefault, 0, 0, 0) - ZEND_ARG_ARRAY_INFO(0, someList, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setconstage, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, age, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, age) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setconstaverage, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, average, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, average) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setobject, 0, 0, 1) - ZEND_ARG_INFO(0, obj) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setcallable, 0, 0, 1) - ZEND_ARG_INFO(0, obj) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setresource, 0, 0, 1) - ZEND_ARG_INFO(0, obj) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_ooparams_setobjectclasscast, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, parameter, Test\\Oo\\Param, 0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_ooparams_method_entry) { - PHP_ME(Test_Oo_OoParams, createThisClassWithoutWriteCurrentNamespace, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, createOtherClassWithoutWriteCurrentNamespace, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setAge, arginfo_test_oo_ooparams_setage, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setAverage, arginfo_test_oo_ooparams_setaverage, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setName, arginfo_test_oo_ooparams_setname, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setEnabled, arginfo_test_oo_ooparams_setenabled, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setList, arginfo_test_oo_ooparams_setlist, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setStrictAge, arginfo_test_oo_ooparams_setstrictage, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setStrictAverage, arginfo_test_oo_ooparams_setstrictaverage, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setStrictNameFromZephirLand, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setStrictName, arginfo_test_oo_ooparams_setstrictname, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setStrictEnabled, arginfo_test_oo_ooparams_setstrictenabled, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setStrictList, arginfo_test_oo_ooparams_setstrictlist, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setAgeDefault, arginfo_test_oo_ooparams_setagedefault, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setAverageDefault, arginfo_test_oo_ooparams_setaveragedefault, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setNameDefault, arginfo_test_oo_ooparams_setnamedefault, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setEnabledDefault, arginfo_test_oo_ooparams_setenableddefault, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setListDefault, arginfo_test_oo_ooparams_setlistdefault, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setConstAge, arginfo_test_oo_ooparams_setconstage, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setConstAverage, arginfo_test_oo_ooparams_setconstaverage, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setObject, arginfo_test_oo_ooparams_setobject, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setCallable, arginfo_test_oo_ooparams_setcallable, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setResource, arginfo_test_oo_ooparams_setresource, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_OoParams, setObjectClassCast, arginfo_test_oo_ooparams_setobjectclasscast, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/param.zep.h b/ext/test/oo/param.zep.h deleted file mode 100644 index 902155cd42..0000000000 --- a/ext/test/oo/param.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_oo_param_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Param); - diff --git a/ext/test/oo/propertyaccess.zep.h b/ext/test/oo/propertyaccess.zep.h deleted file mode 100644 index e18fed947c..0000000000 --- a/ext/test/oo/propertyaccess.zep.h +++ /dev/null @@ -1,19 +0,0 @@ - -extern zend_class_entry *test_oo_propertyaccess_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_PropertyAccess); - -PHP_METHOD(Test_Oo_PropertyAccess, __construct); -PHP_METHOD(Test_Oo_PropertyAccess, setPrivatevariable); -PHP_METHOD(Test_Oo_PropertyAccess, getPrivatevariable); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_propertyaccess_setprivatevariable, 0, 0, 1) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_propertyaccess_method_entry) { - PHP_ME(Test_Oo_PropertyAccess, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Test_Oo_PropertyAccess, setPrivatevariable, arginfo_test_oo_propertyaccess_setprivatevariable, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_PropertyAccess, getPrivatevariable, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/scopes/abstractclass.zep.h b/ext/test/oo/scopes/abstractclass.zep.h deleted file mode 100644 index 977e555ea3..0000000000 --- a/ext/test/oo/scopes/abstractclass.zep.h +++ /dev/null @@ -1,24 +0,0 @@ - -extern zend_class_entry *test_oo_scopes_abstractclass_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Scopes_AbstractClass); - -PHP_METHOD(Test_Oo_Scopes_AbstractClass, setProperty); -PHP_METHOD(Test_Oo_Scopes_AbstractClass, getPrivateProperty2); -PHP_METHOD(Test_Oo_Scopes_AbstractClass, getProtectedProperty2); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_scopes_abstractclass_setproperty, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_scopes_abstractclass_method_entry) { - PHP_ME(Test_Oo_Scopes_AbstractClass, setProperty, arginfo_test_oo_scopes_abstractclass_setproperty, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_Scopes_AbstractClass, getPrivateProperty2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_Scopes_AbstractClass, getProtectedProperty2, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/scopes/abstractclassmagic.zep.h b/ext/test/oo/scopes/abstractclassmagic.zep.h deleted file mode 100644 index e814e774c5..0000000000 --- a/ext/test/oo/scopes/abstractclassmagic.zep.h +++ /dev/null @@ -1,40 +0,0 @@ - -extern zend_class_entry *test_oo_scopes_abstractclassmagic_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Scopes_AbstractClassMagic); - -PHP_METHOD(Test_Oo_Scopes_AbstractClassMagic, __set); -PHP_METHOD(Test_Oo_Scopes_AbstractClassMagic, __get); - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_scopes_abstractclassmagic___set, 0, 2, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_scopes_abstractclassmagic___set, 0, 2, IS_VOID, NULL, 0) -#endif -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_scopes_abstractclassmagic___set, 0, 0, 2) -#define arginfo_test_oo_scopes_abstractclassmagic___set NULL -#endif - -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_scopes_abstractclassmagic___get, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_scopes_abstractclassmagic_method_entry) { - PHP_ME(Test_Oo_Scopes_AbstractClassMagic, __set, arginfo_test_oo_scopes_abstractclassmagic___set, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_Scopes_AbstractClassMagic, __get, arginfo_test_oo_scopes_abstractclassmagic___get, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/scopes/hasprivatemethod.zep.h b/ext/test/oo/scopes/hasprivatemethod.zep.h deleted file mode 100644 index e4d2173ada..0000000000 --- a/ext/test/oo/scopes/hasprivatemethod.zep.h +++ /dev/null @@ -1,27 +0,0 @@ - -extern zend_class_entry *test_oo_scopes_hasprivatemethod_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Scopes_HasPrivateMethod); - -PHP_METHOD(Test_Oo_Scopes_HasPrivateMethod, callPrivateMethod); -PHP_METHOD(Test_Oo_Scopes_HasPrivateMethod, isPrivate); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_scopes_hasprivatemethod_callprivatemethod, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_scopes_hasprivatemethod_callprivatemethod, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_scopes_hasprivatemethod_isprivate, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_scopes_hasprivatemethod_isprivate, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_scopes_hasprivatemethod_method_entry) { - PHP_ME(Test_Oo_Scopes_HasPrivateMethod, callPrivateMethod, arginfo_test_oo_scopes_hasprivatemethod_callprivatemethod, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_Scopes_HasPrivateMethod, isPrivate, arginfo_test_oo_scopes_hasprivatemethod_isprivate, ZEND_ACC_PRIVATE) - PHP_FE_END -}; diff --git a/ext/test/oo/scopes/privatescopetester.zep.h b/ext/test/oo/scopes/privatescopetester.zep.h deleted file mode 100644 index 072f94c742..0000000000 --- a/ext/test/oo/scopes/privatescopetester.zep.h +++ /dev/null @@ -1,62 +0,0 @@ - -extern zend_class_entry *test_oo_scopes_privatescopetester_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Scopes_PrivateScopeTester); - -PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, run); -PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, setPropertyObj); -PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, setPropertyNew); -PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, getObjVars); -PHP_METHOD(Test_Oo_Scopes_PrivateScopeTester, getNewVars); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_scopes_privatescopetester_run, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_scopes_privatescopetester_run, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_scopes_privatescopetester_setpropertyobj, 0, 0, 3) - ZEND_ARG_INFO(0, obj) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, property) -#endif - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_scopes_privatescopetester_setpropertynew, 0, 0, 3) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, className, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, className) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, property) -#endif - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_scopes_privatescopetester_getobjvars, 0, 0, 1) - ZEND_ARG_INFO(0, obj) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_scopes_privatescopetester_getnewvars, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, className, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, className) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_scopes_privatescopetester_method_entry) { - PHP_ME(Test_Oo_Scopes_PrivateScopeTester, run, arginfo_test_oo_scopes_privatescopetester_run, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_Scopes_PrivateScopeTester, setPropertyObj, arginfo_test_oo_scopes_privatescopetester_setpropertyobj, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_Scopes_PrivateScopeTester, setPropertyNew, arginfo_test_oo_scopes_privatescopetester_setpropertynew, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_Scopes_PrivateScopeTester, getObjVars, arginfo_test_oo_scopes_privatescopetester_getobjvars, ZEND_ACC_PUBLIC) - PHP_ME(Test_Oo_Scopes_PrivateScopeTester, getNewVars, arginfo_test_oo_scopes_privatescopetester_getnewvars, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/scopes/scopetesterinterface.zep.h b/ext/test/oo/scopes/scopetesterinterface.zep.h deleted file mode 100644 index 06c71c7ff3..0000000000 --- a/ext/test/oo/scopes/scopetesterinterface.zep.h +++ /dev/null @@ -1,16 +0,0 @@ - -extern zend_class_entry *test_oo_scopes_scopetesterinterface_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Scopes_ScopeTesterInterface); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_scopes_scopetesterinterface_run, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_oo_scopes_scopetesterinterface_run, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_scopes_scopetesterinterface_method_entry) { - PHP_ABSTRACT_ME(Test_Oo_Scopes_ScopeTesterInterface, run, arginfo_test_oo_scopes_scopetesterinterface_run) - PHP_FE_END -}; diff --git a/ext/test/ooimpl/abeginning.zep.h b/ext/test/ooimpl/abeginning.zep.h deleted file mode 100644 index cd91179640..0000000000 --- a/ext/test/ooimpl/abeginning.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_ooimpl_abeginning_ce; - -ZEPHIR_INIT_CLASS(Test_OoImpl_ABeginning); - diff --git a/ext/test/ooimpl/zbeginning.zep.h b/ext/test/ooimpl/zbeginning.zep.h deleted file mode 100644 index 8f81187616..0000000000 --- a/ext/test/ooimpl/zbeginning.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_ooimpl_zbeginning_ce; - -ZEPHIR_INIT_CLASS(Test_OoImpl_ZBeginning); - diff --git a/ext/test/operator.zep.h b/ext/test/operator.zep.h deleted file mode 100644 index f902ff4fb6..0000000000 --- a/ext/test/operator.zep.h +++ /dev/null @@ -1,47 +0,0 @@ - -extern zend_class_entry *test_operator_ce; - -ZEPHIR_INIT_CLASS(Test_Operator); - -PHP_METHOD(Test_Operator, testIdentical); -PHP_METHOD(Test_Operator, testIdenticalIfComplex); -PHP_METHOD(Test_Operator, testIdenticalVarFalse); -PHP_METHOD(Test_Operator, testIdenticalFalseVar); -PHP_METHOD(Test_Operator, testBoolComparison); -PHP_METHOD(Test_Operator, testNewInstanceOperator); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_operator_testidentical, 0, 0, 2) - ZEND_ARG_INFO(0, param1) - ZEND_ARG_INFO(0, param2) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_operator_testidenticalifcomplex, 0, 0, 1) - ZEND_ARG_INFO(0, input) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_operator_testidenticalvarfalse, 0, 0, 1) - ZEND_ARG_INFO(0, param) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_operator_testidenticalfalsevar, 0, 0, 1) - ZEND_ARG_INFO(0, param) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_operator_testboolcomparison, 0, 0, 2) - ZEND_ARG_INFO(0, varTrue) - ZEND_ARG_INFO(0, varFalse) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_operator_testnewinstanceoperator, 0, 0, 1) - ZEND_ARG_INFO(0, className) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_operator_method_entry) { - PHP_ME(Test_Operator, testIdentical, arginfo_test_operator_testidentical, ZEND_ACC_PUBLIC) - PHP_ME(Test_Operator, testIdenticalIfComplex, arginfo_test_operator_testidenticalifcomplex, ZEND_ACC_PUBLIC) - PHP_ME(Test_Operator, testIdenticalVarFalse, arginfo_test_operator_testidenticalvarfalse, ZEND_ACC_PUBLIC) - PHP_ME(Test_Operator, testIdenticalFalseVar, arginfo_test_operator_testidenticalfalsevar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Operator, testBoolComparison, arginfo_test_operator_testboolcomparison, ZEND_ACC_PUBLIC) - PHP_ME(Test_Operator, testNewInstanceOperator, arginfo_test_operator_testnewinstanceoperator, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/optimizers/acos.zep.h b/ext/test/optimizers/acos.zep.h deleted file mode 100644 index e78ee5e7ad..0000000000 --- a/ext/test/optimizers/acos.zep.h +++ /dev/null @@ -1,31 +0,0 @@ - -extern zend_class_entry *test_optimizers_acos_ce; - -ZEPHIR_INIT_CLASS(Test_Optimizers_ACos); - -PHP_METHOD(Test_Optimizers_ACos, testInt); -PHP_METHOD(Test_Optimizers_ACos, testVar); -PHP_METHOD(Test_Optimizers_ACos, testIntValue1); -PHP_METHOD(Test_Optimizers_ACos, testIntParameter); -PHP_METHOD(Test_Optimizers_ACos, testVarParameter); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_acos_testintparameter, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_acos_testvarparameter, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_optimizers_acos_method_entry) { - PHP_ME(Test_Optimizers_ACos, testInt, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_ACos, testVar, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_ACos, testIntValue1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_ACos, testIntParameter, arginfo_test_optimizers_acos_testintparameter, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_ACos, testVarParameter, arginfo_test_optimizers_acos_testvarparameter, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/optimizers/arraymerge.zep.h b/ext/test/optimizers/arraymerge.zep.h deleted file mode 100644 index abb3dc05fe..0000000000 --- a/ext/test/optimizers/arraymerge.zep.h +++ /dev/null @@ -1,16 +0,0 @@ - -extern zend_class_entry *test_optimizers_arraymerge_ce; - -ZEPHIR_INIT_CLASS(Test_Optimizers_ArrayMerge); - -PHP_METHOD(Test_Optimizers_ArrayMerge, mergeTwoRequiredArrays); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_arraymerge_mergetworequiredarrays, 0, 0, 2) - ZEND_ARG_ARRAY_INFO(0, arr1, 0) - ZEND_ARG_ARRAY_INFO(0, arr2, 0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_optimizers_arraymerge_method_entry) { - PHP_ME(Test_Optimizers_ArrayMerge, mergeTwoRequiredArrays, arginfo_test_optimizers_arraymerge_mergetworequiredarrays, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/optimizers/asin.zep.h b/ext/test/optimizers/asin.zep.h deleted file mode 100644 index 878808ef07..0000000000 --- a/ext/test/optimizers/asin.zep.h +++ /dev/null @@ -1,31 +0,0 @@ - -extern zend_class_entry *test_optimizers_asin_ce; - -ZEPHIR_INIT_CLASS(Test_Optimizers_ASin); - -PHP_METHOD(Test_Optimizers_ASin, testInt); -PHP_METHOD(Test_Optimizers_ASin, testVar); -PHP_METHOD(Test_Optimizers_ASin, testIntValue1); -PHP_METHOD(Test_Optimizers_ASin, testIntParameter); -PHP_METHOD(Test_Optimizers_ASin, testVarParameter); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_asin_testintparameter, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_asin_testvarparameter, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_optimizers_asin_method_entry) { - PHP_ME(Test_Optimizers_ASin, testInt, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_ASin, testVar, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_ASin, testIntValue1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_ASin, testIntParameter, arginfo_test_optimizers_asin_testintparameter, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_ASin, testVarParameter, arginfo_test_optimizers_asin_testvarparameter, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/optimizers/cos.zep.h b/ext/test/optimizers/cos.zep.h deleted file mode 100644 index d143fb8b1b..0000000000 --- a/ext/test/optimizers/cos.zep.h +++ /dev/null @@ -1,33 +0,0 @@ - -extern zend_class_entry *test_optimizers_cos_ce; - -ZEPHIR_INIT_CLASS(Test_Optimizers_Cos); - -PHP_METHOD(Test_Optimizers_Cos, testInt); -PHP_METHOD(Test_Optimizers_Cos, testVar); -PHP_METHOD(Test_Optimizers_Cos, testIntValue1); -PHP_METHOD(Test_Optimizers_Cos, testIntValue2); -PHP_METHOD(Test_Optimizers_Cos, testIntParameter); -PHP_METHOD(Test_Optimizers_Cos, testVarParameter); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_cos_testintparameter, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_cos_testvarparameter, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_optimizers_cos_method_entry) { - PHP_ME(Test_Optimizers_Cos, testInt, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Cos, testVar, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Cos, testIntValue1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Cos, testIntValue2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Cos, testIntParameter, arginfo_test_optimizers_cos_testintparameter, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Cos, testVarParameter, arginfo_test_optimizers_cos_testvarparameter, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/optimizers/createarray.zep.h b/ext/test/optimizers/createarray.zep.h deleted file mode 100644 index 9c611949bc..0000000000 --- a/ext/test/optimizers/createarray.zep.h +++ /dev/null @@ -1,21 +0,0 @@ - -extern zend_class_entry *test_optimizers_createarray_ce; - -ZEPHIR_INIT_CLASS(Test_Optimizers_CreateArray); - -PHP_METHOD(Test_Optimizers_CreateArray, createNoSize); -PHP_METHOD(Test_Optimizers_CreateArray, createSize); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_createarray_createsize, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, n) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_optimizers_createarray_method_entry) { - PHP_ME(Test_Optimizers_CreateArray, createNoSize, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_CreateArray, createSize, arginfo_test_optimizers_createarray_createsize, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/optimizers/isscalar.zep.h b/ext/test/optimizers/isscalar.zep.h deleted file mode 100644 index bd244046f3..0000000000 --- a/ext/test/optimizers/isscalar.zep.h +++ /dev/null @@ -1,73 +0,0 @@ - -extern zend_class_entry *test_optimizers_isscalar_ce; - -ZEPHIR_INIT_CLASS(Test_Optimizers_IsScalar); - -PHP_METHOD(Test_Optimizers_IsScalar, testIntVar); -PHP_METHOD(Test_Optimizers_IsScalar, testDoubleVar); -PHP_METHOD(Test_Optimizers_IsScalar, testBoolVar); -PHP_METHOD(Test_Optimizers_IsScalar, testStringVar); -PHP_METHOD(Test_Optimizers_IsScalar, testEmptyArrayVar); -PHP_METHOD(Test_Optimizers_IsScalar, testVar); -PHP_METHOD(Test_Optimizers_IsScalar, testVarParameter); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_testintvar, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_testintvar, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_testdoublevar, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_testdoublevar, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_testboolvar, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_testboolvar, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_teststringvar, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_teststringvar, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_testemptyarrayvar, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_testemptyarrayvar, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_testvar, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_testvar, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_testvarparameter, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_optimizers_isscalar_testvarparameter, 0, 1, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_optimizers_isscalar_method_entry) { - PHP_ME(Test_Optimizers_IsScalar, testIntVar, arginfo_test_optimizers_isscalar_testintvar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_IsScalar, testDoubleVar, arginfo_test_optimizers_isscalar_testdoublevar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_IsScalar, testBoolVar, arginfo_test_optimizers_isscalar_testboolvar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_IsScalar, testStringVar, arginfo_test_optimizers_isscalar_teststringvar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_IsScalar, testEmptyArrayVar, arginfo_test_optimizers_isscalar_testemptyarrayvar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_IsScalar, testVar, arginfo_test_optimizers_isscalar_testvar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_IsScalar, testVarParameter, arginfo_test_optimizers_isscalar_testvarparameter, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/optimizers/ldexp.zep.h b/ext/test/optimizers/ldexp.zep.h deleted file mode 100644 index c0b09ccfa5..0000000000 --- a/ext/test/optimizers/ldexp.zep.h +++ /dev/null @@ -1,41 +0,0 @@ - -extern zend_class_entry *test_optimizers_ldexp_ce; - -ZEPHIR_INIT_CLASS(Test_Optimizers_Ldexp); - -PHP_METHOD(Test_Optimizers_Ldexp, testInt); -PHP_METHOD(Test_Optimizers_Ldexp, testDoubleInt); -PHP_METHOD(Test_Optimizers_Ldexp, testDouble); -PHP_METHOD(Test_Optimizers_Ldexp, testVar); -PHP_METHOD(Test_Optimizers_Ldexp, testIntValue1); -PHP_METHOD(Test_Optimizers_Ldexp, testIntParameter); -PHP_METHOD(Test_Optimizers_Ldexp, testVarParameter); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_ldexp_testintparameter, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, exponent, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, exponent) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_ldexp_testvarparameter, 0, 0, 2) - ZEND_ARG_INFO(0, x) - ZEND_ARG_INFO(0, exponent) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_optimizers_ldexp_method_entry) { - PHP_ME(Test_Optimizers_Ldexp, testInt, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Ldexp, testDoubleInt, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Ldexp, testDouble, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Ldexp, testVar, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Ldexp, testIntValue1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Ldexp, testIntParameter, arginfo_test_optimizers_ldexp_testintparameter, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Ldexp, testVarParameter, arginfo_test_optimizers_ldexp_testvarparameter, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/optimizers/sin.zep.h b/ext/test/optimizers/sin.zep.h deleted file mode 100644 index 694457d1d0..0000000000 --- a/ext/test/optimizers/sin.zep.h +++ /dev/null @@ -1,33 +0,0 @@ - -extern zend_class_entry *test_optimizers_sin_ce; - -ZEPHIR_INIT_CLASS(Test_Optimizers_Sin); - -PHP_METHOD(Test_Optimizers_Sin, testInt); -PHP_METHOD(Test_Optimizers_Sin, testVar); -PHP_METHOD(Test_Optimizers_Sin, testIntValue1); -PHP_METHOD(Test_Optimizers_Sin, testIntValue2); -PHP_METHOD(Test_Optimizers_Sin, testIntParameter); -PHP_METHOD(Test_Optimizers_Sin, testVarParameter); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_sin_testintparameter, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_sin_testvarparameter, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_optimizers_sin_method_entry) { - PHP_ME(Test_Optimizers_Sin, testInt, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Sin, testVar, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Sin, testIntValue1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Sin, testIntValue2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Sin, testIntParameter, arginfo_test_optimizers_sin_testintparameter, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Sin, testVarParameter, arginfo_test_optimizers_sin_testvarparameter, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/optimizers/sqrt.zep.h b/ext/test/optimizers/sqrt.zep.h deleted file mode 100644 index a4116c5a47..0000000000 --- a/ext/test/optimizers/sqrt.zep.h +++ /dev/null @@ -1,33 +0,0 @@ - -extern zend_class_entry *test_optimizers_sqrt_ce; - -ZEPHIR_INIT_CLASS(Test_Optimizers_Sqrt); - -PHP_METHOD(Test_Optimizers_Sqrt, testInt); -PHP_METHOD(Test_Optimizers_Sqrt, testVar); -PHP_METHOD(Test_Optimizers_Sqrt, testIntValue1); -PHP_METHOD(Test_Optimizers_Sqrt, testIntValue2); -PHP_METHOD(Test_Optimizers_Sqrt, testIntParameter); -PHP_METHOD(Test_Optimizers_Sqrt, testVarParameter); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_sqrt_testintparameter, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_sqrt_testvarparameter, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_optimizers_sqrt_method_entry) { - PHP_ME(Test_Optimizers_Sqrt, testInt, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Sqrt, testVar, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Sqrt, testIntValue1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Sqrt, testIntValue2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Sqrt, testIntParameter, arginfo_test_optimizers_sqrt_testintparameter, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Sqrt, testVarParameter, arginfo_test_optimizers_sqrt_testvarparameter, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/optimizers/strreplace.zep.h b/ext/test/optimizers/strreplace.zep.h deleted file mode 100644 index 0f644c351f..0000000000 --- a/ext/test/optimizers/strreplace.zep.h +++ /dev/null @@ -1,17 +0,0 @@ - -extern zend_class_entry *test_optimizers_strreplace_ce; - -ZEPHIR_INIT_CLASS(Test_Optimizers_StrReplace); - -PHP_METHOD(Test_Optimizers_StrReplace, issue1055); -PHP_METHOD(Test_Optimizers_StrReplace, issue1087); -PHP_METHOD(Test_Optimizers_StrReplace, issue732A); -PHP_METHOD(Test_Optimizers_StrReplace, issue732B); - -ZEPHIR_INIT_FUNCS(test_optimizers_strreplace_method_entry) { - PHP_ME(Test_Optimizers_StrReplace, issue1055, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_StrReplace, issue1087, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_StrReplace, issue732A, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_StrReplace, issue732B, NULL, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/optimizers/substr.zep.h b/ext/test/optimizers/substr.zep.h deleted file mode 100644 index 685f99a4ac..0000000000 --- a/ext/test/optimizers/substr.zep.h +++ /dev/null @@ -1,24 +0,0 @@ - -extern zend_class_entry *test_optimizers_substr_ce; - -ZEPHIR_INIT_CLASS(Test_Optimizers_Substr); - -PHP_METHOD(Test_Optimizers_Substr, testTwoArguments); -PHP_METHOD(Test_Optimizers_Substr, testThreeArguments); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_substr_testtwoarguments, 0, 0, 2) - ZEND_ARG_INFO(0, str) - ZEND_ARG_INFO(0, start) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_substr_testthreearguments, 0, 0, 3) - ZEND_ARG_INFO(0, str) - ZEND_ARG_INFO(0, start) - ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_optimizers_substr_method_entry) { - PHP_ME(Test_Optimizers_Substr, testTwoArguments, arginfo_test_optimizers_substr_testtwoarguments, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Substr, testThreeArguments, arginfo_test_optimizers_substr_testthreearguments, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/optimizers/tan.zep.h b/ext/test/optimizers/tan.zep.h deleted file mode 100644 index 103c76fea2..0000000000 --- a/ext/test/optimizers/tan.zep.h +++ /dev/null @@ -1,35 +0,0 @@ - -extern zend_class_entry *test_optimizers_tan_ce; - -ZEPHIR_INIT_CLASS(Test_Optimizers_Tan); - -PHP_METHOD(Test_Optimizers_Tan, testInt); -PHP_METHOD(Test_Optimizers_Tan, testVar); -PHP_METHOD(Test_Optimizers_Tan, testVar2); -PHP_METHOD(Test_Optimizers_Tan, testIntValue1); -PHP_METHOD(Test_Optimizers_Tan, testIntValue2); -PHP_METHOD(Test_Optimizers_Tan, testIntParameter); -PHP_METHOD(Test_Optimizers_Tan, testVarParameter); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_tan_testintparameter, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_optimizers_tan_testvarparameter, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_optimizers_tan_method_entry) { - PHP_ME(Test_Optimizers_Tan, testInt, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Tan, testVar, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Tan, testVar2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Tan, testIntValue1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Tan, testIntValue2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Tan, testIntParameter, arginfo_test_optimizers_tan_testintparameter, ZEND_ACC_PUBLIC) - PHP_ME(Test_Optimizers_Tan, testVarParameter, arginfo_test_optimizers_tan_testvarparameter, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/pdostatement.zep.h b/ext/test/pdostatement.zep.h deleted file mode 100644 index 7eaa930768..0000000000 --- a/ext/test/pdostatement.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_pdostatement_ce; - -ZEPHIR_INIT_CLASS(Test_PdoStatement); - diff --git a/ext/test/pregmatch.zep.h b/ext/test/pregmatch.zep.h deleted file mode 100644 index 11bd5e0f76..0000000000 --- a/ext/test/pregmatch.zep.h +++ /dev/null @@ -1,76 +0,0 @@ - -extern zend_class_entry *test_pregmatch_ce; - -ZEPHIR_INIT_CLASS(Test_Pregmatch); - -PHP_METHOD(Test_Pregmatch, testWithoutReturnAndMatches); -PHP_METHOD(Test_Pregmatch, testWithoutReturns); -PHP_METHOD(Test_Pregmatch, testWithoutMatches); -PHP_METHOD(Test_Pregmatch, testPregMatchAll); -PHP_METHOD(Test_Pregmatch, testPregMatchFallback); -PHP_METHOD(Test_Pregmatch, testPregMatch2Params); -PHP_METHOD(Test_Pregmatch, testPregMatch3Params); -PHP_METHOD(Test_Pregmatch, testPregMatch4Params); -PHP_METHOD(Test_Pregmatch, testPregMatch5Params); -PHP_METHOD(Test_Pregmatch, testPregMatchSaveMatches); -PHP_METHOD(Test_Pregmatch, testMatchAll); -PHP_METHOD(Test_Pregmatch, testMatchAllInZep); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_pregmatch_testpregmatch2params, 0, 0, 2) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, subject) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_pregmatch_testpregmatch3params, 0, 0, 3) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, subject) - ZEND_ARG_INFO(0, matches) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_pregmatch_testpregmatch4params, 0, 0, 4) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, subject) - ZEND_ARG_INFO(0, matches) - ZEND_ARG_INFO(0, flags) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_pregmatch_testpregmatch5params, 0, 0, 5) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, subject) - ZEND_ARG_INFO(0, matches) - ZEND_ARG_INFO(0, flags) - ZEND_ARG_INFO(0, offset) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_pregmatch_testpregmatchsavematches, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, str) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, pattern) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_pregmatch_testmatchall, 0, 0, 1) - ZEND_ARG_INFO(0, flags) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_pregmatch_method_entry) { - PHP_ME(Test_Pregmatch, testWithoutReturnAndMatches, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Pregmatch, testWithoutReturns, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Pregmatch, testWithoutMatches, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Pregmatch, testPregMatchAll, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Pregmatch, testPregMatchFallback, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Pregmatch, testPregMatch2Params, arginfo_test_pregmatch_testpregmatch2params, ZEND_ACC_PUBLIC) - PHP_ME(Test_Pregmatch, testPregMatch3Params, arginfo_test_pregmatch_testpregmatch3params, ZEND_ACC_PUBLIC) - PHP_ME(Test_Pregmatch, testPregMatch4Params, arginfo_test_pregmatch_testpregmatch4params, ZEND_ACC_PUBLIC) - PHP_ME(Test_Pregmatch, testPregMatch5Params, arginfo_test_pregmatch_testpregmatch5params, ZEND_ACC_PUBLIC) - PHP_ME(Test_Pregmatch, testPregMatchSaveMatches, arginfo_test_pregmatch_testpregmatchsavematches, ZEND_ACC_PUBLIC) - PHP_ME(Test_Pregmatch, testMatchAll, arginfo_test_pregmatch_testmatchall, ZEND_ACC_PUBLIC) - PHP_ME(Test_Pregmatch, testMatchAllInZep, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/properties/app.zep.h b/ext/test/properties/app.zep.h deleted file mode 100644 index c4fbb0346b..0000000000 --- a/ext/test/properties/app.zep.h +++ /dev/null @@ -1,13 +0,0 @@ - -extern zend_class_entry *test_properties_app_ce; - -ZEPHIR_INIT_CLASS(Test_Properties_App); - -PHP_METHOD(Test_Properties_App, getInstance); -PHP_METHOD(Test_Properties_App, __construct); - -ZEPHIR_INIT_FUNCS(test_properties_app_method_entry) { - PHP_ME(Test_Properties_App, getInstance, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_App, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_FE_END -}; diff --git a/ext/test/properties/extendspublicproperties.zep.h b/ext/test/properties/extendspublicproperties.zep.h deleted file mode 100644 index 16eadc164b..0000000000 --- a/ext/test/properties/extendspublicproperties.zep.h +++ /dev/null @@ -1,10 +0,0 @@ - -extern zend_class_entry *test_properties_extendspublicproperties_ce; - -ZEPHIR_INIT_CLASS(Test_Properties_ExtendsPublicProperties); - -zend_object *zephir_init_properties_Test_Properties_ExtendsPublicProperties(zend_class_entry *class_type TSRMLS_DC); - -ZEPHIR_INIT_FUNCS(test_properties_extendspublicproperties_method_entry) { - PHP_FE_END -}; diff --git a/ext/test/properties/privateproperties.zep.h b/ext/test/properties/privateproperties.zep.h deleted file mode 100644 index 5dc86ffde1..0000000000 --- a/ext/test/properties/privateproperties.zep.h +++ /dev/null @@ -1,23 +0,0 @@ - -extern zend_class_entry *test_properties_privateproperties_ce; - -ZEPHIR_INIT_CLASS(Test_Properties_PrivateProperties); - -PHP_METHOD(Test_Properties_PrivateProperties, getSomeNull); -PHP_METHOD(Test_Properties_PrivateProperties, getSomeNullInitial); -PHP_METHOD(Test_Properties_PrivateProperties, getSomeFalse); -PHP_METHOD(Test_Properties_PrivateProperties, getSomeTrue); -PHP_METHOD(Test_Properties_PrivateProperties, getSomeInteger); -PHP_METHOD(Test_Properties_PrivateProperties, getSomeDouble); -PHP_METHOD(Test_Properties_PrivateProperties, getSomeString); - -ZEPHIR_INIT_FUNCS(test_properties_privateproperties_method_entry) { - PHP_ME(Test_Properties_PrivateProperties, getSomeNull, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_PrivateProperties, getSomeNullInitial, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_PrivateProperties, getSomeFalse, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_PrivateProperties, getSomeTrue, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_PrivateProperties, getSomeInteger, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_PrivateProperties, getSomeDouble, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_PrivateProperties, getSomeString, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/properties/propertyarray.zep.h b/ext/test/properties/propertyarray.zep.h deleted file mode 100644 index a117958ceb..0000000000 --- a/ext/test/properties/propertyarray.zep.h +++ /dev/null @@ -1,28 +0,0 @@ - -extern zend_class_entry *test_properties_propertyarray_ce; - -ZEPHIR_INIT_CLASS(Test_Properties_PropertyArray); - -PHP_METHOD(Test_Properties_PropertyArray, __construct); -PHP_METHOD(Test_Properties_PropertyArray, appendSome); -PHP_METHOD(Test_Properties_PropertyArray, setOtherArray); -PHP_METHOD(Test_Properties_PropertyArray, getOtherArray); -PHP_METHOD(Test_Properties_PropertyArray, testIssues1831); -zend_object *zephir_init_properties_Test_Properties_PropertyArray(zend_class_entry *class_type TSRMLS_DC); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_properties_propertyarray_appendsome, 0, 0, 1) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_properties_propertyarray_setotherarray, 0, 0, 1) - ZEND_ARG_INFO(0, arr) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_properties_propertyarray_method_entry) { - PHP_ME(Test_Properties_PropertyArray, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Test_Properties_PropertyArray, appendSome, arginfo_test_properties_propertyarray_appendsome, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_PropertyArray, setOtherArray, arginfo_test_properties_propertyarray_setotherarray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_PropertyArray, getOtherArray, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_PropertyArray, testIssues1831, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/properties/propertyupdate.zep.h b/ext/test/properties/propertyupdate.zep.h deleted file mode 100644 index 6c7243ba10..0000000000 --- a/ext/test/properties/propertyupdate.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_properties_propertyupdate_ce; - -ZEPHIR_INIT_CLASS(Test_Properties_PropertyUpdate); - -PHP_METHOD(Test_Properties_PropertyUpdate, update1); - -ZEPHIR_INIT_FUNCS(test_properties_propertyupdate_method_entry) { - PHP_ME(Test_Properties_PropertyUpdate, update1, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/properties/protectedproperties.zep.c b/ext/test/properties/protectedproperties.zep.c deleted file mode 100644 index 4a2ec91bc1..0000000000 --- a/ext/test/properties/protectedproperties.zep.c +++ /dev/null @@ -1,166 +0,0 @@ - -#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/object.h" -#include "kernel/memory.h" - - -ZEPHIR_INIT_CLASS(Test_Properties_ProtectedProperties) { - - ZEPHIR_REGISTER_CLASS(Test\\Properties, ProtectedProperties, test, properties_protectedproperties, test_properties_protectedproperties_method_entry, 0); - - /** - * This is a protected property with no initial value - */ - zend_declare_property_null(test_properties_protectedproperties_ce, SL("someNull"), ZEND_ACC_PROTECTED); - - /** - * This is a protected property with initial null value - */ - zend_declare_property_null(test_properties_protectedproperties_ce, SL("someNullInitial"), ZEND_ACC_PROTECTED); - - /** - * This is a protected property with initial boolean false - */ - zend_declare_property_bool(test_properties_protectedproperties_ce, SL("someFalse"), 0, ZEND_ACC_PROTECTED); - - /** - * This is a protected property with initial boolean true - */ - zend_declare_property_bool(test_properties_protectedproperties_ce, SL("someTrue"), 1, ZEND_ACC_PROTECTED); - - /** - * This is a protected property with an initial integer value - */ - zend_declare_property_long(test_properties_protectedproperties_ce, SL("someInteger"), 10, ZEND_ACC_PROTECTED); - - /** - * This is a protected property with an initial double value - */ - zend_declare_property_double(test_properties_protectedproperties_ce, SL("someDouble"), 10.25, ZEND_ACC_PROTECTED); - - /** - * This is a protected property with an initial string value - */ - zend_declare_property_string(test_properties_protectedproperties_ce, SL("someString"), "test", ZEND_ACC_PROTECTED); - - zend_declare_property_null(test_properties_protectedproperties_ce, SL("someVar"), ZEND_ACC_PROTECTED); - - return SUCCESS; - -} - -PHP_METHOD(Test_Properties_ProtectedProperties, setSomeVar) { - - zval *someVar, someVar_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(&someVar_sub); - - zephir_fetch_params_without_memory_grow(1, 0, &someVar); - - - - zephir_update_property_zval(this_ptr, ZEND_STRL("someVar"), someVar); - RETURN_THISW(); - -} - -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeVar) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "someVar"); - -} - -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeNull) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "someNull"); - -} - -PHP_METHOD(Test_Properties_ProtectedProperties, setSomeNull) { - - zval *param, param_sub; - zval *this_ptr = getThis(); - - ZVAL_UNDEF(¶m_sub); - - zephir_fetch_params_without_memory_grow(1, 0, ¶m); - - - - zephir_update_property_zval(this_ptr, ZEND_STRL("someNull"), param); - -} - -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeNullInitial) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "someNullInitial"); - -} - -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeFalse) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "someFalse"); - -} - -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeTrue) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "someTrue"); - -} - -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeInteger) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "someInteger"); - -} - -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeDouble) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "someDouble"); - -} - -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeString) { - - zval *this_ptr = getThis(); - - - RETURN_MEMBER(getThis(), "someString"); - -} - diff --git a/ext/test/properties/protectedproperties.zep.h b/ext/test/properties/protectedproperties.zep.h deleted file mode 100644 index b9d731a4db..0000000000 --- a/ext/test/properties/protectedproperties.zep.h +++ /dev/null @@ -1,37 +0,0 @@ - -extern zend_class_entry *test_properties_protectedproperties_ce; - -ZEPHIR_INIT_CLASS(Test_Properties_ProtectedProperties); - -PHP_METHOD(Test_Properties_ProtectedProperties, setSomeVar); -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeVar); -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeNull); -PHP_METHOD(Test_Properties_ProtectedProperties, setSomeNull); -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeNullInitial); -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeFalse); -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeTrue); -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeInteger); -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeDouble); -PHP_METHOD(Test_Properties_ProtectedProperties, getSomeString); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_properties_protectedproperties_setsomevar, 0, 0, 1) - ZEND_ARG_INFO(0, someVar) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_properties_protectedproperties_setsomenull, 0, 0, 1) - ZEND_ARG_INFO(0, param) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_properties_protectedproperties_method_entry) { - PHP_ME(Test_Properties_ProtectedProperties, setSomeVar, arginfo_test_properties_protectedproperties_setsomevar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_ProtectedProperties, getSomeVar, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_ProtectedProperties, getSomeNull, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_ProtectedProperties, setSomeNull, arginfo_test_properties_protectedproperties_setsomenull, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_ProtectedProperties, getSomeNullInitial, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_ProtectedProperties, getSomeFalse, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_ProtectedProperties, getSomeTrue, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_ProtectedProperties, getSomeInteger, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_ProtectedProperties, getSomeDouble, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_ProtectedProperties, getSomeString, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/properties/publicproperties.zep.h b/ext/test/properties/publicproperties.zep.h deleted file mode 100644 index ebb026586d..0000000000 --- a/ext/test/properties/publicproperties.zep.h +++ /dev/null @@ -1,20 +0,0 @@ - -extern zend_class_entry *test_properties_publicproperties_ce; - -ZEPHIR_INIT_CLASS(Test_Properties_PublicProperties); - -PHP_METHOD(Test_Properties_PublicProperties, setSomeGetterSetterArray); -PHP_METHOD(Test_Properties_PublicProperties, getSomeGetterSetterArray); -PHP_METHOD(Test_Properties_PublicProperties, test394Issue); -zend_object *zephir_init_properties_Test_Properties_PublicProperties(zend_class_entry *class_type TSRMLS_DC); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_properties_publicproperties_setsomegettersetterarray, 0, 0, 1) - ZEND_ARG_INFO(0, someGetterSetterArray) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_properties_publicproperties_method_entry) { - PHP_ME(Test_Properties_PublicProperties, setSomeGetterSetterArray, arginfo_test_properties_publicproperties_setsomegettersetterarray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_PublicProperties, getSomeGetterSetterArray, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_PublicProperties, test394Issue, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/properties/staticprivateproperties.zep.h b/ext/test/properties/staticprivateproperties.zep.h deleted file mode 100644 index f205c232c9..0000000000 --- a/ext/test/properties/staticprivateproperties.zep.h +++ /dev/null @@ -1,18 +0,0 @@ - -extern zend_class_entry *test_properties_staticprivateproperties_ce; - -ZEPHIR_INIT_CLASS(Test_Properties_StaticPrivateProperties); - -PHP_METHOD(Test_Properties_StaticPrivateProperties, getInstance); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_test_properties_staticprivateproperties_getinstance, 0, 0, Test\\Properties\\StaticPrivateProperties, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_properties_staticprivateproperties_getinstance, 0, 0, IS_OBJECT, "Test\\Properties\\StaticPrivateProperties", 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_properties_staticprivateproperties_method_entry) { - PHP_ME(Test_Properties_StaticPrivateProperties, getInstance, arginfo_test_properties_staticprivateproperties_getinstance, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/properties/staticpropertyarray.zep.h b/ext/test/properties/staticpropertyarray.zep.h deleted file mode 100644 index d6c6c46bfa..0000000000 --- a/ext/test/properties/staticpropertyarray.zep.h +++ /dev/null @@ -1,10 +0,0 @@ - -extern zend_class_entry *test_properties_staticpropertyarray_ce; - -ZEPHIR_INIT_CLASS(Test_Properties_StaticPropertyArray); - -void zephir_init_static_properties_Test_Properties_StaticPropertyArray(TSRMLS_D); - -ZEPHIR_INIT_FUNCS(test_properties_staticpropertyarray_method_entry) { - PHP_FE_END -}; diff --git a/ext/test/properties/staticprotectedproperties.zep.h b/ext/test/properties/staticprotectedproperties.zep.h deleted file mode 100644 index 161834d067..0000000000 --- a/ext/test/properties/staticprotectedproperties.zep.h +++ /dev/null @@ -1,37 +0,0 @@ - -extern zend_class_entry *test_properties_staticprotectedproperties_ce; - -ZEPHIR_INIT_CLASS(Test_Properties_StaticProtectedProperties); - -PHP_METHOD(Test_Properties_StaticProtectedProperties, setSomeVar); -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeVar); -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeNull); -PHP_METHOD(Test_Properties_StaticProtectedProperties, setSomeNull); -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeNullInitial); -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeFalse); -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeTrue); -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeInteger); -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeDouble); -PHP_METHOD(Test_Properties_StaticProtectedProperties, getSomeString); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_properties_staticprotectedproperties_setsomevar, 0, 0, 1) - ZEND_ARG_INFO(0, someVar) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_properties_staticprotectedproperties_setsomenull, 0, 0, 1) - ZEND_ARG_INFO(0, param) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_properties_staticprotectedproperties_method_entry) { - PHP_ME(Test_Properties_StaticProtectedProperties, setSomeVar, arginfo_test_properties_staticprotectedproperties_setsomevar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_StaticProtectedProperties, getSomeVar, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Properties_StaticProtectedProperties, getSomeNull, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Properties_StaticProtectedProperties, setSomeNull, arginfo_test_properties_staticprotectedproperties_setsomenull, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Properties_StaticProtectedProperties, getSomeNullInitial, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Properties_StaticProtectedProperties, getSomeFalse, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Properties_StaticProtectedProperties, getSomeTrue, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Properties_StaticProtectedProperties, getSomeInteger, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Properties_StaticProtectedProperties, getSomeDouble, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Properties_StaticProtectedProperties, getSomeString, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/properties/staticpublicproperties.zep.h b/ext/test/properties/staticpublicproperties.zep.h deleted file mode 100644 index b57b412864..0000000000 --- a/ext/test/properties/staticpublicproperties.zep.h +++ /dev/null @@ -1,25 +0,0 @@ - -extern zend_class_entry *test_properties_staticpublicproperties_ce; - -ZEPHIR_INIT_CLASS(Test_Properties_StaticPublicProperties); - -PHP_METHOD(Test_Properties_StaticPublicProperties, setSomeString); -PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub); -PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub2); -PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub3); -PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub4); -PHP_METHOD(Test_Properties_StaticPublicProperties, testAddAndSub5); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_properties_staticpublicproperties_setsomestring, 0, 0, 1) - ZEND_ARG_INFO(0, val) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_properties_staticpublicproperties_method_entry) { - PHP_ME(Test_Properties_StaticPublicProperties, setSomeString, arginfo_test_properties_staticpublicproperties_setsomestring, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Properties_StaticPublicProperties, testAddAndSub, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Properties_StaticPublicProperties, testAddAndSub2, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Properties_StaticPublicProperties, testAddAndSub3, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Properties_StaticPublicProperties, testAddAndSub4, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Properties_StaticPublicProperties, testAddAndSub5, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/quantum.zep.h b/ext/test/quantum.zep.h deleted file mode 100644 index aad46859c9..0000000000 --- a/ext/test/quantum.zep.h +++ /dev/null @@ -1,19 +0,0 @@ - -extern zend_class_entry *test_quantum_ce; - -ZEPHIR_INIT_CLASS(Test_Quantum); - -PHP_METHOD(Test_Quantum, harmos); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_quantum_harmos, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_quantum_method_entry) { - PHP_ME(Test_Quantum, harmos, arginfo_test_quantum_harmos, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/range.zep.h b/ext/test/range.zep.h deleted file mode 100644 index a1a9a30753..0000000000 --- a/ext/test/range.zep.h +++ /dev/null @@ -1,13 +0,0 @@ - -extern zend_class_entry *test_range_ce; - -ZEPHIR_INIT_CLASS(Test_Range); - -PHP_METHOD(Test_Range, inclusive1); -PHP_METHOD(Test_Range, exclusive1); - -ZEPHIR_INIT_FUNCS(test_range_method_entry) { - PHP_ME(Test_Range, inclusive1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Range, exclusive1, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/references.zep.h b/ext/test/references.zep.h deleted file mode 100644 index 20ab484763..0000000000 --- a/ext/test/references.zep.h +++ /dev/null @@ -1,11 +0,0 @@ - -extern zend_class_entry *test_references_ce; - -ZEPHIR_INIT_CLASS(Test_References); - -PHP_METHOD(Test_References, assignByRef); - -ZEPHIR_INIT_FUNCS(test_references_method_entry) { - PHP_ME(Test_References, assignByRef, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/regexdna.zep.h b/ext/test/regexdna.zep.h deleted file mode 100644 index 7f8c73ea7f..0000000000 --- a/ext/test/regexdna.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_regexdna_ce; - -ZEPHIR_INIT_CLASS(Test_RegexDNA); - -PHP_METHOD(Test_RegexDNA, process); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_regexdna_process, 0, 0, 1) - ZEND_ARG_INFO(0, path) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_regexdna_method_entry) { - PHP_ME(Test_RegexDNA, process, arginfo_test_regexdna_process, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/requires.zep.h b/ext/test/requires.zep.h deleted file mode 100644 index fbeed3214d..0000000000 --- a/ext/test/requires.zep.h +++ /dev/null @@ -1,54 +0,0 @@ - -extern zend_class_entry *test_requires_ce; - -ZEPHIR_INIT_CLASS(Test_Requires); - -PHP_METHOD(Test_Requires, requireExternal1); -PHP_METHOD(Test_Requires, requireExternal2); -PHP_METHOD(Test_Requires, requireExternal3); -PHP_METHOD(Test_Requires, setContent); -PHP_METHOD(Test_Requires, renderTemplate); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_requires_requireexternal1, 0, 0, 1) - ZEND_ARG_INFO(0, path) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_requires_requireexternal2, 0, 0, 1) - ZEND_ARG_INFO(0, path) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_requires_requireexternal3, 0, 0, 1) - ZEND_ARG_INFO(0, path) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_requires_setcontent, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_requires_setcontent, 0, 1, IS_VOID, NULL, 0) -#endif -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_requires_setcontent, 0, 0, 1) -#define arginfo_test_requires_setcontent NULL -#endif - - ZEND_ARG_INFO(0, content) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_requires_rendertemplate, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, templatePath, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, templatePath) -#endif - ZEND_ARG_INFO(0, params) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_requires_method_entry) { - PHP_ME(Test_Requires, requireExternal1, arginfo_test_requires_requireexternal1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Requires, requireExternal2, arginfo_test_requires_requireexternal2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Requires, requireExternal3, arginfo_test_requires_requireexternal3, ZEND_ACC_PUBLIC) - PHP_ME(Test_Requires, setContent, arginfo_test_requires_setcontent, ZEND_ACC_PUBLIC) - PHP_ME(Test_Requires, renderTemplate, arginfo_test_requires_rendertemplate, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/requires/external3.zep.h b/ext/test/requires/external3.zep.h deleted file mode 100644 index c2d34527d1..0000000000 --- a/ext/test/requires/external3.zep.h +++ /dev/null @@ -1,26 +0,0 @@ - -extern zend_class_entry *test_requires_external3_ce; - -ZEPHIR_INIT_CLASS(Test_Requires_External3); - -PHP_METHOD(Test_Requires_External3, req); - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_requires_external3_req, 0, 2, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_requires_external3_req, 0, 2, IS_VOID, NULL, 0) -#endif -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_requires_external3_req, 0, 0, 2) -#define arginfo_test_requires_external3_req NULL -#endif - - ZEND_ARG_INFO(0, path) - ZEND_ARG_INFO(0, requires) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_requires_external3_method_entry) { - PHP_ME(Test_Requires_External3, req, arginfo_test_requires_external3_req, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/resourcetest.zep.h b/ext/test/resourcetest.zep.h deleted file mode 100644 index c6326074f3..0000000000 --- a/ext/test/resourcetest.zep.h +++ /dev/null @@ -1,21 +0,0 @@ - -extern zend_class_entry *test_resourcetest_ce; - -ZEPHIR_INIT_CLASS(Test_ResourceTest); - -PHP_METHOD(Test_ResourceTest, testLetStatementSTDIN); -PHP_METHOD(Test_ResourceTest, testLetStatementSTDOUT); -PHP_METHOD(Test_ResourceTest, testLetStatementSTDERR); -PHP_METHOD(Test_ResourceTest, testTypeOffResource); -PHP_METHOD(Test_ResourceTest, testIsResource); -PHP_METHOD(Test_ResourceTest, testFunctionsForSTDIN); - -ZEPHIR_INIT_FUNCS(test_resourcetest_method_entry) { - PHP_ME(Test_ResourceTest, testLetStatementSTDIN, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ResourceTest, testLetStatementSTDOUT, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ResourceTest, testLetStatementSTDERR, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ResourceTest, testTypeOffResource, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ResourceTest, testIsResource, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ResourceTest, testFunctionsForSTDIN, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/returns.zep.h b/ext/test/returns.zep.h deleted file mode 100644 index 8df85b5da9..0000000000 --- a/ext/test/returns.zep.h +++ /dev/null @@ -1,57 +0,0 @@ - -extern zend_class_entry *test_returns_ce; - -ZEPHIR_INIT_CLASS(Test_Returns); - -PHP_METHOD(Test_Returns, testReturnCast1); -PHP_METHOD(Test_Returns, testReturnCast2); -PHP_METHOD(Test_Returns, testReturnCast3); -PHP_METHOD(Test_Returns, testReturnCast4); -PHP_METHOD(Test_Returns, returnWithParameter); -PHP_METHOD(Test_Returns, returnWithoutParameter); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_returns_testreturncast1, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_returns_testreturncast1, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_returns_testreturncast2, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_returns_testreturncast2, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_returns_testreturncast3, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_returns_testreturncast3, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_returns_testreturncast4, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_returns_testreturncast4, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_returns_returnwithparameter, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, parameter, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, parameter) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_returns_method_entry) { - PHP_ME(Test_Returns, testReturnCast1, arginfo_test_returns_testreturncast1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Returns, testReturnCast2, arginfo_test_returns_testreturncast2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Returns, testReturnCast3, arginfo_test_returns_testreturncast3, ZEND_ACC_PUBLIC) - PHP_ME(Test_Returns, testReturnCast4, arginfo_test_returns_testreturncast4, ZEND_ACC_PUBLIC) - PHP_ME(Test_Returns, returnWithParameter, arginfo_test_returns_returnwithparameter, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Returns, returnWithoutParameter, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/router.zep.h b/ext/test/router.zep.h deleted file mode 100644 index 5b526bb0bc..0000000000 --- a/ext/test/router.zep.h +++ /dev/null @@ -1,184 +0,0 @@ - -extern zend_class_entry *test_router_ce; - -ZEPHIR_INIT_CLASS(Test_Router); - -PHP_METHOD(Test_Router, __construct); -PHP_METHOD(Test_Router, setDI); -PHP_METHOD(Test_Router, getDI); -PHP_METHOD(Test_Router, getRewriteUri); -PHP_METHOD(Test_Router, setUriSource); -PHP_METHOD(Test_Router, removeExtraSlashes); -PHP_METHOD(Test_Router, setDefaultNamespace); -PHP_METHOD(Test_Router, setDefaultModule); -PHP_METHOD(Test_Router, setDefaultController); -PHP_METHOD(Test_Router, setDefaultAction); -PHP_METHOD(Test_Router, setDefaults); -PHP_METHOD(Test_Router, doRemoveExtraSlashes); -PHP_METHOD(Test_Router, handle); -PHP_METHOD(Test_Router, add); -PHP_METHOD(Test_Router, addGet); -PHP_METHOD(Test_Router, addPost); -PHP_METHOD(Test_Router, addPut); -PHP_METHOD(Test_Router, addPatch); -PHP_METHOD(Test_Router, addDelete); -PHP_METHOD(Test_Router, addOptions); -PHP_METHOD(Test_Router, addHead); -PHP_METHOD(Test_Router, mount); -PHP_METHOD(Test_Router, notFound); -PHP_METHOD(Test_Router, clear); -PHP_METHOD(Test_Router, getNamespaceName); -PHP_METHOD(Test_Router, getModuleName); -PHP_METHOD(Test_Router, getControllerName); -PHP_METHOD(Test_Router, getActionName); -PHP_METHOD(Test_Router, getParams); -PHP_METHOD(Test_Router, getMatchedRoute); -PHP_METHOD(Test_Router, getMatches); -PHP_METHOD(Test_Router, wasMatched); -PHP_METHOD(Test_Router, getRoutes); -PHP_METHOD(Test_Router, getRouteById); -PHP_METHOD(Test_Router, getRouteByName); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router___construct, 0, 0, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, defaultRoutes, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, defaultRoutes) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_setdi, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, dependencyInjector, Test\\DiInterface, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_seturisource, 0, 0, 1) - ZEND_ARG_INFO(0, uriSource) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_removeextraslashes, 0, 0, 1) - ZEND_ARG_INFO(0, remove) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_setdefaultnamespace, 0, 0, 1) - ZEND_ARG_INFO(0, namespaceName) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_setdefaultmodule, 0, 0, 1) - ZEND_ARG_INFO(0, moduleName) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_setdefaultcontroller, 0, 0, 1) - ZEND_ARG_INFO(0, controllerName) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_setdefaultaction, 0, 0, 1) - ZEND_ARG_INFO(0, actionName) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_setdefaults, 0, 0, 1) - ZEND_ARG_INFO(0, defaults) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_doremoveextraslashes, 0, 0, 1) - ZEND_ARG_INFO(0, route) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_handle, 0, 0, 0) - ZEND_ARG_INFO(0, uri) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_add, 0, 0, 1) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, paths) - ZEND_ARG_INFO(0, httpMethods) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_addget, 0, 0, 1) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, paths) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_addpost, 0, 0, 1) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, paths) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_addput, 0, 0, 1) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, paths) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_addpatch, 0, 0, 1) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, paths) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_adddelete, 0, 0, 1) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, paths) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_addoptions, 0, 0, 1) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, paths) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_addhead, 0, 0, 1) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, paths) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_mount, 0, 0, 1) - ZEND_ARG_INFO(0, group) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_notfound, 0, 0, 1) - ZEND_ARG_INFO(0, paths) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_getroutebyid, 0, 0, 1) - ZEND_ARG_INFO(0, id) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_getroutebyname, 0, 0, 1) - ZEND_ARG_INFO(0, name) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_router_method_entry) { - PHP_ME(Test_Router, __construct, arginfo_test_router___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Test_Router, setDI, arginfo_test_router_setdi, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, getDI, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, getRewriteUri, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, setUriSource, arginfo_test_router_seturisource, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, removeExtraSlashes, arginfo_test_router_removeextraslashes, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, setDefaultNamespace, arginfo_test_router_setdefaultnamespace, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, setDefaultModule, arginfo_test_router_setdefaultmodule, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, setDefaultController, arginfo_test_router_setdefaultcontroller, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, setDefaultAction, arginfo_test_router_setdefaultaction, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, setDefaults, arginfo_test_router_setdefaults, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, doRemoveExtraSlashes, arginfo_test_router_doremoveextraslashes, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, handle, arginfo_test_router_handle, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, add, arginfo_test_router_add, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, addGet, arginfo_test_router_addget, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, addPost, arginfo_test_router_addpost, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, addPut, arginfo_test_router_addput, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, addPatch, arginfo_test_router_addpatch, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, addDelete, arginfo_test_router_adddelete, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, addOptions, arginfo_test_router_addoptions, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, addHead, arginfo_test_router_addhead, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, mount, arginfo_test_router_mount, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, notFound, arginfo_test_router_notfound, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, clear, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, getNamespaceName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, getModuleName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, getControllerName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, getActionName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, getParams, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, getMatchedRoute, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, getMatches, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, wasMatched, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, getRoutes, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, getRouteById, arginfo_test_router_getroutebyid, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router, getRouteByName, arginfo_test_router_getroutebyname, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/router/exception.zep.h b/ext/test/router/exception.zep.h deleted file mode 100644 index 74883fd608..0000000000 --- a/ext/test/router/exception.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_router_exception_ce; - -ZEPHIR_INIT_CLASS(Test_Router_Exception); - diff --git a/ext/test/router/route.zep.h b/ext/test/router/route.zep.h deleted file mode 100644 index bb42d77873..0000000000 --- a/ext/test/router/route.zep.h +++ /dev/null @@ -1,97 +0,0 @@ - -extern zend_class_entry *test_router_route_ce; - -ZEPHIR_INIT_CLASS(Test_Router_Route); - -PHP_METHOD(Test_Router_Route, __construct); -PHP_METHOD(Test_Router_Route, compilePattern); -PHP_METHOD(Test_Router_Route, via); -PHP_METHOD(Test_Router_Route, extractNamedParams); -PHP_METHOD(Test_Router_Route, reConfigure); -PHP_METHOD(Test_Router_Route, getName); -PHP_METHOD(Test_Router_Route, setName); -PHP_METHOD(Test_Router_Route, beforeMatch); -PHP_METHOD(Test_Router_Route, getBeforeMatch); -PHP_METHOD(Test_Router_Route, getRouteId); -PHP_METHOD(Test_Router_Route, getPattern); -PHP_METHOD(Test_Router_Route, getCompiledPattern); -PHP_METHOD(Test_Router_Route, getPaths); -PHP_METHOD(Test_Router_Route, getReversedPaths); -PHP_METHOD(Test_Router_Route, setHttpMethods); -PHP_METHOD(Test_Router_Route, getHttpMethods); -PHP_METHOD(Test_Router_Route, setHostname); -PHP_METHOD(Test_Router_Route, getHostname); -PHP_METHOD(Test_Router_Route, convert); -PHP_METHOD(Test_Router_Route, getConverters); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_route___construct, 0, 0, 1) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, paths) - ZEND_ARG_INFO(0, httpMethods) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_route_compilepattern, 0, 0, 1) - ZEND_ARG_INFO(0, pattern) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_route_via, 0, 0, 1) - ZEND_ARG_INFO(0, httpMethods) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_route_extractnamedparams, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, pattern) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_route_reconfigure, 0, 0, 1) - ZEND_ARG_INFO(0, pattern) - ZEND_ARG_INFO(0, paths) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_route_setname, 0, 0, 1) - ZEND_ARG_INFO(0, name) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_route_beforematch, 0, 0, 1) - ZEND_ARG_INFO(0, callback) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_route_sethttpmethods, 0, 0, 1) - ZEND_ARG_INFO(0, httpMethods) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_route_sethostname, 0, 0, 1) - ZEND_ARG_INFO(0, hostname) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_router_route_convert, 0, 0, 2) - ZEND_ARG_INFO(0, name) - ZEND_ARG_INFO(0, converter) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_router_route_method_entry) { - PHP_ME(Test_Router_Route, __construct, arginfo_test_router_route___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Test_Router_Route, compilePattern, arginfo_test_router_route_compilepattern, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, via, arginfo_test_router_route_via, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, extractNamedParams, arginfo_test_router_route_extractnamedparams, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, reConfigure, arginfo_test_router_route_reconfigure, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, getName, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, setName, arginfo_test_router_route_setname, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, beforeMatch, arginfo_test_router_route_beforematch, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, getBeforeMatch, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, getRouteId, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, getPattern, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, getCompiledPattern, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, getPaths, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, getReversedPaths, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, setHttpMethods, arginfo_test_router_route_sethttpmethods, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, getHttpMethods, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, setHostname, arginfo_test_router_route_sethostname, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, getHostname, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, convert, arginfo_test_router_route_convert, ZEND_ACC_PUBLIC) - PHP_ME(Test_Router_Route, getConverters, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/scall.zep.h b/ext/test/scall.zep.h deleted file mode 100644 index 50298020df..0000000000 --- a/ext/test/scall.zep.h +++ /dev/null @@ -1,198 +0,0 @@ - -extern zend_class_entry *test_scall_ce; - -ZEPHIR_INIT_CLASS(Test_Scall); - -PHP_METHOD(Test_Scall, testMethod1); -PHP_METHOD(Test_Scall, testMethod2); -PHP_METHOD(Test_Scall, testMethod3); -PHP_METHOD(Test_Scall, testMethod4); -PHP_METHOD(Test_Scall, testMethod5); -PHP_METHOD(Test_Scall, testMethod6); -PHP_METHOD(Test_Scall, testMethod7); -PHP_METHOD(Test_Scall, testCall1); -PHP_METHOD(Test_Scall, testCall2); -PHP_METHOD(Test_Scall, testCall3); -PHP_METHOD(Test_Scall, testCall4); -PHP_METHOD(Test_Scall, testCall5); -PHP_METHOD(Test_Scall, testCall6); -PHP_METHOD(Test_Scall, testCall7); -PHP_METHOD(Test_Scall, testCall8); -PHP_METHOD(Test_Scall, testCall9); -PHP_METHOD(Test_Scall, testCall10); -PHP_METHOD(Test_Scall, testCall11); -PHP_METHOD(Test_Scall, testCall12); -PHP_METHOD(Test_Scall, testCall13); -PHP_METHOD(Test_Scall, testCall14); -PHP_METHOD(Test_Scall, testCall15); -PHP_METHOD(Test_Scall, testMethod16); -PHP_METHOD(Test_Scall, testCall17); -PHP_METHOD(Test_Scall, testCall18); -PHP_METHOD(Test_Scall, testMethodStatic); -PHP_METHOD(Test_Scall, interpolatedStaticReturn); -PHP_METHOD(Test_Scall, interpolatedStaticEcho); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_testmethod1, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_testmethod1, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_testmethod2, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_testmethod2, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_testmethod3, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_testmethod3, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scall_testmethod4, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scall_testmethod5, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scall_testmethod6, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_test_scall_testmethod7, 0, 0, stdClass, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_testmethod7, 0, 0, IS_OBJECT, "stdClass", 0) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scall_testcall4, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scall_testcall5, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scall_testcall6, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scall_testcall10, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scall_testcall11, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scall_testcall12, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_testmethod16, 0, 2, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_testmethod16, 0, 2, IS_LONG, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scall_testcall17, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, k, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, k) -#endif - ZEND_ARG_INFO(0, p) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scall_testcall18, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, k, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, k) -#endif - ZEND_ARG_INFO(0, p) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_testmethodstatic, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_testmethodstatic, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_interpolatedstaticreturn, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_interpolatedstaticreturn, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70100 -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_interpolatedstaticecho, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scall_interpolatedstaticecho, 0, 0, IS_VOID, NULL, 0) -#endif -ZEND_END_ARG_INFO() -#else -#define arginfo_test_scall_interpolatedstaticecho NULL -#endif - -ZEPHIR_INIT_FUNCS(test_scall_method_entry) { - PHP_ME(Test_Scall, testMethod1, arginfo_test_scall_testmethod1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testMethod2, arginfo_test_scall_testmethod2, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED) - PHP_ME(Test_Scall, testMethod3, arginfo_test_scall_testmethod3, ZEND_ACC_STATIC|ZEND_ACC_PRIVATE) - PHP_ME(Test_Scall, testMethod4, arginfo_test_scall_testmethod4, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testMethod5, arginfo_test_scall_testmethod5, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED) - PHP_ME(Test_Scall, testMethod6, arginfo_test_scall_testmethod6, ZEND_ACC_STATIC|ZEND_ACC_PRIVATE) - PHP_ME(Test_Scall, testMethod7, arginfo_test_scall_testmethod7, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall4, arginfo_test_scall_testcall4, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall5, arginfo_test_scall_testcall5, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall6, arginfo_test_scall_testcall6, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall7, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall8, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall9, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall10, arginfo_test_scall_testcall10, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall11, arginfo_test_scall_testcall11, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall12, arginfo_test_scall_testcall12, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall13, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall14, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testCall15, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, testMethod16, arginfo_test_scall_testmethod16, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Scall, testCall17, arginfo_test_scall_testcall17, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Scall, testCall18, arginfo_test_scall_testcall18, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Scall, testMethodStatic, arginfo_test_scall_testmethodstatic, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED) - PHP_ME(Test_Scall, interpolatedStaticReturn, arginfo_test_scall_interpolatedstaticreturn, ZEND_ACC_PUBLIC) - PHP_ME(Test_Scall, interpolatedStaticEcho, arginfo_test_scall_interpolatedstaticecho, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/scalldynamic.zep.h b/ext/test/scalldynamic.zep.h deleted file mode 100644 index cc3191bc50..0000000000 --- a/ext/test/scalldynamic.zep.h +++ /dev/null @@ -1,46 +0,0 @@ - -extern zend_class_entry *test_scalldynamic_ce; - -ZEPHIR_INIT_CLASS(Test_ScallDynamic); - -PHP_METHOD(Test_ScallDynamic, testMethod1); -PHP_METHOD(Test_ScallDynamic, testMethod2); -PHP_METHOD(Test_ScallDynamic, testMethod3); -PHP_METHOD(Test_ScallDynamic, selfDynamicCall1); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scalldynamic_testmethod1, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scalldynamic_testmethod1, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scalldynamic_testmethod2, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scalldynamic_testmethod2, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scalldynamic_testmethod3, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scalldynamic_testmethod3, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scalldynamic_selfdynamiccall1, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scalldynamic_selfdynamiccall1, 0, 1, IS_STRING, NULL, 0) -#endif - ZEND_ARG_INFO(0, methodName) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_scalldynamic_method_entry) { - PHP_ME(Test_ScallDynamic, testMethod1, arginfo_test_scalldynamic_testmethod1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_ME(Test_ScallDynamic, testMethod2, arginfo_test_scalldynamic_testmethod2, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED) - PHP_ME(Test_ScallDynamic, testMethod3, arginfo_test_scalldynamic_testmethod3, ZEND_ACC_STATIC|ZEND_ACC_PRIVATE) - PHP_ME(Test_ScallDynamic, selfDynamicCall1, arginfo_test_scalldynamic_selfdynamiccall1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/scallexternal.zep.h b/ext/test/scallexternal.zep.h deleted file mode 100644 index 72d33bdcac..0000000000 --- a/ext/test/scallexternal.zep.h +++ /dev/null @@ -1,33 +0,0 @@ - -extern zend_class_entry *test_scallexternal_ce; - -ZEPHIR_INIT_CLASS(Test_ScallExternal); - -PHP_METHOD(Test_ScallExternal, testCall1); -PHP_METHOD(Test_ScallExternal, testCall2); -PHP_METHOD(Test_ScallExternal, testMethod3); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scallexternal_testcall2, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, b) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scallexternal_testmethod3, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_scallexternal_method_entry) { - PHP_ME(Test_ScallExternal, testCall1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_ScallExternal, testCall2, arginfo_test_scallexternal_testcall2, ZEND_ACC_PUBLIC) - PHP_ME(Test_ScallExternal, testMethod3, arginfo_test_scallexternal_testmethod3, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/scallparent.zep.h b/ext/test/scallparent.zep.h deleted file mode 100644 index 5e4f5dc5bc..0000000000 --- a/ext/test/scallparent.zep.h +++ /dev/null @@ -1,45 +0,0 @@ - -extern zend_class_entry *test_scallparent_ce; - -ZEPHIR_INIT_CLASS(Test_ScallParent); - -PHP_METHOD(Test_ScallParent, testMethod1); -PHP_METHOD(Test_ScallParent, testMethod2); -PHP_METHOD(Test_ScallParent, testCallStatic); -PHP_METHOD(Test_ScallParent, testMethodStatic); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scallparent_testmethod1, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scallparent_testmethod1, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scallparent_testmethod2, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scallparent_testmethod2, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scallparent_testcallstatic, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scallparent_testcallstatic, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scallparent_testmethodstatic, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_scallparent_testmethodstatic, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_scallparent_method_entry) { - PHP_ME(Test_ScallParent, testMethod1, arginfo_test_scallparent_testmethod1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_ME(Test_ScallParent, testMethod2, arginfo_test_scallparent_testmethod2, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED) - PHP_ME(Test_ScallParent, testCallStatic, arginfo_test_scallparent_testcallstatic, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC) - PHP_ME(Test_ScallParent, testMethodStatic, arginfo_test_scallparent_testmethodstatic, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED) - PHP_FE_END -}; diff --git a/ext/test/scope.zep.h b/ext/test/scope.zep.h deleted file mode 100644 index cfad8233a9..0000000000 --- a/ext/test/scope.zep.h +++ /dev/null @@ -1,27 +0,0 @@ - -extern zend_class_entry *test_scope_ce; - -ZEPHIR_INIT_CLASS(Test_Scope); - -PHP_METHOD(Test_Scope, getStr); -PHP_METHOD(Test_Scope, getDyStr); -PHP_METHOD(Test_Scope, test1); -PHP_METHOD(Test_Scope, test2); -PHP_METHOD(Test_Scope, test3); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_scope_getdystr, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, g, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, g) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_scope_method_entry) { - PHP_ME(Test_Scope, getStr, NULL, ZEND_ACC_PRIVATE|ZEND_ACC_STATIC) - PHP_ME(Test_Scope, getDyStr, arginfo_test_scope_getdystr, ZEND_ACC_PRIVATE|ZEND_ACC_STATIC) - PHP_ME(Test_Scope, test1, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Scope, test2, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_Scope, test3, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/sort.zep.h b/ext/test/sort.zep.h deleted file mode 100644 index 7fbcc2fbbb..0000000000 --- a/ext/test/sort.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_sort_ce; - -ZEPHIR_INIT_CLASS(Test_Sort); - -PHP_METHOD(Test_Sort, quick); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_sort_quick, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, arr, 0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_sort_method_entry) { - PHP_ME(Test_Sort, quick, arginfo_test_sort_quick, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/spectralnorm.zep.h b/ext/test/spectralnorm.zep.h deleted file mode 100644 index b65b2e6995..0000000000 --- a/ext/test/spectralnorm.zep.h +++ /dev/null @@ -1,59 +0,0 @@ - -extern zend_class_entry *test_spectralnorm_ce; - -ZEPHIR_INIT_CLASS(Test_SpectralNorm); - -PHP_METHOD(Test_SpectralNorm, Ax); -PHP_METHOD(Test_SpectralNorm, Au); -PHP_METHOD(Test_SpectralNorm, Atu); -PHP_METHOD(Test_SpectralNorm, AtAu); -PHP_METHOD(Test_SpectralNorm, process); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_spectralnorm_ax, 0, 0, 2) - ZEND_ARG_INFO(0, i) - ZEND_ARG_INFO(0, j) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_spectralnorm_au, 0, 0, 3) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, n) -#endif - ZEND_ARG_OBJ_INFO(0, u, SplFixedArray, 0) - ZEND_ARG_OBJ_INFO(0, v, SplFixedArray, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_spectralnorm_atu, 0, 0, 3) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, n) -#endif - ZEND_ARG_OBJ_INFO(0, u, SplFixedArray, 0) - ZEND_ARG_OBJ_INFO(0, v, SplFixedArray, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_spectralnorm_atau, 0, 0, 4) - ZEND_ARG_INFO(0, n) - ZEND_ARG_INFO(0, u) - ZEND_ARG_INFO(0, v) - ZEND_ARG_INFO(0, w) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_spectralnorm_process, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, n) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_spectralnorm_method_entry) { - PHP_ME(Test_SpectralNorm, Ax, arginfo_test_spectralnorm_ax, ZEND_ACC_PRIVATE) - PHP_ME(Test_SpectralNorm, Au, arginfo_test_spectralnorm_au, ZEND_ACC_PRIVATE) - PHP_ME(Test_SpectralNorm, Atu, arginfo_test_spectralnorm_atu, ZEND_ACC_PRIVATE) - PHP_ME(Test_SpectralNorm, AtAu, arginfo_test_spectralnorm_atau, ZEND_ACC_PRIVATE) - PHP_ME(Test_SpectralNorm, process, arginfo_test_spectralnorm_process, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/spropertyaccess.zep.h b/ext/test/spropertyaccess.zep.h deleted file mode 100644 index faf51d877f..0000000000 --- a/ext/test/spropertyaccess.zep.h +++ /dev/null @@ -1,60 +0,0 @@ - -extern zend_class_entry *test_spropertyaccess_ce; - -ZEPHIR_INIT_CLASS(Test_SPropertyAccess); - -PHP_METHOD(Test_SPropertyAccess, __construct); -PHP_METHOD(Test_SPropertyAccess, testArgumentWithUnderscore); -PHP_METHOD(Test_SPropertyAccess, testArgument); -PHP_METHOD(Test_SPropertyAccess, mutateStringVarInsideCycle); -PHP_METHOD(Test_SPropertyAccess, mutateIntVarInsideCycle); -PHP_METHOD(Test_SPropertyAccess, mutateDoubleVarInsideCycle); -PHP_METHOD(Test_SPropertyAccess, mutateArrayVarInsideCycle); -void zephir_init_static_properties_Test_SPropertyAccess(TSRMLS_D); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_spropertyaccess_testargumentwithunderscore, 0, 0, 0) - ZEND_ARG_INFO(0, delimiter) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_spropertyaccess_testargument, 0, 0, 0) - ZEND_ARG_INFO(0, delimiter) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_spropertyaccess_mutatestringvarinsidecycle, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_spropertyaccess_mutatestringvarinsidecycle, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_spropertyaccess_mutateintvarinsidecycle, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_spropertyaccess_mutateintvarinsidecycle, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_spropertyaccess_mutatedoublevarinsidecycle, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_spropertyaccess_mutatedoublevarinsidecycle, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_spropertyaccess_mutatearrayvarinsidecycle, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_spropertyaccess_mutatearrayvarinsidecycle, 0, 0, IS_ARRAY, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_spropertyaccess_method_entry) { - PHP_ME(Test_SPropertyAccess, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(Test_SPropertyAccess, testArgumentWithUnderscore, arginfo_test_spropertyaccess_testargumentwithunderscore, ZEND_ACC_PUBLIC) - PHP_ME(Test_SPropertyAccess, testArgument, arginfo_test_spropertyaccess_testargument, ZEND_ACC_PUBLIC) - PHP_ME(Test_SPropertyAccess, mutateStringVarInsideCycle, arginfo_test_spropertyaccess_mutatestringvarinsidecycle, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_SPropertyAccess, mutateIntVarInsideCycle, arginfo_test_spropertyaccess_mutateintvarinsidecycle, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_SPropertyAccess, mutateDoubleVarInsideCycle, arginfo_test_spropertyaccess_mutatedoublevarinsidecycle, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(Test_SPropertyAccess, mutateArrayVarInsideCycle, arginfo_test_spropertyaccess_mutatearrayvarinsidecycle, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_FE_END -}; diff --git a/ext/test/statements.zep.h b/ext/test/statements.zep.h deleted file mode 100644 index d5ed7b74e1..0000000000 --- a/ext/test/statements.zep.h +++ /dev/null @@ -1,62 +0,0 @@ - -extern zend_class_entry *test_statements_ce; - -ZEPHIR_INIT_CLASS(Test_Statements); - -PHP_METHOD(Test_Statements, testPropertyAcccessAvoidTmpReuse); -PHP_METHOD(Test_Statements, testElseIf); -PHP_METHOD(Test_Statements, testElseIf1); -PHP_METHOD(Test_Statements, testElseIf2); -PHP_METHOD(Test_Statements, test544Issue); -PHP_METHOD(Test_Statements, test544IssueWithVariable); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_statements_testelseif, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_statements_testelseif1, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_statements_testelseif2, 0, 0, 2) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, num) -#endif - ZEND_ARG_INFO(0, total) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_statements_test544issue, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, step, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, step) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_statements_test544issuewithvariable, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, step, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, step) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_statements_method_entry) { - PHP_ME(Test_Statements, testPropertyAcccessAvoidTmpReuse, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Statements, testElseIf, arginfo_test_statements_testelseif, ZEND_ACC_PUBLIC) - PHP_ME(Test_Statements, testElseIf1, arginfo_test_statements_testelseif1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Statements, testElseIf2, arginfo_test_statements_testelseif2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Statements, test544Issue, arginfo_test_statements_test544issue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Statements, test544IssueWithVariable, arginfo_test_statements_test544issuewithvariable, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/strings.zep.h b/ext/test/strings.zep.h deleted file mode 100644 index d886cb88eb..0000000000 --- a/ext/test/strings.zep.h +++ /dev/null @@ -1,224 +0,0 @@ - -extern zend_class_entry *test_strings_ce; - -ZEPHIR_INIT_CLASS(Test_Strings); - -PHP_METHOD(Test_Strings, camelize); -PHP_METHOD(Test_Strings, uncamelize); -PHP_METHOD(Test_Strings, testTrim); -PHP_METHOD(Test_Strings, testRtrim); -PHP_METHOD(Test_Strings, testLtrim); -PHP_METHOD(Test_Strings, testTrim2Params); -PHP_METHOD(Test_Strings, testRtrim2Params); -PHP_METHOD(Test_Strings, testLtrim2Params); -PHP_METHOD(Test_Strings, testImplode); -PHP_METHOD(Test_Strings, testStrpos); -PHP_METHOD(Test_Strings, testStrposOffset); -PHP_METHOD(Test_Strings, testExplode); -PHP_METHOD(Test_Strings, testExplodeStr); -PHP_METHOD(Test_Strings, testExplodeLimit); -PHP_METHOD(Test_Strings, testSubstr); -PHP_METHOD(Test_Strings, testSubstr2); -PHP_METHOD(Test_Strings, testSubstr3); -PHP_METHOD(Test_Strings, testSubstr4); -PHP_METHOD(Test_Strings, testAddslashes); -PHP_METHOD(Test_Strings, testStripslashes); -PHP_METHOD(Test_Strings, testStripcslashes); -PHP_METHOD(Test_Strings, testHashEquals); -PHP_METHOD(Test_Strings, testHardcodedMultilineString); -PHP_METHOD(Test_Strings, testEchoMultilineString); -PHP_METHOD(Test_Strings, testTrimMultilineString); -PHP_METHOD(Test_Strings, testWellEscapedMultilineString); -PHP_METHOD(Test_Strings, testInternedString1); -PHP_METHOD(Test_Strings, testInternedString2); -PHP_METHOD(Test_Strings, strToHex); -PHP_METHOD(Test_Strings, issue1267); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_camelize, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, str) -#endif - ZEND_ARG_INFO(0, delimiter) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_uncamelize, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, str) -#endif - ZEND_ARG_INFO(0, delimiter) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testtrim, 0, 0, 1) - ZEND_ARG_INFO(0, str) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testrtrim, 0, 0, 1) - ZEND_ARG_INFO(0, str) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testltrim, 0, 0, 1) - ZEND_ARG_INFO(0, str) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testtrim2params, 0, 0, 2) - ZEND_ARG_INFO(0, str) - ZEND_ARG_INFO(0, charlist) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testrtrim2params, 0, 0, 2) - ZEND_ARG_INFO(0, str) - ZEND_ARG_INFO(0, charlist) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testltrim2params, 0, 0, 2) - ZEND_ARG_INFO(0, str) - ZEND_ARG_INFO(0, charlist) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testimplode, 0, 0, 2) - ZEND_ARG_INFO(0, glue) - ZEND_ARG_INFO(0, pieces) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_teststrpos, 0, 0, 2) - ZEND_ARG_INFO(0, haystack) - ZEND_ARG_INFO(0, needle) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_teststrposoffset, 0, 0, 3) - ZEND_ARG_INFO(0, haystack) - ZEND_ARG_INFO(0, needle) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, offset) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testexplode, 0, 0, 2) - ZEND_ARG_INFO(0, delimiter) - ZEND_ARG_INFO(0, str) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testexplodestr, 0, 0, 1) - ZEND_ARG_INFO(0, str) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testexplodelimit, 0, 0, 2) - ZEND_ARG_INFO(0, str) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, limit) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testsubstr, 0, 0, 3) - ZEND_ARG_INFO(0, str) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, from, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, from) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, len, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, len) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testsubstr2, 0, 0, 2) - ZEND_ARG_INFO(0, str) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, from, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, from) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testsubstr3, 0, 0, 1) - ZEND_ARG_INFO(0, str) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testsubstr4, 0, 0, 1) - ZEND_ARG_INFO(0, str) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_testaddslashes, 0, 0, 1) - ZEND_ARG_INFO(0, str) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_teststripslashes, 0, 0, 1) - ZEND_ARG_INFO(0, str) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_strings_teststripcslashes, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_strings_teststripcslashes, 0, 1, IS_STRING, NULL, 0) -#endif - ZEND_ARG_INFO(0, str) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_strings_testhashequals, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_strings_testhashequals, 0, 2, _IS_BOOL, NULL, 0) -#endif - ZEND_ARG_INFO(0, str1) - ZEND_ARG_INFO(0, str2) -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_strings_strtohex, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_strings_strtohex, 0, 1, IS_STRING, NULL, 0) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, value) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_strings_issue1267, 0, 0, 1) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_strings_method_entry) { - PHP_ME(Test_Strings, camelize, arginfo_test_strings_camelize, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, uncamelize, arginfo_test_strings_uncamelize, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testTrim, arginfo_test_strings_testtrim, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testRtrim, arginfo_test_strings_testrtrim, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testLtrim, arginfo_test_strings_testltrim, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testTrim2Params, arginfo_test_strings_testtrim2params, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testRtrim2Params, arginfo_test_strings_testrtrim2params, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testLtrim2Params, arginfo_test_strings_testltrim2params, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testImplode, arginfo_test_strings_testimplode, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testStrpos, arginfo_test_strings_teststrpos, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testStrposOffset, arginfo_test_strings_teststrposoffset, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testExplode, arginfo_test_strings_testexplode, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testExplodeStr, arginfo_test_strings_testexplodestr, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testExplodeLimit, arginfo_test_strings_testexplodelimit, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testSubstr, arginfo_test_strings_testsubstr, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testSubstr2, arginfo_test_strings_testsubstr2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testSubstr3, arginfo_test_strings_testsubstr3, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testSubstr4, arginfo_test_strings_testsubstr4, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testAddslashes, arginfo_test_strings_testaddslashes, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testStripslashes, arginfo_test_strings_teststripslashes, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testStripcslashes, arginfo_test_strings_teststripcslashes, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testHashEquals, arginfo_test_strings_testhashequals, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testHardcodedMultilineString, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testEchoMultilineString, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testTrimMultilineString, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testWellEscapedMultilineString, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testInternedString1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, testInternedString2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, strToHex, arginfo_test_strings_strtohex, ZEND_ACC_PUBLIC) - PHP_ME(Test_Strings, issue1267, arginfo_test_strings_issue1267, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/stubs.zep.h b/ext/test/stubs.zep.h deleted file mode 100644 index 83c795be0c..0000000000 --- a/ext/test/stubs.zep.h +++ /dev/null @@ -1,57 +0,0 @@ - -extern zend_class_entry *test_stubs_ce; - -ZEPHIR_INIT_CLASS(Test_Stubs); - -PHP_METHOD(Test_Stubs, testDockBlockAndReturnType); -PHP_METHOD(Test_Stubs, testDocBlockAndReturnTypeDeclared); -PHP_METHOD(Test_Stubs, testMixedInputParamsDocBlock); -PHP_METHOD(Test_Stubs, testMixedInputParamsDocBlockDeclared); - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_stubs_testdockblockandreturntype, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_stubs_testdockblockandreturntype, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_stubs_testdocblockandreturntypedeclared, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_stubs_testdocblockandreturntypedeclared, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_stubs_testmixedinputparamsdocblock, 0, 1, IS_LONG, 1) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_stubs_testmixedinputparamsdocblock, 0, 1, IS_LONG, NULL, 1) -#endif - ZEND_ARG_INFO(0, intOrString) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, number, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_stubs_testmixedinputparamsdocblockdeclared, 0, 1, IS_LONG, 1) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_stubs_testmixedinputparamsdocblockdeclared, 0, 1, IS_LONG, NULL, 1) -#endif - ZEND_ARG_INFO(0, intOrString) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, number, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_stubs_method_entry) { - PHP_ME(Test_Stubs, testDockBlockAndReturnType, arginfo_test_stubs_testdockblockandreturntype, ZEND_ACC_PUBLIC) - PHP_ME(Test_Stubs, testDocBlockAndReturnTypeDeclared, arginfo_test_stubs_testdocblockandreturntypedeclared, ZEND_ACC_PUBLIC) - PHP_ME(Test_Stubs, testMixedInputParamsDocBlock, arginfo_test_stubs_testmixedinputparamsdocblock, ZEND_ACC_PUBLIC) - PHP_ME(Test_Stubs, testMixedInputParamsDocBlockDeclared, arginfo_test_stubs_testmixedinputparamsdocblockdeclared, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/ternary.zep.h b/ext/test/ternary.zep.h deleted file mode 100644 index dbf0e8ce69..0000000000 --- a/ext/test/ternary.zep.h +++ /dev/null @@ -1,58 +0,0 @@ - -extern zend_class_entry *test_ternary_ce; - -ZEPHIR_INIT_CLASS(Test_Ternary); - -PHP_METHOD(Test_Ternary, testTernary1); -PHP_METHOD(Test_Ternary, testTernary2); -PHP_METHOD(Test_Ternary, testTernaryComplex1); -PHP_METHOD(Test_Ternary, testTernaryComplex2); -PHP_METHOD(Test_Ternary, testTernaryComplex3); -PHP_METHOD(Test_Ternary, testTernaryWithPromotedTemporaryVariable); -PHP_METHOD(Test_Ternary, testTernaryAfterLetVariable); -PHP_METHOD(Test_Ternary, testShortTernary); -PHP_METHOD(Test_Ternary, testShortTernaryComplex); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_ternary_testternary2, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, b, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, b) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_ternary_testternarycomplex1, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, y) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_ternary_testternarycomplex2, 0, 0, 2) - ZEND_ARG_INFO(0, a) - ZEND_ARG_INFO(0, y) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_ternary_testternarycomplex3, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_ternary_testshortternary, 0, 0, 1) - ZEND_ARG_INFO(0, a) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_ternary_testshortternarycomplex, 0, 0, 2) - ZEND_ARG_INFO(0, left) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_ternary_method_entry) { - PHP_ME(Test_Ternary, testTernary1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Ternary, testTernary2, arginfo_test_ternary_testternary2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Ternary, testTernaryComplex1, arginfo_test_ternary_testternarycomplex1, ZEND_ACC_PUBLIC) - PHP_ME(Test_Ternary, testTernaryComplex2, arginfo_test_ternary_testternarycomplex2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Ternary, testTernaryComplex3, arginfo_test_ternary_testternarycomplex3, ZEND_ACC_PUBLIC) - PHP_ME(Test_Ternary, testTernaryWithPromotedTemporaryVariable, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Ternary, testTernaryAfterLetVariable, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Ternary, testShortTernary, arginfo_test_ternary_testshortternary, ZEND_ACC_PUBLIC) - PHP_ME(Test_Ternary, testShortTernaryComplex, arginfo_test_ternary_testshortternarycomplex, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/testinterface.zep.c b/ext/test/testinterface.zep.c deleted file mode 100644 index 58e5c82f34..0000000000 --- a/ext/test/testinterface.zep.c +++ /dev/null @@ -1,37 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../ext_config.h" -#endif - -#include -#include "../php_ext.h" -#include "../ext.h" - -#include - -#include "kernel/main.h" - - -/** - * Sample exception class - */ -ZEPHIR_INIT_CLASS(Test_TestInterface) { - - ZEPHIR_REGISTER_INTERFACE(Test, TestInterface, test, testinterface, NULL); - - zephir_declare_class_constant_null(test_testinterface_ce, SL("C1")); - - zephir_declare_class_constant_bool(test_testinterface_ce, SL("C2"), 0); - - zephir_declare_class_constant_bool(test_testinterface_ce, SL("C3"), 1); - - zephir_declare_class_constant_long(test_testinterface_ce, SL("C4"), 10); - - zephir_declare_class_constant_double(test_testinterface_ce, SL("C5"), 10.25); - - zephir_declare_class_constant_string(test_testinterface_ce, SL("C6"), "test"); - - return SUCCESS; - -} - diff --git a/ext/test/testinterface.zep.h b/ext/test/testinterface.zep.h deleted file mode 100644 index d733414b44..0000000000 --- a/ext/test/testinterface.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_testinterface_ce; - -ZEPHIR_INIT_CLASS(Test_TestInterface); - diff --git a/ext/test/trytest.zep.h b/ext/test/trytest.zep.h deleted file mode 100644 index 766480da84..0000000000 --- a/ext/test/trytest.zep.h +++ /dev/null @@ -1,71 +0,0 @@ - -extern zend_class_entry *test_trytest_ce; - -ZEPHIR_INIT_CLASS(Test_TryTest); - -PHP_METHOD(Test_TryTest, testThrow1); -PHP_METHOD(Test_TryTest, testThrow2); -PHP_METHOD(Test_TryTest, testTry1); -PHP_METHOD(Test_TryTest, testTry2); -PHP_METHOD(Test_TryTest, testTry3); -PHP_METHOD(Test_TryTest, testTry4); -PHP_METHOD(Test_TryTest, testTry5); -PHP_METHOD(Test_TryTest, testTry6); -PHP_METHOD(Test_TryTest, testTry7); -PHP_METHOD(Test_TryTest, testTry8); -PHP_METHOD(Test_TryTest, someMethod1); -PHP_METHOD(Test_TryTest, someMethod2); -PHP_METHOD(Test_TryTest, testTry9); -PHP_METHOD(Test_TryTest, testTry10); -PHP_METHOD(Test_TryTest, testTry11); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_trytest_testtry4, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_trytest_testtry5, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_trytest_testtry6, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_trytest_testtry7, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, a, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, a) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_trytest_method_entry) { - PHP_ME(Test_TryTest, testThrow1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_TryTest, testThrow2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_TryTest, testTry1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_TryTest, testTry2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_TryTest, testTry3, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_TryTest, testTry4, arginfo_test_trytest_testtry4, ZEND_ACC_PUBLIC) - PHP_ME(Test_TryTest, testTry5, arginfo_test_trytest_testtry5, ZEND_ACC_PUBLIC) - PHP_ME(Test_TryTest, testTry6, arginfo_test_trytest_testtry6, ZEND_ACC_PUBLIC) - PHP_ME(Test_TryTest, testTry7, arginfo_test_trytest_testtry7, ZEND_ACC_PUBLIC) - PHP_ME(Test_TryTest, testTry8, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_TryTest, someMethod1, NULL, ZEND_ACC_PRIVATE) - PHP_ME(Test_TryTest, someMethod2, NULL, ZEND_ACC_PRIVATE) - PHP_ME(Test_TryTest, testTry9, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_TryTest, testTry10, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_TryTest, testTry11, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/typehinting/testabstract.zep.c b/ext/test/typehinting/testabstract.zep.c deleted file mode 100644 index aaabff7848..0000000000 --- a/ext/test/typehinting/testabstract.zep.c +++ /dev/null @@ -1,64 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../ext_config.h" -#endif - -#include -#include "../../php_ext.h" -#include "../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" - - -ZEPHIR_INIT_CLASS(Test_TypeHinting_TestAbstract) { - - ZEPHIR_REGISTER_CLASS(Test\\TypeHinting, TestAbstract, test, typehinting_testabstract, test_typehinting_testabstract_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS); - - return SUCCESS; - -} - -PHP_METHOD(Test_TypeHinting_TestAbstract, testFunc) { - -} - -PHP_METHOD(Test_TypeHinting_TestAbstract, returnOneOfScalar) { - -} - -PHP_METHOD(Test_TypeHinting_TestAbstract, returnInt) { - -} - -PHP_METHOD(Test_TypeHinting_TestAbstract, returnUint) { - -} - -PHP_METHOD(Test_TypeHinting_TestAbstract, returnLong) { - -} - -PHP_METHOD(Test_TypeHinting_TestAbstract, returnFloat) { - -} - -PHP_METHOD(Test_TypeHinting_TestAbstract, returnDouble) { - -} - -PHP_METHOD(Test_TypeHinting_TestAbstract, returnString) { - -} - -PHP_METHOD(Test_TypeHinting_TestAbstract, returnBoolean) { - -} - -PHP_METHOD(Test_TypeHinting_TestAbstract, returnChar) { - -} - diff --git a/ext/test/typehinting/testabstract.zep.h b/ext/test/typehinting/testabstract.zep.h deleted file mode 100644 index 6b104d57f0..0000000000 --- a/ext/test/typehinting/testabstract.zep.h +++ /dev/null @@ -1,104 +0,0 @@ - -extern zend_class_entry *test_typehinting_testabstract_ce; - -ZEPHIR_INIT_CLASS(Test_TypeHinting_TestAbstract); - -PHP_METHOD(Test_TypeHinting_TestAbstract, testFunc); -PHP_METHOD(Test_TypeHinting_TestAbstract, returnOneOfScalar); -PHP_METHOD(Test_TypeHinting_TestAbstract, returnInt); -PHP_METHOD(Test_TypeHinting_TestAbstract, returnUint); -PHP_METHOD(Test_TypeHinting_TestAbstract, returnLong); -PHP_METHOD(Test_TypeHinting_TestAbstract, returnFloat); -PHP_METHOD(Test_TypeHinting_TestAbstract, returnDouble); -PHP_METHOD(Test_TypeHinting_TestAbstract, returnString); -PHP_METHOD(Test_TypeHinting_TestAbstract, returnBoolean); -PHP_METHOD(Test_TypeHinting_TestAbstract, returnChar); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_typehinting_testabstract_testfunc, 0, 0, 0) - ZEND_ARG_ARRAY_INFO(0, text, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, text2, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, text2) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, flag, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, flag) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, optional, IS_LONG, 1) -#else - ZEND_ARG_INFO(0, optional) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnint, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnint, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnuint, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnuint, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnlong, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnlong, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnfloat, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnfloat, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returndouble, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returndouble, 0, 0, IS_DOUBLE, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnstring, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnstring, 0, 0, IS_STRING, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnboolean, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnboolean, 0, 0, _IS_BOOL, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 70200 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnchar, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_test_typehinting_testabstract_returnchar, 0, 0, IS_LONG, NULL, 0) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_typehinting_testabstract_method_entry) { - PHP_ME(Test_TypeHinting_TestAbstract, testFunc, arginfo_test_typehinting_testabstract_testfunc, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_TypeHinting_TestAbstract, returnOneOfScalar, NULL, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_TypeHinting_TestAbstract, returnInt, arginfo_test_typehinting_testabstract_returnint, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_TypeHinting_TestAbstract, returnUint, arginfo_test_typehinting_testabstract_returnuint, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_TypeHinting_TestAbstract, returnLong, arginfo_test_typehinting_testabstract_returnlong, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_TypeHinting_TestAbstract, returnFloat, arginfo_test_typehinting_testabstract_returnfloat, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_TypeHinting_TestAbstract, returnDouble, arginfo_test_typehinting_testabstract_returndouble, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_TypeHinting_TestAbstract, returnString, arginfo_test_typehinting_testabstract_returnstring, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_TypeHinting_TestAbstract, returnBoolean, arginfo_test_typehinting_testabstract_returnboolean, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_ME(Test_TypeHinting_TestAbstract, returnChar, arginfo_test_typehinting_testabstract_returnchar, ZEND_ACC_ABSTRACT|ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/typeinstances.zep.h b/ext/test/typeinstances.zep.h deleted file mode 100644 index 2718a5e74c..0000000000 --- a/ext/test/typeinstances.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_typeinstances_ce; - -ZEPHIR_INIT_CLASS(Test_TypeInstances); - -PHP_METHOD(Test_TypeInstances, testInstanceOfString1); -PHP_METHOD(Test_TypeInstances, testInstanceOfString2); -PHP_METHOD(Test_TypeInstances, testInstanceOfString3); - -ZEPHIR_INIT_FUNCS(test_typeinstances_method_entry) { - PHP_ME(Test_TypeInstances, testInstanceOfString1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_TypeInstances, testInstanceOfString2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_TypeInstances, testInstanceOfString3, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/typeoff.zep.h b/ext/test/typeoff.zep.h deleted file mode 100644 index fcfcdc8c2c..0000000000 --- a/ext/test/typeoff.zep.h +++ /dev/null @@ -1,43 +0,0 @@ - -extern zend_class_entry *test_typeoff_ce; - -ZEPHIR_INIT_CLASS(Test_Typeoff); - -PHP_METHOD(Test_Typeoff, testNativeStringFalse); -PHP_METHOD(Test_Typeoff, testNativeStringTrue); -PHP_METHOD(Test_Typeoff, testNativeIntFalse); -PHP_METHOD(Test_Typeoff, testNativeIntTrue); -PHP_METHOD(Test_Typeoff, testNativeDoubleTrue); -PHP_METHOD(Test_Typeoff, testNativeBoolTrue); -PHP_METHOD(Test_Typeoff, testNotBoolTrue); -PHP_METHOD(Test_Typeoff, testNativeBoolFalse); -PHP_METHOD(Test_Typeoff, testArrayFalse); -PHP_METHOD(Test_Typeoff, testArrayTrue); -PHP_METHOD(Test_Typeoff, testClassPropertyAccess); -PHP_METHOD(Test_Typeoff, testUnknownTypeOf); -PHP_METHOD(Test_Typeoff, testCallableTypeOf); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_typeoff_testunknowntypeof, 0, 0, 1) - ZEND_ARG_INFO(0, u) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_typeoff_testcallabletypeof, 0, 0, 1) - ZEND_ARG_INFO(0, cb) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_typeoff_method_entry) { - PHP_ME(Test_Typeoff, testNativeStringFalse, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Typeoff, testNativeStringTrue, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Typeoff, testNativeIntFalse, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Typeoff, testNativeIntTrue, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Typeoff, testNativeDoubleTrue, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Typeoff, testNativeBoolTrue, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Typeoff, testNotBoolTrue, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Typeoff, testNativeBoolFalse, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Typeoff, testArrayFalse, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Typeoff, testArrayTrue, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Typeoff, testClassPropertyAccess, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Typeoff, testUnknownTypeOf, arginfo_test_typeoff_testunknowntypeof, ZEND_ACC_PUBLIC) - PHP_ME(Test_Typeoff, testCallableTypeOf, arginfo_test_typeoff_testcallabletypeof, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/unknownclass.zep.h b/ext/test/unknownclass.zep.h deleted file mode 100644 index 2ad0c13e78..0000000000 --- a/ext/test/unknownclass.zep.h +++ /dev/null @@ -1,5 +0,0 @@ - -extern zend_class_entry *test_unknownclass_ce; - -ZEPHIR_INIT_CLASS(Test_UnknownClass); - diff --git a/ext/test/unsettest.zep.h b/ext/test/unsettest.zep.h deleted file mode 100644 index 8ba0537f4b..0000000000 --- a/ext/test/unsettest.zep.h +++ /dev/null @@ -1,58 +0,0 @@ - -extern zend_class_entry *test_unsettest_ce; - -ZEPHIR_INIT_CLASS(Test_Unsettest); - -PHP_METHOD(Test_Unsettest, getProperty); -PHP_METHOD(Test_Unsettest, has); -PHP_METHOD(Test_Unsettest, addValueToProperty); -PHP_METHOD(Test_Unsettest, testUnsetValueFromProperty); -PHP_METHOD(Test_Unsettest, testUnsetFromArray); -PHP_METHOD(Test_Unsettest, testUnsetFromArrayByIndexVar); -PHP_METHOD(Test_Unsettest, testUnsetProperty); -PHP_METHOD(Test_Unsettest, testStdClassUnset); -PHP_METHOD(Test_Unsettest, testUnsetTypedArray); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_unsettest_has, 0, 0, 1) - ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_unsettest_addvaluetoproperty, 0, 0, 2) - ZEND_ARG_INFO(0, key) - ZEND_ARG_INFO(0, value) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_unsettest_testunsetvaluefromproperty, 0, 0, 1) - ZEND_ARG_INFO(0, key) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_unsettest_testunsetfromarray, 0, 0, 1) - ZEND_ARG_INFO(0, arrayParameter) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_unsettest_testunsetfromarraybyindexvar, 0, 0, 2) - ZEND_ARG_INFO(0, arrayParameter) - ZEND_ARG_INFO(0, index) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_unsettest_testunsettypedarray, 0, 0, 2) - ZEND_ARG_ARRAY_INFO(0, arr, 0) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_unsettest_method_entry) { - PHP_ME(Test_Unsettest, getProperty, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Unsettest, has, arginfo_test_unsettest_has, ZEND_ACC_PUBLIC) - PHP_ME(Test_Unsettest, addValueToProperty, arginfo_test_unsettest_addvaluetoproperty, ZEND_ACC_PUBLIC) - PHP_ME(Test_Unsettest, testUnsetValueFromProperty, arginfo_test_unsettest_testunsetvaluefromproperty, ZEND_ACC_PUBLIC) - PHP_ME(Test_Unsettest, testUnsetFromArray, arginfo_test_unsettest_testunsetfromarray, ZEND_ACC_PUBLIC) - PHP_ME(Test_Unsettest, testUnsetFromArrayByIndexVar, arginfo_test_unsettest_testunsetfromarraybyindexvar, ZEND_ACC_PUBLIC) - PHP_ME(Test_Unsettest, testUnsetProperty, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Unsettest, testStdClassUnset, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Unsettest, testUnsetTypedArray, arginfo_test_unsettest_testunsettypedarray, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/usetest.zep.h b/ext/test/usetest.zep.h deleted file mode 100644 index 90343084d5..0000000000 --- a/ext/test/usetest.zep.h +++ /dev/null @@ -1,19 +0,0 @@ - -extern zend_class_entry *test_usetest_ce; - -ZEPHIR_INIT_CLASS(Test_UseTest); - -PHP_METHOD(Test_UseTest, createInstance); -PHP_METHOD(Test_UseTest, count); -PHP_METHOD(Test_UseTest, testUseClass1); -PHP_METHOD(Test_UseTest, testUseClass2); -PHP_METHOD(Test_UseTest, testUseNamespaceAlias); - -ZEPHIR_INIT_FUNCS(test_usetest_method_entry) { - PHP_ME(Test_UseTest, createInstance, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_UseTest, count, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_UseTest, testUseClass1, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_UseTest, testUseClass2, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_UseTest, testUseNamespaceAlias, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/vars.zep.h b/ext/test/vars.zep.h deleted file mode 100644 index dc1c8cd5c0..0000000000 --- a/ext/test/vars.zep.h +++ /dev/null @@ -1,90 +0,0 @@ - -extern zend_class_entry *test_vars_ce; - -ZEPHIR_INIT_CLASS(Test_Vars); - -PHP_METHOD(Test_Vars, testParam); -PHP_METHOD(Test_Vars, testVarDump); -PHP_METHOD(Test_Vars, testVarDump2); -PHP_METHOD(Test_Vars, testVarExport); -PHP_METHOD(Test_Vars, test88Issue); -PHP_METHOD(Test_Vars, test88IssueParam2InitString); -PHP_METHOD(Test_Vars, testVarDump2param); -PHP_METHOD(Test_Vars, testVarDump3param); -PHP_METHOD(Test_Vars, testCountOptimizerVarDumpAndExport); -PHP_METHOD(Test_Vars, testArrayTypeVarDumpAndExport); -PHP_METHOD(Test_Vars, testIntVarDump); -PHP_METHOD(Test_Vars, testDoubleVarDump); -PHP_METHOD(Test_Vars, testBoolVarDump); -PHP_METHOD(Test_Vars, testGetDefinedVars); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_vars_testparam, 0, 0, 1) - ZEND_ARG_ARRAY_INFO(0, config, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_vars_testvardump2, 0, 0, 1) - ZEND_ARG_INFO(0, ret) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_vars_test88issue, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, param1, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, param1) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, param2, IS_STRING, 1) -#else - ZEND_ARG_INFO(0, param2) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_vars_test88issueparam2initstring, 0, 0, 1) -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, param1, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, param1) -#endif -#if PHP_VERSION_ID >= 70200 - ZEND_ARG_TYPE_INFO(0, param2, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, param2) -#endif -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_vars_testvardump2param, 0, 0, 2) - ZEND_ARG_INFO(0, p1) - ZEND_ARG_INFO(0, p2) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_vars_testvardump3param, 0, 0, 3) - ZEND_ARG_INFO(0, p1) - ZEND_ARG_INFO(0, p2) - ZEND_ARG_INFO(0, p3) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_vars_testcountoptimizervardumpandexport, 0, 0, 1) - ZEND_ARG_INFO(0, testVar) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_vars_testarraytypevardumpandexport, 0, 0, 0) - ZEND_ARG_ARRAY_INFO(0, testVar, 0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_vars_method_entry) { - PHP_ME(Test_Vars, testParam, arginfo_test_vars_testparam, ZEND_ACC_PUBLIC) - PHP_ME(Test_Vars, testVarDump, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Vars, testVarDump2, arginfo_test_vars_testvardump2, ZEND_ACC_PUBLIC) - PHP_ME(Test_Vars, testVarExport, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Vars, test88Issue, arginfo_test_vars_test88issue, ZEND_ACC_PUBLIC) - PHP_ME(Test_Vars, test88IssueParam2InitString, arginfo_test_vars_test88issueparam2initstring, ZEND_ACC_PUBLIC) - PHP_ME(Test_Vars, testVarDump2param, arginfo_test_vars_testvardump2param, ZEND_ACC_PUBLIC) - PHP_ME(Test_Vars, testVarDump3param, arginfo_test_vars_testvardump3param, ZEND_ACC_PUBLIC) - PHP_ME(Test_Vars, testCountOptimizerVarDumpAndExport, arginfo_test_vars_testcountoptimizervardumpandexport, ZEND_ACC_PUBLIC) - PHP_ME(Test_Vars, testArrayTypeVarDumpAndExport, arginfo_test_vars_testarraytypevardumpandexport, ZEND_ACC_PUBLIC) - PHP_ME(Test_Vars, testIntVarDump, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Vars, testDoubleVarDump, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Vars, testBoolVarDump, NULL, ZEND_ACC_PUBLIC) - PHP_ME(Test_Vars, testGetDefinedVars, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/kernels/ZendEngine3/math.c b/kernels/ZendEngine3/math.c index 1a291a1571..0b0f7eeb12 100644 --- a/kernels/ZendEngine3/math.c +++ b/kernels/ZendEngine3/math.c @@ -195,7 +195,7 @@ zephir_mt_rand(zend_long min, zend_long max) zend_long number; if (max < min) { - php_error_docref(NULL, E_WARNING, "max(%lld) is smaller than min(%lld)", max, min); + php_error_docref(NULL, E_WARNING, "max(%ld) is smaller than min(%ld)", max, min); return 0; } diff --git a/kernels/ZendEngine3/object.c b/kernels/ZendEngine3/object.c index ba83458ced..0cb92673fd 100644 --- a/kernels/ZendEngine3/object.c +++ b/kernels/ZendEngine3/object.c @@ -436,31 +436,84 @@ int zephir_isset_property_zval(zval *object, const zval *property) return 0; } +/** + * Lookup for the real owner of the property + */ static inline zend_class_entry *zephir_lookup_class_ce(zend_class_entry *ce, const char *property_name, unsigned int property_length) { zend_class_entry *original_ce = ce; zend_property_info *info; + zend_class_entry *scope; + zval member; + + ZVAL_STRINGL(&member, property_name, property_length); + + /* Backup current scope */ + scope = zephir_get_scope(0); while (ce) { - info = zend_hash_str_find_ptr(&ce->properties_info, property_name, property_length); + /* Use the scope of the current object */ + zephir_set_scope(ce); + + info = zend_get_property_info(ce, Z_STR(member), 1); + if (info && info != ZEND_WRONG_PROPERTY_INFO) { + zval_ptr_dtor(&member); + /* Restore original scope */ + zephir_set_scope(scope); -#if PHP_VERSION_ID < 70400 - if (info != NULL && (info->flags & ZEND_ACC_SHADOW) != ZEND_ACC_SHADOW) { - return ce; - } -#else - if (info != NULL) { return ce; } -#endif + ce = ce->parent; } + zval_ptr_dtor(&member); + + /* Restore original scope */ + zephir_set_scope(scope); + return original_ce; } +/** + * Checks whether obj is an object and reads a property from this object. + * + * This function is intended to use in initializer. Do not use it for a + * regular property updating. + */ +int zephir_read_property_ex(zval *result, zval *object, const char *property_name, + uint32_t property_length, int flags) +{ + zend_class_entry *scope; + int retval; + + if (Z_TYPE_P(object) == IS_OBJECT) { + zend_class_entry *ce; + + /* Backup current scope */ + scope = zephir_get_scope(0); + ce = Z_OBJCE_P(object); + + /* Lookup for the real owner of the property */ + if (ce->parent) { + ce = zephir_lookup_class_ce(ce, property_name, property_length); + } + + /* Use the scope of the found object */ + zephir_set_scope(ce); + } + /* Read the property */ + retval = zephir_read_property(result, object, property_name, property_length, flags); + + if (Z_TYPE_P(object) == IS_OBJECT) { + /* Restore original scope */ + zephir_set_scope(scope); + } + + return retval; +} /** * Checks whether obj is an object and reads a property from this object @@ -543,8 +596,7 @@ int zephir_fetch_property_zval(zval *result, zval *object, zval *property, int s int zephir_return_property(zval *return_value, zval *object, char *property_name, unsigned int property_length) { ZVAL_NULL(return_value); - zephir_read_property(return_value, object, property_name, property_length, 0); - return SUCCESS; + return zephir_read_property(return_value, object, property_name, property_length, 0); } /** @@ -564,6 +616,44 @@ int zephir_read_property_zval(zval *result, zval *object, zval *property, int fl return zephir_read_property(result, object, Z_STRVAL_P(property), Z_STRLEN_P(property), flags); } +/** + * Checks whether obj is an object and updates property with another zval. + * + * This function is intended to use in initializer. Do not use it for a + * regular property updating. + */ +int zephir_update_property_zval_ex(zval *object, const char *property_name, + unsigned int property_length, zval *value) +{ + zend_class_entry *scope; + int retval; + + if (Z_TYPE_P(object) == IS_OBJECT) { + zend_class_entry *ce; + + /* Backup current scope */ + scope = zephir_get_scope(0); + ce = Z_OBJCE_P(object); + + /* Lookup for the real owner of the property */ + if (ce->parent) { + ce = zephir_lookup_class_ce(ce, property_name, property_length); + } + + /* Use the scope of the found object */ + zephir_set_scope(ce); + } + /* Update the property */ + retval = zephir_update_property_zval(object, property_name, property_length, value); + + if (Z_TYPE_P(object) == IS_OBJECT) { + /* Restore original scope */ + zephir_set_scope(scope); + } + + return retval; +} + /** * Checks whether obj is an object and updates property with another zval */ @@ -601,6 +691,10 @@ int zephir_update_property_zval(zval *object, const char *property_name, Z_OBJ_HT_P(object)->write_property(object, &property, &sep_value, 0); zval_ptr_dtor(&property); + if (UNEXPECTED(EG(exception))) { + return FAILURE; + } + return SUCCESS; } @@ -691,7 +785,6 @@ int zephir_update_property_array(zval *object, const char *property, uint32_t pr return SUCCESS; } - /** * Appends a zval value to an array property */ diff --git a/kernels/ZendEngine3/object.h b/kernels/ZendEngine3/object.h index 8cff2c60f8..36598823f3 100644 --- a/kernels/ZendEngine3/object.h +++ b/kernels/ZendEngine3/object.h @@ -51,6 +51,7 @@ int zephir_isset_property(zval *object, const char *property_name, unsigned int int zephir_isset_property_zval(zval *object, const zval *property); /** Reading properties */ +int zephir_read_property_ex(zval *result, zval *object, const char *property_name, uint32_t property_length, int silent); int zephir_read_property(zval *result, zval *object, const char *property_name, uint32_t property_length, int silent); int zephir_read_property_zval(zval *result, zval *object, zval *property, int silent); int zephir_return_property(zval *return_value, zval *object, char *property_name, unsigned int property_length); @@ -58,6 +59,7 @@ int zephir_fetch_property(zval *result, zval *object, const char *property_name, int zephir_fetch_property_zval(zval *result, zval *object, zval *property, int silent); /** Updating properties */ +int zephir_update_property_zval_ex(zval *obj, const char *property_name, unsigned int property_length, zval *value); int zephir_update_property_zval(zval *obj, const char *property_name, unsigned int property_length, zval *value); int zephir_update_property_zval_zval(zval *obj, zval *property, zval *value); diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 8b4e3508d6..c237e93b78 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -40,13 +40,14 @@ --> Library - - + + prototypes/* - unit-tests/fixtures/* + stub/* + tests/fixtures/* diff --git a/phpmd.xml.dist b/phpmd.xml.dist index 81a0accea2..4becb306ef 100644 --- a/phpmd.xml.dist +++ b/phpmd.xml.dist @@ -11,7 +11,8 @@ ide/* ext/* prototypes/* - unit-tests/* + stub/* + tests/* vendor/* diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1270d9e973..e0e2f8a651 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -11,21 +11,21 @@ - ./unit-tests/Extension - unit-tests/Extension/Php56 - unit-tests/Extension/Php72 + ./tests/Extension + tests/Extension/Php56 + tests/Extension/Php72 - ./unit-tests/Extension - unit-tests/Extension/Php56 - unit-tests/Extension/Php70 + ./tests/Extension + tests/Extension/Php56 + tests/Extension/Php70 - ./unit-tests/Zephir - unit-tests/Zephir/Test/KernelTestCase.php + ./tests/Zephir + tests/Zephir/KernelTestCase.php @@ -42,16 +42,16 @@ - - - + + + - - + + diff --git a/test/arithmetic.zep b/stub/arithmetic.zep similarity index 99% rename from test/arithmetic.zep rename to stub/arithmetic.zep index dcdbd57ff8..3313e1462a 100644 --- a/test/arithmetic.zep +++ b/stub/arithmetic.zep @@ -3,7 +3,7 @@ * Arithmetic operations */ -namespace Test; +namespace Stub; class Arithmetic { diff --git a/test/arrayaccessobj.zep b/stub/arrayaccessobj.zep similarity index 97% rename from test/arrayaccessobj.zep rename to stub/arrayaccessobj.zep index 089ad823e5..1e980180d7 100644 --- a/test/arrayaccessobj.zep +++ b/stub/arrayaccessobj.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class ArrayAccessObj implements \ArrayAccess { diff --git a/test/arrayaccesstest.zep b/stub/arrayaccesstest.zep similarity index 93% rename from test/arrayaccesstest.zep rename to stub/arrayaccesstest.zep index 98635b6a54..30c52dda48 100644 --- a/test/arrayaccesstest.zep +++ b/stub/arrayaccesstest.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class ArrayAccessTest { diff --git a/test/arrayiterator.zep b/stub/arrayiterator.zep similarity index 97% rename from test/arrayiterator.zep rename to stub/arrayiterator.zep index 3175a5ebdc..e741a0a0bd 100644 --- a/test/arrayiterator.zep +++ b/stub/arrayiterator.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class ArrayIterator implements \Iterator { diff --git a/test/arrayiteratortest.zep b/stub/arrayiteratortest.zep similarity index 90% rename from test/arrayiteratortest.zep rename to stub/arrayiteratortest.zep index 37a05cb896..750d3e7cfb 100644 --- a/test/arrayiteratortest.zep +++ b/stub/arrayiteratortest.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class ArrayIteratorTest { diff --git a/test/arrayobject.zep b/stub/arrayobject.zep similarity index 73% rename from test/arrayobject.zep rename to stub/arrayobject.zep index 700495423c..e128c33e9f 100644 --- a/test/arrayobject.zep +++ b/stub/arrayobject.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class ArrayObject extends \ArrayObject { diff --git a/test/arraysearch.zep b/stub/arraysearch.zep similarity index 96% rename from test/arraysearch.zep rename to stub/arraysearch.zep index ca5b34e86b..2ba718d315 100644 --- a/test/arraysearch.zep +++ b/stub/arraysearch.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class ArraySearch { diff --git a/test/assign.zep b/stub/assign.zep similarity index 99% rename from test/assign.zep rename to stub/assign.zep index 105068f803..559f834aae 100644 --- a/test/assign.zep +++ b/stub/assign.zep @@ -3,7 +3,7 @@ * Control Flow */ -namespace Test; +namespace Stub; class Assign { diff --git a/test/bench/foo.zep b/stub/bench/foo.zep similarity index 98% rename from test/bench/foo.zep rename to stub/bench/foo.zep index 52d70c3631..402e12750d 100644 --- a/test/bench/foo.zep +++ b/stub/bench/foo.zep @@ -1,5 +1,5 @@ -namespace Test\Bench; +namespace Stub\Bench; class Foo { diff --git a/test/bitwise.zep b/stub/bitwise.zep similarity index 99% rename from test/bitwise.zep rename to stub/bitwise.zep index dba64d3988..9fc335847c 100644 --- a/test/bitwise.zep +++ b/stub/bitwise.zep @@ -2,7 +2,7 @@ * Arithmetic operations */ -namespace Test; +namespace Stub; class Bitwise { diff --git a/test/branchprediction.zep b/stub/branchprediction.zep similarity index 96% rename from test/branchprediction.zep rename to stub/branchprediction.zep index 7cd0afdc64..6b83aabf44 100644 --- a/test/branchprediction.zep +++ b/stub/branchprediction.zep @@ -3,7 +3,7 @@ * OO operations */ -namespace Test; +namespace Stub; class BranchPrediction { diff --git a/test/builtin/arraymethods.zep b/stub/builtin/arraymethods.zep similarity index 89% rename from test/builtin/arraymethods.zep rename to stub/builtin/arraymethods.zep index a8e0cb4e4e..e2daaa5fb1 100644 --- a/test/builtin/arraymethods.zep +++ b/stub/builtin/arraymethods.zep @@ -1,5 +1,5 @@ -namespace Test\BuiltIn; +namespace Stub\BuiltIn; class ArrayMethods { @@ -17,4 +17,4 @@ class ArrayMethods { return [1, 2, 3]->map(x => x * 100); } -} \ No newline at end of file +} diff --git a/test/builtin/charmethods.zep b/stub/builtin/charmethods.zep similarity index 89% rename from test/builtin/charmethods.zep rename to stub/builtin/charmethods.zep index 5a443d0b28..416b5a65ca 100644 --- a/test/builtin/charmethods.zep +++ b/stub/builtin/charmethods.zep @@ -1,5 +1,5 @@ -namespace Test\BuiltIn; +namespace Stub\BuiltIn; class CharMethods { @@ -18,4 +18,4 @@ class CharMethods } return o; } -} \ No newline at end of file +} diff --git a/test/builtin/intmethods.zep b/stub/builtin/intmethods.zep similarity index 97% rename from test/builtin/intmethods.zep rename to stub/builtin/intmethods.zep index e4909ce0fa..e026dba9c4 100644 --- a/test/builtin/intmethods.zep +++ b/stub/builtin/intmethods.zep @@ -1,5 +1,5 @@ -namespace Test\BuiltIn; +namespace Stub\BuiltIn; class IntMethods { @@ -80,4 +80,4 @@ class IntMethods } return num->log(base); } -} \ No newline at end of file +} diff --git a/test/builtin/stringmethods.zep b/stub/builtin/stringmethods.zep similarity index 99% rename from test/builtin/stringmethods.zep rename to stub/builtin/stringmethods.zep index b28469b2c4..398af036bc 100644 --- a/test/builtin/stringmethods.zep +++ b/stub/builtin/stringmethods.zep @@ -1,5 +1,5 @@ -namespace Test\BuiltIn; +namespace Stub\BuiltIn; class StringMethods { diff --git a/test/cast.zep b/stub/cast.zep similarity index 99% rename from test/cast.zep rename to stub/cast.zep index 064cdd62ca..626cdea05f 100644 --- a/test/cast.zep +++ b/stub/cast.zep @@ -3,7 +3,7 @@ * Cast tests */ -namespace Test; +namespace Stub; class Cast { diff --git a/test/cblock.zep b/stub/cblock.zep similarity index 97% rename from test/cblock.zep rename to stub/cblock.zep index 34711c0cce..8953d273e3 100644 --- a/test/cblock.zep +++ b/stub/cblock.zep @@ -8,7 +8,7 @@ #define MAX_FACTOR 10 }% -namespace Test; +namespace Stub; %{ // top statement before class, add to after headers diff --git a/test/chars.zep b/stub/chars.zep similarity index 97% rename from test/chars.zep rename to stub/chars.zep index eb4168ed2a..896589af1d 100644 --- a/test/chars.zep +++ b/stub/chars.zep @@ -3,7 +3,7 @@ * Chars specific tests */ -namespace Test; +namespace Stub; class Chars { diff --git a/test/closures.zep b/stub/closures.zep similarity index 97% rename from test/closures.zep rename to stub/closures.zep index ff2436752f..e104948c9c 100644 --- a/test/closures.zep +++ b/stub/closures.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Closures { diff --git a/test/compare.zep b/stub/compare.zep similarity index 98% rename from test/compare.zep rename to stub/compare.zep index cf360deffc..c927bc11b8 100644 --- a/test/compare.zep +++ b/stub/compare.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class Compare { @@ -89,4 +89,4 @@ class Compare return 0 != a; } -} \ No newline at end of file +} diff --git a/test/concat.zep b/stub/concat.zep similarity index 98% rename from test/concat.zep rename to stub/concat.zep index 17ce3fe547..c8dbb38a3e 100644 --- a/test/concat.zep +++ b/stub/concat.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Concat { diff --git a/test/constants.zep b/stub/constants.zep similarity index 99% rename from test/constants.zep rename to stub/constants.zep index e957b936f0..17621670b7 100644 --- a/test/constants.zep +++ b/stub/constants.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class Constants extends ConstantsParent { diff --git a/test/constantsinterface.zep b/stub/constantsinterface.zep similarity index 98% rename from test/constantsinterface.zep rename to stub/constantsinterface.zep index 7abed3b32f..0c6eafed0c 100644 --- a/test/constantsinterface.zep +++ b/stub/constantsinterface.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class ConstantsInterface implements TestInterface { diff --git a/test/constantsinterfacea.zep b/stub/constantsinterfacea.zep similarity index 97% rename from test/constantsinterfacea.zep rename to stub/constantsinterfacea.zep index 52ad0de82a..f0e44a0b0b 100644 --- a/test/constantsinterfacea.zep +++ b/stub/constantsinterfacea.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class ConstantsInterfaceA implements TestInterface { diff --git a/test/constantsinterfaceb.zep b/stub/constantsinterfaceb.zep similarity index 97% rename from test/constantsinterfaceb.zep rename to stub/constantsinterfaceb.zep index 5b037255cf..b534281017 100644 --- a/test/constantsinterfaceb.zep +++ b/stub/constantsinterfaceb.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class ConstantsInterfaceB implements TestInterface { diff --git a/test/constantsparent.zep b/stub/constantsparent.zep similarity index 88% rename from test/constantsparent.zep rename to stub/constantsparent.zep index 54b1739b1c..072fcad095 100644 --- a/test/constantsparent.zep +++ b/stub/constantsparent.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class ConstantsParent { @@ -16,4 +16,4 @@ class ConstantsParent const P6 = "test"; -} \ No newline at end of file +} diff --git a/test/declaretest.zep b/stub/declaretest.zep similarity index 98% rename from test/declaretest.zep rename to stub/declaretest.zep index 50649e8157..faa9d9cb05 100644 --- a/test/declaretest.zep +++ b/stub/declaretest.zep @@ -3,7 +3,7 @@ * Variable declaration */ -namespace Test; +namespace Stub; class DeclareTest { diff --git a/test/diinterface.zep b/stub/diinterface.zep similarity index 77% rename from test/diinterface.zep rename to stub/diinterface.zep index a23882737e..d70f45f019 100644 --- a/test/diinterface.zep +++ b/stub/diinterface.zep @@ -1,6 +1,6 @@ -namespace Test; +namespace Stub; interface DiInterface { public function getShared(value); -} \ No newline at end of file +} diff --git a/test/echoes.zep b/stub/echoes.zep similarity index 94% rename from test/echoes.zep rename to stub/echoes.zep index d7ef9346aa..fa40bb3824 100644 --- a/test/echoes.zep +++ b/stub/echoes.zep @@ -3,7 +3,7 @@ * Printing output */ -namespace Test; +namespace Stub; class Echoes { @@ -31,4 +31,4 @@ class Echoes { echo "hello"; } -} \ No newline at end of file +} diff --git a/test/emptytest.zep b/stub/emptytest.zep similarity index 97% rename from test/emptytest.zep rename to stub/emptytest.zep index 491958a671..66e3daeeff 100644 --- a/test/emptytest.zep +++ b/stub/emptytest.zep @@ -3,7 +3,7 @@ * Control Flow */ -namespace Test; +namespace Stub; /** * @link http://ru2.php.net/empty diff --git a/test/evaltest.zep b/stub/evaltest.zep similarity index 86% rename from test/evaltest.zep rename to stub/evaltest.zep index 746831e77d..f7b2525e27 100644 --- a/test/evaltest.zep +++ b/stub/evaltest.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class EvalTest { diff --git a/test/exception.zep b/stub/exception.zep similarity index 93% rename from test/exception.zep rename to stub/exception.zep index c42049e172..09caa00d7d 100644 --- a/test/exception.zep +++ b/stub/exception.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; /** * Sample exception class diff --git a/test/exceptions.zep b/stub/exceptions.zep similarity index 99% rename from test/exceptions.zep rename to stub/exceptions.zep index 5446507ab7..ca32e2bca8 100644 --- a/test/exceptions.zep +++ b/stub/exceptions.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Exceptions { diff --git a/test/exists.zep b/stub/exists.zep similarity index 96% rename from test/exists.zep rename to stub/exists.zep index 672f8c9cb4..1d3f01e5c3 100644 --- a/test/exists.zep +++ b/stub/exists.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Exists { diff --git a/test/exitdie.zep b/stub/exitdie.zep similarity index 93% rename from test/exitdie.zep rename to stub/exitdie.zep index f7ab30dd8f..ec06a88077 100644 --- a/test/exitdie.zep +++ b/stub/exitdie.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class ExitDie { diff --git a/test/extendedinterface.zep b/stub/extendedinterface.zep similarity index 82% rename from test/extendedinterface.zep rename to stub/extendedinterface.zep index 0a3c1141eb..d9144a9f6c 100644 --- a/test/extendedinterface.zep +++ b/stub/extendedinterface.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; interface ExtendedInterface extends \IteratorAggregate, \Countable { diff --git a/test/factorial.zep b/stub/factorial.zep similarity index 95% rename from test/factorial.zep rename to stub/factorial.zep index 235fc7fc0c..31b0e932d1 100644 --- a/test/factorial.zep +++ b/stub/factorial.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Factorial { diff --git a/test/fannkuch.zep b/stub/fannkuch.zep similarity index 97% rename from test/fannkuch.zep rename to stub/fannkuch.zep index a317ad060f..d685e8742d 100644 --- a/test/fannkuch.zep +++ b/stub/fannkuch.zep @@ -1,8 +1,8 @@ -namespace Test; +namespace Stub; /** - * Test\Fannkuch + * Stub\Fannkuch * * Fannkuch Redux in Zephir * diff --git a/test/fasta.zep b/stub/fasta.zep similarity index 99% rename from test/fasta.zep rename to stub/fasta.zep index 198c865f91..f6a5707308 100644 --- a/test/fasta.zep +++ b/stub/fasta.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Fasta { diff --git a/test/fcall.zep b/stub/fcall.zep similarity index 96% rename from test/fcall.zep rename to stub/fcall.zep index 76243023f9..1b8b4ebd1e 100644 --- a/test/fcall.zep +++ b/stub/fcall.zep @@ -18,9 +18,9 @@ function zephir_global_method_with_type_casting(<\stdClass> variable) return variable; } -namespace Test; +namespace Stub; -use Test\Oo\PropertyAccess; +use Stub\Oo\PropertyAccess; /** * Test function declaration in namespace @@ -40,7 +40,7 @@ function zephir_namespaced_method_with_type_casting(<\stdClass> variable) return variable; } -function test_call_object_hint(<\Test\Oo\PropertyAccess> a) -> boolean +function test_call_object_hint(<\Stub\Oo\PropertyAccess> a) -> boolean { return true; } diff --git a/test/fetchtest.zep b/stub/fetchtest.zep similarity index 98% rename from test/fetchtest.zep rename to stub/fetchtest.zep index d4e102e16f..8c7c08f948 100644 --- a/test/fetchtest.zep +++ b/stub/fetchtest.zep @@ -3,7 +3,7 @@ * Fetch statement tests */ -namespace Test; +namespace Stub; class FetchTest { diff --git a/test/fibonnaci.zep b/stub/fibonnaci.zep similarity index 98% rename from test/fibonnaci.zep rename to stub/fibonnaci.zep index ff9efdcf35..0df5582ef0 100644 --- a/test/fibonnaci.zep +++ b/stub/fibonnaci.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Fibonnaci { diff --git a/test/flow.zep b/stub/flow.zep similarity index 99% rename from test/flow.zep rename to stub/flow.zep index 500338e8b1..f3012f8092 100644 --- a/test/flow.zep +++ b/stub/flow.zep @@ -3,7 +3,7 @@ * Control Flow */ -namespace Test; +namespace Stub; class Flow { diff --git a/test/flow/switchflow.zep b/stub/flow/switchflow.zep similarity index 99% rename from test/flow/switchflow.zep rename to stub/flow/switchflow.zep index 5ad8a82fe8..3efea87a47 100644 --- a/test/flow/switchflow.zep +++ b/stub/flow/switchflow.zep @@ -1,4 +1,4 @@ -namespace Test\Flow; +namespace Stub\Flow; class SwitchFlow { diff --git a/test/fortytwo.zep b/stub/fortytwo.zep similarity index 96% rename from test/fortytwo.zep rename to stub/fortytwo.zep index a50d0c1687..2426686bc4 100644 --- a/test/fortytwo.zep +++ b/stub/fortytwo.zep @@ -3,7 +3,7 @@ * FortyTwo */ -namespace Test; +namespace Stub; class FortyTwo { diff --git a/test/functional.zep b/stub/functional.zep similarity index 90% rename from test/functional.zep rename to stub/functional.zep index d94a4cebcf..d072eb70ae 100644 --- a/test/functional.zep +++ b/stub/functional.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Functional { diff --git a/test/functionexists.zep b/stub/functionexists.zep similarity index 97% rename from test/functionexists.zep rename to stub/functionexists.zep index 65df2ccbc2..f782698fb7 100644 --- a/test/functionexists.zep +++ b/stub/functionexists.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class FunctionExists { diff --git a/test/geometry.zep b/stub/geometry.zep similarity index 97% rename from test/geometry.zep rename to stub/geometry.zep index eda8b629d2..3844bcb55d 100644 --- a/test/geometry.zep +++ b/stub/geometry.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Geometry { diff --git a/test/globals.zep b/stub/globals.zep similarity index 98% rename from test/globals.zep rename to stub/globals.zep index 81dd67bb94..bd8c2f302b 100644 --- a/test/globals.zep +++ b/stub/globals.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Globals { diff --git a/test/globals/env.zep b/stub/globals/env.zep similarity index 77% rename from test/globals/env.zep rename to stub/globals/env.zep index 50e492efd8..2c95508ef0 100644 --- a/test/globals/env.zep +++ b/stub/globals/env.zep @@ -1,5 +1,5 @@ -namespace Test\Globals; +namespace Stub\Globals; class Env { diff --git a/test/globals/post.zep b/stub/globals/post.zep similarity index 89% rename from test/globals/post.zep rename to stub/globals/post.zep index 08410281b5..77e097c84c 100644 --- a/test/globals/post.zep +++ b/stub/globals/post.zep @@ -1,5 +1,5 @@ -namespace Test\Globals; +namespace Stub\Globals; class Post { diff --git a/test/globals/server.zep b/stub/globals/server.zep similarity index 95% rename from test/globals/server.zep rename to stub/globals/server.zep index 16c26b8152..10aeb0ed61 100644 --- a/test/globals/server.zep +++ b/stub/globals/server.zep @@ -1,4 +1,4 @@ -namespace Test\Globals; +namespace Stub\Globals; class Server { diff --git a/test/globals/serverrequestfactory.zep b/stub/globals/serverrequestfactory.zep similarity index 98% rename from test/globals/serverrequestfactory.zep rename to stub/globals/serverrequestfactory.zep index decb6582d3..b6e9786ad9 100644 --- a/test/globals/serverrequestfactory.zep +++ b/stub/globals/serverrequestfactory.zep @@ -1,4 +1,4 @@ -namespace Test\Globals; +namespace Stub\Globals; class ServerRequestFactory { diff --git a/test/globals/session/base.zep b/stub/globals/session/base.zep similarity index 93% rename from test/globals/session/base.zep rename to stub/globals/session/base.zep index d2ed791938..8bd62e0415 100644 --- a/test/globals/session/base.zep +++ b/stub/globals/session/base.zep @@ -1,5 +1,5 @@ -namespace Test\Globals\Session; +namespace Stub\Globals\Session; class Base { diff --git a/test/globals/session/child.zep b/stub/globals/session/child.zep similarity index 75% rename from test/globals/session/child.zep rename to stub/globals/session/child.zep index 92d1519282..66992c4e19 100644 --- a/test/globals/session/child.zep +++ b/stub/globals/session/child.zep @@ -1,5 +1,5 @@ -namespace Test\Globals\Session; +namespace Stub\Globals\Session; class Child extends Base { diff --git a/test/instance.zep b/stub/instance.zep similarity index 90% rename from test/instance.zep rename to stub/instance.zep index 6ca2953866..85ebb8a0e2 100644 --- a/test/instance.zep +++ b/stub/instance.zep @@ -3,7 +3,7 @@ * Instance operations */ -namespace Test; +namespace Stub; class Instance { @@ -42,7 +42,7 @@ class Instance new Concat() ]; - return create_instance_params("Test\\Instance", parameters); + return create_instance_params("Stub\\Instance", parameters); } public static function testInstanceCreate(string className) -> diff --git a/test/instanceoff.zep b/stub/instanceoff.zep similarity index 98% rename from test/instanceoff.zep rename to stub/instanceoff.zep index 1469e658c0..cd53dfe9dd 100644 --- a/test/instanceoff.zep +++ b/stub/instanceoff.zep @@ -3,7 +3,7 @@ * OO operations */ -namespace Test; +namespace Stub; class Instanceoff { diff --git a/test/integration/psr/http/message/messageinterfaceex.zep b/stub/integration/psr/http/message/messageinterfaceex.zep similarity index 68% rename from test/integration/psr/http/message/messageinterfaceex.zep rename to stub/integration/psr/http/message/messageinterfaceex.zep index 8469b2f16b..7e1490448b 100644 --- a/test/integration/psr/http/message/messageinterfaceex.zep +++ b/stub/integration/psr/http/message/messageinterfaceex.zep @@ -1,4 +1,4 @@ -namespace Test\Integration\Psr\Http\Message; +namespace Stub\Integration\Psr\Http\Message; use Psr\Http\Message\MessageInterface; diff --git a/test/internalclasses.zep b/stub/internalclasses.zep similarity index 94% rename from test/internalclasses.zep rename to stub/internalclasses.zep index e382018ebd..0fbb8fd762 100644 --- a/test/internalclasses.zep +++ b/stub/internalclasses.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class InternalClasses { @@ -15,4 +15,4 @@ class InternalClasses */ return \Phalcon\Mvc\Model\Query::TYPE_DELETE; } -} \ No newline at end of file +} diff --git a/test/internalinterfaces.zep b/stub/internalinterfaces.zep similarity index 82% rename from test/internalinterfaces.zep rename to stub/internalinterfaces.zep index c6b58a76f0..50542a18f3 100644 --- a/test/internalinterfaces.zep +++ b/stub/internalinterfaces.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class InternalInterfaces implements \Countable { @@ -7,4 +7,4 @@ class InternalInterfaces implements \Countable { } -} \ No newline at end of file +} diff --git a/test/invoke.zep b/stub/invoke.zep similarity index 94% rename from test/invoke.zep rename to stub/invoke.zep index 5a0c005de7..09988fbfe2 100644 --- a/test/invoke.zep +++ b/stub/invoke.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class Invoke { diff --git a/test/issettest.zep b/stub/issettest.zep similarity index 98% rename from test/issettest.zep rename to stub/issettest.zep index acfc85da1f..19e67003ba 100644 --- a/test/issettest.zep +++ b/stub/issettest.zep @@ -3,7 +3,7 @@ * Unset statement tests */ -namespace Test; +namespace Stub; class IssetTest { diff --git a/test/issue1404.zep b/stub/issue1404.zep similarity index 99% rename from test/issue1404.zep rename to stub/issue1404.zep index ee984d46e9..256c2f0b53 100644 --- a/test/issue1404.zep +++ b/stub/issue1404.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class Issue1404 { diff --git a/test/issue1521.zep b/stub/issue1521.zep similarity index 91% rename from test/issue1521.zep rename to stub/issue1521.zep index eda24ea52e..a72a49a780 100644 --- a/test/issue1521.zep +++ b/stub/issue1521.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class Issue1521 { diff --git a/test/issues.zep b/stub/issues.zep similarity index 94% rename from test/issues.zep rename to stub/issues.zep index 8a77d60365..353c9b7b16 100644 --- a/test/issues.zep +++ b/stub/issues.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Issues { diff --git a/test/json.zep b/stub/json.zep similarity index 97% rename from test/json.zep rename to stub/json.zep index 7406a2a73e..625f3d5110 100644 --- a/test/json.zep +++ b/stub/json.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Json { diff --git a/test/logical.zep b/stub/logical.zep similarity index 98% rename from test/logical.zep rename to stub/logical.zep index 03e68b1bb7..9519113d4b 100644 --- a/test/logical.zep +++ b/stub/logical.zep @@ -3,7 +3,7 @@ * Arithmetic operations */ -namespace Test; +namespace Stub; class Logical { diff --git a/test/mcall.zep b/stub/mcall.zep similarity index 99% rename from test/mcall.zep rename to stub/mcall.zep index 16ba21ad65..bfe1fde484 100644 --- a/test/mcall.zep +++ b/stub/mcall.zep @@ -3,7 +3,7 @@ * Method calls */ -namespace Test; +namespace Stub; class Mcall { diff --git a/test/mcall/caller.zep b/stub/mcall/caller.zep similarity index 87% rename from test/mcall/caller.zep rename to stub/mcall/caller.zep index 2d2b201f58..bd8e117774 100644 --- a/test/mcall/caller.zep +++ b/stub/mcall/caller.zep @@ -1,4 +1,4 @@ -namespace Test\Mcall; +namespace Stub\Mcall; class Caller { diff --git a/test/mcallchained.zep b/stub/mcallchained.zep similarity index 97% rename from test/mcallchained.zep rename to stub/mcallchained.zep index a8cc1488bf..2223384c5d 100644 --- a/test/mcallchained.zep +++ b/stub/mcallchained.zep @@ -3,7 +3,7 @@ * Chained method calls */ -namespace Test; +namespace Stub; class McallChained { diff --git a/test/mcalldynamic.zep b/stub/mcalldynamic.zep similarity index 93% rename from test/mcalldynamic.zep rename to stub/mcalldynamic.zep index d8e0e1127f..66f2bce1ef 100644 --- a/test/mcalldynamic.zep +++ b/stub/mcalldynamic.zep @@ -3,10 +3,10 @@ * Method calls */ -namespace Test; +namespace Stub; -use Test\Mcall\Caller; +use Stub\Mcall\Caller; class McallDynamic { diff --git a/test/mcallinternal.zep b/stub/mcallinternal.zep similarity index 98% rename from test/mcallinternal.zep rename to stub/mcallinternal.zep index 585d446a8b..1861ed25ce 100644 --- a/test/mcallinternal.zep +++ b/stub/mcallinternal.zep @@ -3,7 +3,7 @@ * Method calls */ -namespace Test; +namespace Stub; class McallInternal { diff --git a/test/methodabstract.zep b/stub/methodabstract.zep similarity index 89% rename from test/methodabstract.zep rename to stub/methodabstract.zep index 2639d57821..be158b3084 100644 --- a/test/methodabstract.zep +++ b/stub/methodabstract.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; abstract class MethodAbstract implements MethodInterface { diff --git a/test/methodargs.zep b/stub/methodargs.zep similarity index 98% rename from test/methodargs.zep rename to stub/methodargs.zep index 902f0e4952..e310a3d0c6 100644 --- a/test/methodargs.zep +++ b/stub/methodargs.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class MethodArgs { diff --git a/test/methodinterface.zep b/stub/methodinterface.zep similarity index 80% rename from test/methodinterface.zep rename to stub/methodinterface.zep index b73c4a1f42..e0ecb7c91f 100644 --- a/test/methodinterface.zep +++ b/stub/methodinterface.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; interface MethodInterface { diff --git a/test/nativearray.zep b/stub/nativearray.zep similarity index 99% rename from test/nativearray.zep rename to stub/nativearray.zep index 136a3e902b..2607391b52 100644 --- a/test/nativearray.zep +++ b/stub/nativearray.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class NativeArray { diff --git a/test/oo.zep b/stub/oo.zep similarity index 96% rename from test/oo.zep rename to stub/oo.zep index d9cd7cf1a3..323c8c7b0f 100644 --- a/test/oo.zep +++ b/stub/oo.zep @@ -2,7 +2,7 @@ * OO operations */ -namespace Test; +namespace Stub; class Oo { @@ -102,7 +102,7 @@ class Oo array result = []; for className in ["OoDynamicA", "OoDynamicB"] { - let fqcn = "Test\\Oo\\" . className; + let fqcn = "Stub\\Oo\\" . className; let instance = new {fqcn}(); let result[] = instance->execute(); diff --git a/test/oo/abstractclass.zep b/stub/oo/abstractclass.zep similarity index 97% rename from test/oo/abstractclass.zep rename to stub/oo/abstractclass.zep index 944c60dfa0..3bf32698f8 100644 --- a/test/oo/abstractclass.zep +++ b/stub/oo/abstractclass.zep @@ -1,5 +1,5 @@ -namespace Test\Oo; +namespace Stub\Oo; abstract class AbstractClass { diff --git a/test/oo/abstractstatic.zep b/stub/oo/abstractstatic.zep similarity index 86% rename from test/oo/abstractstatic.zep rename to stub/oo/abstractstatic.zep index 222cb3eb81..211023ef1c 100644 --- a/test/oo/abstractstatic.zep +++ b/stub/oo/abstractstatic.zep @@ -1,4 +1,4 @@ -namespace Test\Oo; +namespace Stub\Oo; abstract class AbstractStatic { diff --git a/test/oo/concretestatic.zep b/stub/oo/concretestatic.zep similarity index 91% rename from test/oo/concretestatic.zep rename to stub/oo/concretestatic.zep index 3a44ecaf03..97d443e3f7 100644 --- a/test/oo/concretestatic.zep +++ b/stub/oo/concretestatic.zep @@ -1,4 +1,4 @@ -namespace Test\Oo; +namespace Stub\Oo; class ConcreteStatic extends AbstractStatic { diff --git a/test/oo/constantsinterface.zep b/stub/oo/constantsinterface.zep similarity index 58% rename from test/oo/constantsinterface.zep rename to stub/oo/constantsinterface.zep index b9bf2e1c51..a0b487c3d5 100644 --- a/test/oo/constantsinterface.zep +++ b/stub/oo/constantsinterface.zep @@ -1,38 +1,38 @@ -namespace Test\Oo; +namespace Stub\Oo; -class ConstantsInterface implements \Test\TestInterface +class ConstantsInterface implements \Stub\TestInterface { const CLASSNAME = __CLASS__; const NAMESPACENAME = __NAMESPACE__; public function testReadInterfaceConstant1() { - return \Test\TestInterface::C1; + return \Stub\TestInterface::C1; } public function testReadInterfaceConstant2() { - return \Test\TestInterface::C2; + return \Stub\TestInterface::C2; } public function testReadInterfaceConstant3() { - return \Test\TestInterface::C3; + return \Stub\TestInterface::C3; } public function testReadInterfaceConstant4() { - return \Test\TestInterface::C4; + return \Stub\TestInterface::C4; } public function testReadInterfaceConstant5() { - return \Test\TestInterface::C5; + return \Stub\TestInterface::C5; } public function testReadInterfaceConstant6() { - return \Test\TestInterface::C6; + return \Stub\TestInterface::C6; } } diff --git a/test/oo/deprecatedmethods.zep b/stub/oo/deprecatedmethods.zep similarity index 93% rename from test/oo/deprecatedmethods.zep rename to stub/oo/deprecatedmethods.zep index ad354d2f00..78e48a42e2 100644 --- a/test/oo/deprecatedmethods.zep +++ b/stub/oo/deprecatedmethods.zep @@ -1,4 +1,4 @@ -namespace Test\Oo; +namespace Stub\Oo; class DeprecatedMethods { diff --git a/test/oo/dynamicprop.zep b/stub/oo/dynamicprop.zep similarity index 98% rename from test/oo/dynamicprop.zep rename to stub/oo/dynamicprop.zep index fd8e553f97..d53eedc92c 100644 --- a/test/oo/dynamicprop.zep +++ b/stub/oo/dynamicprop.zep @@ -2,7 +2,7 @@ * */ -namespace Test\Oo; +namespace Stub\Oo; class DynamicProp { diff --git a/test/oo/extend/Exception.zep b/stub/oo/extend/Exception.zep similarity index 74% rename from test/oo/extend/Exception.zep rename to stub/oo/extend/Exception.zep index 30f4292f33..fde7eaff74 100644 --- a/test/oo/extend/Exception.zep +++ b/stub/oo/extend/Exception.zep @@ -1,6 +1,6 @@ use \Exception as PHPException; -namespace Test\Oo\Extend; +namespace Stub\Oo\Extend; class Exception extends PHPException { diff --git a/stub/oo/extend/db/Exception.zep b/stub/oo/extend/db/Exception.zep new file mode 100644 index 0000000000..fed1b9c554 --- /dev/null +++ b/stub/oo/extend/db/Exception.zep @@ -0,0 +1,7 @@ +namespace Stub\Oo\Extend\Db; + +use Stub\Oo\Extend\Exception as ItException; + +class Exception extends ItException +{ +} diff --git a/stub/oo/extend/db/query/Exception.zep b/stub/oo/extend/db/query/Exception.zep new file mode 100644 index 0000000000..3ac39ca1f8 --- /dev/null +++ b/stub/oo/extend/db/query/Exception.zep @@ -0,0 +1,7 @@ +namespace Stub\Oo\Extend\Db\Query; + +use Stub\Oo\Extend\Db\Exception as ItDbException; + +class Exception extends ItDbException +{ +} diff --git a/stub/oo/extend/db/query/placeholder/Exception.zep b/stub/oo/extend/db/query/placeholder/Exception.zep new file mode 100644 index 0000000000..997aab556b --- /dev/null +++ b/stub/oo/extend/db/query/placeholder/Exception.zep @@ -0,0 +1,5 @@ +namespace Stub\Oo\Extend\Db\Query\Placeholder; + +class Exception extends \Stub\Oo\Extend\Db\Query\Exception +{ +} diff --git a/test/oo/extend/spl/ArrayObject.zep b/stub/oo/extend/spl/ArrayObject.zep similarity index 57% rename from test/oo/extend/spl/ArrayObject.zep rename to stub/oo/extend/spl/ArrayObject.zep index 88c7165536..fae9322b93 100644 --- a/test/oo/extend/spl/ArrayObject.zep +++ b/stub/oo/extend/spl/ArrayObject.zep @@ -1,6 +1,6 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class ArrayObject extends \ArrayObject { -} \ No newline at end of file +} diff --git a/test/oo/extend/spl/DirectoryIterator.zep b/stub/oo/extend/spl/DirectoryIterator.zep similarity index 63% rename from test/oo/extend/spl/DirectoryIterator.zep rename to stub/oo/extend/spl/DirectoryIterator.zep index 544aba3305..64e6f60793 100644 --- a/test/oo/extend/spl/DirectoryIterator.zep +++ b/stub/oo/extend/spl/DirectoryIterator.zep @@ -1,6 +1,6 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class DirectoryIterator extends \DirectoryIterator { -} \ No newline at end of file +} diff --git a/test/oo/extend/spl/DoublyLinkedList.zep b/stub/oo/extend/spl/DoublyLinkedList.zep similarity index 65% rename from test/oo/extend/spl/DoublyLinkedList.zep rename to stub/oo/extend/spl/DoublyLinkedList.zep index cb314ff06c..52116ffa53 100644 --- a/test/oo/extend/spl/DoublyLinkedList.zep +++ b/stub/oo/extend/spl/DoublyLinkedList.zep @@ -1,5 +1,5 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class DoublyLinkedList extends \SplDoublyLinkedList { diff --git a/test/oo/extend/spl/FileInfo.zep b/stub/oo/extend/spl/FileInfo.zep similarity index 55% rename from test/oo/extend/spl/FileInfo.zep rename to stub/oo/extend/spl/FileInfo.zep index a0a68c8af4..3e633e30f9 100644 --- a/test/oo/extend/spl/FileInfo.zep +++ b/stub/oo/extend/spl/FileInfo.zep @@ -1,6 +1,6 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class FileInfo extends \SplFileInfo { -} \ No newline at end of file +} diff --git a/test/oo/extend/spl/FileObject.zep b/stub/oo/extend/spl/FileObject.zep similarity index 57% rename from test/oo/extend/spl/FileObject.zep rename to stub/oo/extend/spl/FileObject.zep index e6e0fa5257..983c9c6264 100644 --- a/test/oo/extend/spl/FileObject.zep +++ b/stub/oo/extend/spl/FileObject.zep @@ -1,6 +1,6 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class FileObject extends \SplFileObject { -} \ No newline at end of file +} diff --git a/test/oo/extend/spl/FilesystemIterator.zep b/stub/oo/extend/spl/FilesystemIterator.zep similarity index 64% rename from test/oo/extend/spl/FilesystemIterator.zep rename to stub/oo/extend/spl/FilesystemIterator.zep index c4b20db7a5..f56a904a7f 100644 --- a/test/oo/extend/spl/FilesystemIterator.zep +++ b/stub/oo/extend/spl/FilesystemIterator.zep @@ -1,6 +1,6 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class FilesystemIterator extends \FilesystemIterator { -} \ No newline at end of file +} diff --git a/test/oo/extend/spl/FixedArray.zep b/stub/oo/extend/spl/FixedArray.zep similarity index 57% rename from test/oo/extend/spl/FixedArray.zep rename to stub/oo/extend/spl/FixedArray.zep index f7fb5f1346..4237d31b4b 100644 --- a/test/oo/extend/spl/FixedArray.zep +++ b/stub/oo/extend/spl/FixedArray.zep @@ -1,6 +1,6 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class FixedArray extends \SplFixedArray { -} \ No newline at end of file +} diff --git a/test/oo/extend/spl/GlobIterator.zep b/stub/oo/extend/spl/GlobIterator.zep similarity index 58% rename from test/oo/extend/spl/GlobIterator.zep rename to stub/oo/extend/spl/GlobIterator.zep index 47b0bad09a..05ff5ce79b 100644 --- a/test/oo/extend/spl/GlobIterator.zep +++ b/stub/oo/extend/spl/GlobIterator.zep @@ -1,6 +1,6 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class GlobIterator extends \GlobIterator { -} \ No newline at end of file +} diff --git a/test/oo/extend/spl/Heap.zep b/stub/oo/extend/spl/Heap.zep similarity index 50% rename from test/oo/extend/spl/Heap.zep rename to stub/oo/extend/spl/Heap.zep index 8913ead2e2..5bbe796053 100644 --- a/test/oo/extend/spl/Heap.zep +++ b/stub/oo/extend/spl/Heap.zep @@ -1,6 +1,6 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class Heap extends \SplHeap { -} \ No newline at end of file +} diff --git a/test/oo/extend/spl/MaxHeap.zep b/stub/oo/extend/spl/MaxHeap.zep similarity index 54% rename from test/oo/extend/spl/MaxHeap.zep rename to stub/oo/extend/spl/MaxHeap.zep index 84e1653234..7b3c05c534 100644 --- a/test/oo/extend/spl/MaxHeap.zep +++ b/stub/oo/extend/spl/MaxHeap.zep @@ -1,6 +1,6 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class MaxHeap extends \SplMaxHeap { -} \ No newline at end of file +} diff --git a/test/oo/extend/spl/MinHeap.zep b/stub/oo/extend/spl/MinHeap.zep similarity index 54% rename from test/oo/extend/spl/MinHeap.zep rename to stub/oo/extend/spl/MinHeap.zep index 54738422a9..f0ed02acb9 100644 --- a/test/oo/extend/spl/MinHeap.zep +++ b/stub/oo/extend/spl/MinHeap.zep @@ -1,6 +1,6 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class MinHeap extends \SplMinHeap { -} \ No newline at end of file +} diff --git a/test/oo/extend/spl/PriorityQueue.zep b/stub/oo/extend/spl/PriorityQueue.zep similarity index 60% rename from test/oo/extend/spl/PriorityQueue.zep rename to stub/oo/extend/spl/PriorityQueue.zep index e4fee164e3..64efde1d6d 100644 --- a/test/oo/extend/spl/PriorityQueue.zep +++ b/stub/oo/extend/spl/PriorityQueue.zep @@ -1,6 +1,6 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class PriorityQueue extends \SplPriorityQueue { -} \ No newline at end of file +} diff --git a/test/oo/extend/spl/Queue.zep b/stub/oo/extend/spl/Queue.zep similarity index 54% rename from test/oo/extend/spl/Queue.zep rename to stub/oo/extend/spl/Queue.zep index 3f8b0ced8f..f600ce96ba 100644 --- a/test/oo/extend/spl/Queue.zep +++ b/stub/oo/extend/spl/Queue.zep @@ -1,5 +1,5 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class Queue extends \SplQueue { diff --git a/test/oo/extend/spl/RecursiveDirectoryIterator.zep b/stub/oo/extend/spl/RecursiveDirectoryIterator.zep similarity index 69% rename from test/oo/extend/spl/RecursiveDirectoryIterator.zep rename to stub/oo/extend/spl/RecursiveDirectoryIterator.zep index 8c8796cc67..a5d6eeea9a 100644 --- a/test/oo/extend/spl/RecursiveDirectoryIterator.zep +++ b/stub/oo/extend/spl/RecursiveDirectoryIterator.zep @@ -1,6 +1,6 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class RecursiveDirectoryIterator extends \RecursiveDirectoryIterator { -} \ No newline at end of file +} diff --git a/test/oo/extend/spl/Stack.zep b/stub/oo/extend/spl/Stack.zep similarity index 54% rename from test/oo/extend/spl/Stack.zep rename to stub/oo/extend/spl/Stack.zep index 30e796237e..afed091e7f 100644 --- a/test/oo/extend/spl/Stack.zep +++ b/stub/oo/extend/spl/Stack.zep @@ -1,5 +1,5 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class Stack extends \SplStack { diff --git a/test/oo/extend/spl/TempFileObject.zep b/stub/oo/extend/spl/TempFileObject.zep similarity index 61% rename from test/oo/extend/spl/TempFileObject.zep rename to stub/oo/extend/spl/TempFileObject.zep index 1190f94b15..6cd860b469 100644 --- a/test/oo/extend/spl/TempFileObject.zep +++ b/stub/oo/extend/spl/TempFileObject.zep @@ -1,6 +1,6 @@ -namespace Test\Oo\Extend\Spl; +namespace Stub\Oo\Extend\Spl; class TempFileObject extends \SplTempFileObject { -} \ No newline at end of file +} diff --git a/test/oo/extendpdoclass.zep b/stub/oo/extendpdoclass.zep similarity index 71% rename from test/oo/extendpdoclass.zep rename to stub/oo/extendpdoclass.zep index 1227c1f119..4b96328b9b 100644 --- a/test/oo/extendpdoclass.zep +++ b/stub/oo/extendpdoclass.zep @@ -1,11 +1,11 @@ -namespace Test\Oo; +namespace Stub\Oo; class ExtendPdoClass extends \PDO { public function __construct(string dsn, string username = null, string password = null, attrs = []) { - let attrs[\PDO::ATTR_STATEMENT_CLASS] = ["Test\\PdoStatement"]; + let attrs[\PDO::ATTR_STATEMENT_CLASS] = ["Stub\\PdoStatement"]; parent::__construct(dsn, username, password, attrs); } } diff --git a/test/oo/ooconstruct.zep b/stub/oo/ooconstruct.zep similarity index 82% rename from test/oo/ooconstruct.zep rename to stub/oo/ooconstruct.zep index a4c5a717ff..58b0511720 100644 --- a/test/oo/ooconstruct.zep +++ b/stub/oo/ooconstruct.zep @@ -3,7 +3,7 @@ * Class with constructor */ -namespace Test\Oo; +namespace Stub\Oo; class OoConstruct { @@ -12,4 +12,4 @@ class OoConstruct { } -} \ No newline at end of file +} diff --git a/test/oo/ooconstructparams.zep b/stub/oo/ooconstructparams.zep similarity index 92% rename from test/oo/ooconstructparams.zep rename to stub/oo/ooconstructparams.zep index 8e83e8ae84..a5cfd550ca 100644 --- a/test/oo/ooconstructparams.zep +++ b/stub/oo/ooconstructparams.zep @@ -3,7 +3,7 @@ * Class with constructor + params */ -namespace Test\Oo; +namespace Stub\Oo; class OoConstructParams { @@ -26,4 +26,4 @@ class OoConstructParams { return this->b; } -} \ No newline at end of file +} diff --git a/test/oo/oodestruct.zep b/stub/oo/oodestruct.zep similarity index 93% rename from test/oo/oodestruct.zep rename to stub/oo/oodestruct.zep index fb75433a2a..e295042aeb 100644 --- a/test/oo/oodestruct.zep +++ b/stub/oo/oodestruct.zep @@ -1,190 +1,190 @@ - -/** - * Class with dynamic new - */ - -namespace Test\Oo; - -class OoDestruct -{ - protected static checked = false; - - protected file; - - /** - * Image height - * - * @var int - */ - protected height { get }; - - protected image { get }; - /** - * Image mime type - * - * @var string - */ - protected mime { get }; - - protected realpath { get }; - - /** - * Image type - * - * Driver dependent - * - * @var int - */ - protected type { get }; - - /** - * Image width - * - * @var int - */ - protected width { get }; - - public function __construct(string! file, int width = null, int height = null) - { - var imageinfo; - - if !self::checked { - self::check(); - } - - let this->file = file; - - if file_exists(this->file) { - let this->realpath = realpath(this->file); - let imageinfo = getimagesize(this->file); - - if imageinfo { - let this->width = imageinfo[0]; - let this->height = imageinfo[1]; - let this->type = imageinfo[2]; - let this->mime = imageinfo["mime"]; - } - - switch this->type { - case 1: - let this->image = imagecreatefromgif(this->file); - break; - - case 2: - let this->image = imagecreatefromjpeg(this->file); - break; - - case 3: - let this->image = imagecreatefrompng(this->file); - break; - - case 15: - let this->image = imagecreatefromwbmp(this->file); - break; - - case 16: - let this->image = imagecreatefromxbm(this->file); - break; - - default: - if this->mime { - throw new Exception( - "Installed GD does not support " . this->mime . " images" - ); - } - - throw new Exception( - "Installed GD does not support such images" - ); - } - - imagesavealpha(this->image, true); - - } else { - if unlikely !width || !height { - throw new Exception( - "Failed to create image from file " . this->file - ); - } - - let this->image = imagecreatetruecolor(width, height); - - imagealphablending(this->image, true); - imagesavealpha(this->image, true); - - let this->realpath = this->file; - let this->width = width; - let this->height = height; - let this->type = 3; - let this->mime = "image/png"; - } - } - - public function __destruct() - { - var image; - - let image = this->image; - - if typeof image == "resource" { - imagedestroy(image); - } - } - - - public static function check() -> bool - { - var version; - - if self::checked { - return true; - } - - if unlikely !function_exists("gd_info") { - throw new Exception( - "GD is either not installed or not enabled, check your configuration" - ); - } - - let version = self::getVersion(); - - if unlikely !version_compare(version, "2.0.1", ">=") { - throw new Exception( - "Requires GD version '2.0.1' or greater, you have " . version - ); - } - - let self::checked = true; - - return self::checked; - } - - - - public static function getVersion() -> string - { - var version, info, matches; - - if unlikely !function_exists("gd_info") { - throw new Exception( - "GD is either not installed or not enabled, check your configuration" - ); - } - - let version = null; - - if defined("GD_VERSION") { - let version = GD_VERSION; - } else { - let info = gd_info(), - matches = null; - - if preg_match("/\\d+\\.\\d+(?:\\.\\d+)?/", info["GD Version"], matches) { - let version = matches[0]; - } - } - - return version; - } - -} \ No newline at end of file + +/** + * Class with dynamic new + */ + +namespace Stub\Oo; + +class OoDestruct +{ + protected static checked = false; + + protected file; + + /** + * Image height + * + * @var int + */ + protected height { get }; + + protected image { get }; + /** + * Image mime type + * + * @var string + */ + protected mime { get }; + + protected realpath { get }; + + /** + * Image type + * + * Driver dependent + * + * @var int + */ + protected type { get }; + + /** + * Image width + * + * @var int + */ + protected width { get }; + + public function __construct(string! file, int width = null, int height = null) + { + var imageinfo; + + if !self::checked { + self::check(); + } + + let this->file = file; + + if file_exists(this->file) { + let this->realpath = realpath(this->file); + let imageinfo = getimagesize(this->file); + + if imageinfo { + let this->width = imageinfo[0]; + let this->height = imageinfo[1]; + let this->type = imageinfo[2]; + let this->mime = imageinfo["mime"]; + } + + switch this->type { + case 1: + let this->image = imagecreatefromgif(this->file); + break; + + case 2: + let this->image = imagecreatefromjpeg(this->file); + break; + + case 3: + let this->image = imagecreatefrompng(this->file); + break; + + case 15: + let this->image = imagecreatefromwbmp(this->file); + break; + + case 16: + let this->image = imagecreatefromxbm(this->file); + break; + + default: + if this->mime { + throw new Exception( + "Installed GD does not support " . this->mime . " images" + ); + } + + throw new Exception( + "Installed GD does not support such images" + ); + } + + imagesavealpha(this->image, true); + + } else { + if unlikely !width || !height { + throw new Exception( + "Failed to create image from file " . this->file + ); + } + + let this->image = imagecreatetruecolor(width, height); + + imagealphablending(this->image, true); + imagesavealpha(this->image, true); + + let this->realpath = this->file; + let this->width = width; + let this->height = height; + let this->type = 3; + let this->mime = "image/png"; + } + } + + public function __destruct() + { + var image; + + let image = this->image; + + if typeof image == "resource" { + imagedestroy(image); + } + } + + + public static function check() -> bool + { + var version; + + if self::checked { + return true; + } + + if unlikely !function_exists("gd_info") { + throw new Exception( + "GD is either not installed or not enabled, check your configuration" + ); + } + + let version = self::getVersion(); + + if unlikely !version_compare(version, "2.0.1", ">=") { + throw new Exception( + "Requires GD version '2.0.1' or greater, you have " . version + ); + } + + let self::checked = true; + + return self::checked; + } + + + + public static function getVersion() -> string + { + var version, info, matches; + + if unlikely !function_exists("gd_info") { + throw new Exception( + "GD is either not installed or not enabled, check your configuration" + ); + } + + let version = null; + + if defined("GD_VERSION") { + let version = GD_VERSION; + } else { + let info = gd_info(), + matches = null; + + if preg_match("/\\d+\\.\\d+(?:\\.\\d+)?/", info["GD Version"], matches) { + let version = matches[0]; + } + } + + return version; + } + +} diff --git a/test/oo/oodynamica.zep b/stub/oo/oodynamica.zep similarity index 80% rename from test/oo/oodynamica.zep rename to stub/oo/oodynamica.zep index aa0bcc280c..fda91e261f 100644 --- a/test/oo/oodynamica.zep +++ b/stub/oo/oodynamica.zep @@ -3,7 +3,7 @@ * Class with dynamic new */ -namespace Test\Oo; +namespace Stub\Oo; class OoDynamicA { @@ -16,11 +16,11 @@ class OoDynamicA } public static function call2() { - return \Test\Oo\OoDynamicA::getNew(); + return \Stub\Oo\OoDynamicA::getNew(); } public static function call1() { - return \Test\Oo\OoDynamicA::call2(); + return \Stub\Oo\OoDynamicA::call2(); } public function execute() { diff --git a/test/oo/oodynamicb.zep b/stub/oo/oodynamicb.zep similarity index 90% rename from test/oo/oodynamicb.zep rename to stub/oo/oodynamicb.zep index 2697ffd559..550bae7dea 100644 --- a/test/oo/oodynamicb.zep +++ b/stub/oo/oodynamicb.zep @@ -2,7 +2,7 @@ * Class with dynamic new */ -namespace Test\Oo; +namespace Stub\Oo; class OoDynamicB extends OoDynamicA { diff --git a/test/oo/oonativeimplements.zep b/stub/oo/oonativeimplements.zep similarity index 98% rename from test/oo/oonativeimplements.zep rename to stub/oo/oonativeimplements.zep index ee13f508b3..eb92720c51 100644 --- a/test/oo/oonativeimplements.zep +++ b/stub/oo/oonativeimplements.zep @@ -3,7 +3,7 @@ * Class with constructor */ -namespace Test\Oo; +namespace Stub\Oo; class OoNativeImplements implements \Countable, diff --git a/test/oo/oonoconstruct.zep b/stub/oo/oonoconstruct.zep similarity index 75% rename from test/oo/oonoconstruct.zep rename to stub/oo/oonoconstruct.zep index 5fa9e3cc87..a5a37ef0bf 100644 --- a/test/oo/oonoconstruct.zep +++ b/stub/oo/oonoconstruct.zep @@ -3,9 +3,9 @@ * Class without constructor */ -namespace Test\Oo; +namespace Stub\Oo; class OoNoConstruct { -} \ No newline at end of file +} diff --git a/test/oo/ooparams.zep b/stub/oo/ooparams.zep similarity index 98% rename from test/oo/ooparams.zep rename to stub/oo/ooparams.zep index 041fd78889..256f0d32a7 100644 --- a/test/oo/ooparams.zep +++ b/stub/oo/ooparams.zep @@ -3,7 +3,7 @@ * */ -namespace Test\Oo; +namespace Stub\Oo; class OoParams { diff --git a/test/oo/param.zep b/stub/oo/param.zep similarity index 75% rename from test/oo/param.zep rename to stub/oo/param.zep index af874bfe3c..2b1e48020c 100644 --- a/test/oo/param.zep +++ b/stub/oo/param.zep @@ -3,9 +3,9 @@ * Arithmetic operations */ -namespace Test\Oo; +namespace Stub\Oo; class Param { public value; -} \ No newline at end of file +} diff --git a/stub/oo/propertyaccess.zep b/stub/oo/propertyaccess.zep new file mode 100644 index 0000000000..3aa0c4ad56 --- /dev/null +++ b/stub/oo/propertyaccess.zep @@ -0,0 +1,44 @@ + +namespace Stub\Oo; + +class PropertyAccess +{ + protected a; + + protected b; + + private privateVariable; + + public function __construct() + { + var test, test1; + let test = new \stdClass; + let test->test = ["1", 2, 3, 5, 6.00]; + let test->test2 = test->test[0]; + let test->test3 = test->test[1]; + let test->test3 = [test->test[1], 1, 2, 3]; + + let this->a = test; + let this->b = this->a->test2; + + let test1 = this->a; + } + + /** + * @issue https://github.com/phalcon/zephir/issues/1851 + */ + public function setPrivatevariable(value) -> + { + let this->privateVariable = value; + + return this; + } + + /** + * @issue https://github.com/phalcon/zephir/issues/1851 + */ + public function getPrivatevariable() -> var + { + return this->privateVariable; + } +} diff --git a/test/oo/scopes/abstractclass.zep b/stub/oo/scopes/abstractclass.zep similarity index 94% rename from test/oo/scopes/abstractclass.zep rename to stub/oo/scopes/abstractclass.zep index f5a2e64e26..2065f9bd7c 100644 --- a/test/oo/scopes/abstractclass.zep +++ b/stub/oo/scopes/abstractclass.zep @@ -1,4 +1,4 @@ -namespace Test\Oo\Scopes; +namespace Stub\Oo\Scopes; abstract class AbstractClass { diff --git a/test/oo/scopes/abstractclassmagic.zep b/stub/oo/scopes/abstractclassmagic.zep similarity index 94% rename from test/oo/scopes/abstractclassmagic.zep rename to stub/oo/scopes/abstractclassmagic.zep index 08bb270f99..2b5eb308d7 100644 --- a/test/oo/scopes/abstractclassmagic.zep +++ b/stub/oo/scopes/abstractclassmagic.zep @@ -1,4 +1,4 @@ -namespace Test\Oo\Scopes; +namespace Stub\Oo\Scopes; abstract class AbstractClassMagic { diff --git a/test/oo/scopes/hasprivatemethod.zep b/stub/oo/scopes/hasprivatemethod.zep similarity index 88% rename from test/oo/scopes/hasprivatemethod.zep rename to stub/oo/scopes/hasprivatemethod.zep index 4db21bf9c8..16cedbbe86 100644 --- a/test/oo/scopes/hasprivatemethod.zep +++ b/stub/oo/scopes/hasprivatemethod.zep @@ -1,4 +1,4 @@ -namespace Test\Oo\Scopes; +namespace Stub\Oo\Scopes; class HasPrivateMethod { diff --git a/test/oo/scopes/privatescopetester.zep b/stub/oo/scopes/privatescopetester.zep similarity index 97% rename from test/oo/scopes/privatescopetester.zep rename to stub/oo/scopes/privatescopetester.zep index 5de629db23..df152764f4 100644 --- a/test/oo/scopes/privatescopetester.zep +++ b/stub/oo/scopes/privatescopetester.zep @@ -1,4 +1,4 @@ -namespace Test\Oo\Scopes; +namespace Stub\Oo\Scopes; class PrivateScopeTester extends HasPrivateMethod implements ScopeTesterInterface { diff --git a/test/oo/scopes/scopetesterinterface.zep b/stub/oo/scopes/scopetesterinterface.zep similarity index 72% rename from test/oo/scopes/scopetesterinterface.zep rename to stub/oo/scopes/scopetesterinterface.zep index 005a683671..7093a089c3 100644 --- a/test/oo/scopes/scopetesterinterface.zep +++ b/stub/oo/scopes/scopetesterinterface.zep @@ -1,4 +1,4 @@ -namespace Test\Oo\Scopes; +namespace Stub\Oo\Scopes; interface ScopeTesterInterface { diff --git a/test/ooimpl/abeginning.zep b/stub/ooimpl/abeginning.zep similarity index 66% rename from test/ooimpl/abeginning.zep rename to stub/ooimpl/abeginning.zep index e4c04de733..3f9b576f17 100644 --- a/test/ooimpl/abeginning.zep +++ b/stub/ooimpl/abeginning.zep @@ -1,4 +1,4 @@ -namespace Test\OoImpl; +namespace Stub\OoImpl; interface ABeginning extends ZBeginning { diff --git a/test/ooimpl/zbeginning.zep b/stub/ooimpl/zbeginning.zep similarity index 53% rename from test/ooimpl/zbeginning.zep rename to stub/ooimpl/zbeginning.zep index f982013555..3b0b211cc5 100644 --- a/test/ooimpl/zbeginning.zep +++ b/stub/ooimpl/zbeginning.zep @@ -1,4 +1,4 @@ -namespace Test\OoImpl; +namespace Stub\OoImpl; interface ZBeginning { diff --git a/test/operator.zep b/stub/operator.zep similarity index 98% rename from test/operator.zep rename to stub/operator.zep index 1e2acaff18..5eecd4c704 100644 --- a/test/operator.zep +++ b/stub/operator.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class Operator { diff --git a/test/optimizers/IsScalar.zep b/stub/optimizers/IsScalar.zep similarity index 96% rename from test/optimizers/IsScalar.zep rename to stub/optimizers/IsScalar.zep index fb1a4fa1d7..ee9bbd941b 100644 --- a/test/optimizers/IsScalar.zep +++ b/stub/optimizers/IsScalar.zep @@ -1,5 +1,5 @@ -namespace Test\Optimizers; +namespace Stub\Optimizers; class IsScalar { diff --git a/test/optimizers/acos.zep b/stub/optimizers/acos.zep similarity index 92% rename from test/optimizers/acos.zep rename to stub/optimizers/acos.zep index 946748faf0..925db5eaea 100644 --- a/test/optimizers/acos.zep +++ b/stub/optimizers/acos.zep @@ -1,5 +1,5 @@ -namespace Test\Optimizers; +namespace Stub\Optimizers; class ACos { diff --git a/test/optimizers/arraymerge.zep b/stub/optimizers/arraymerge.zep similarity index 83% rename from test/optimizers/arraymerge.zep rename to stub/optimizers/arraymerge.zep index eb80bc797e..4cb31a4396 100644 --- a/test/optimizers/arraymerge.zep +++ b/stub/optimizers/arraymerge.zep @@ -1,5 +1,5 @@ -namespace Test\Optimizers; +namespace Stub\Optimizers; class ArrayMerge { diff --git a/test/optimizers/asin.zep b/stub/optimizers/asin.zep similarity index 92% rename from test/optimizers/asin.zep rename to stub/optimizers/asin.zep index 3b783b7aa9..3de6ba9519 100644 --- a/test/optimizers/asin.zep +++ b/stub/optimizers/asin.zep @@ -1,5 +1,5 @@ -namespace Test\Optimizers; +namespace Stub\Optimizers; class ASin { diff --git a/test/optimizers/cos.zep b/stub/optimizers/cos.zep similarity index 93% rename from test/optimizers/cos.zep rename to stub/optimizers/cos.zep index 0d9b05ceb1..0f9150fb6f 100644 --- a/test/optimizers/cos.zep +++ b/stub/optimizers/cos.zep @@ -1,5 +1,5 @@ -namespace Test\Optimizers; +namespace Stub\Optimizers; class Cos { diff --git a/test/optimizers/createarray.zep b/stub/optimizers/createarray.zep similarity index 85% rename from test/optimizers/createarray.zep rename to stub/optimizers/createarray.zep index 9b457a5675..d552bc2973 100644 --- a/test/optimizers/createarray.zep +++ b/stub/optimizers/createarray.zep @@ -1,5 +1,5 @@ -namespace Test\Optimizers; +namespace Stub\Optimizers; class CreateArray { diff --git a/test/optimizers/ldexp.zep b/stub/optimizers/ldexp.zep similarity index 96% rename from test/optimizers/ldexp.zep rename to stub/optimizers/ldexp.zep index 45c9ba78d0..d064da8d72 100644 --- a/test/optimizers/ldexp.zep +++ b/stub/optimizers/ldexp.zep @@ -1,5 +1,5 @@ -namespace Test\Optimizers; +namespace Stub\Optimizers; class Ldexp { diff --git a/test/optimizers/sin.zep b/stub/optimizers/sin.zep similarity index 93% rename from test/optimizers/sin.zep rename to stub/optimizers/sin.zep index ad4d01f395..d75b5d7d14 100644 --- a/test/optimizers/sin.zep +++ b/stub/optimizers/sin.zep @@ -1,5 +1,5 @@ -namespace Test\Optimizers; +namespace Stub\Optimizers; class Sin { diff --git a/test/optimizers/sqrt.zep b/stub/optimizers/sqrt.zep similarity index 93% rename from test/optimizers/sqrt.zep rename to stub/optimizers/sqrt.zep index 1274bdbb7a..9e72d9e821 100644 --- a/test/optimizers/sqrt.zep +++ b/stub/optimizers/sqrt.zep @@ -1,5 +1,5 @@ -namespace Test\Optimizers; +namespace Stub\Optimizers; class Sqrt { diff --git a/test/optimizers/strreplace.zep b/stub/optimizers/strreplace.zep similarity index 97% rename from test/optimizers/strreplace.zep rename to stub/optimizers/strreplace.zep index 6a1dfc715a..ff5aaa9df5 100644 --- a/test/optimizers/strreplace.zep +++ b/stub/optimizers/strreplace.zep @@ -1,5 +1,5 @@ -namespace Test\Optimizers; +namespace Stub\Optimizers; class StrReplace { diff --git a/test/optimizers/substr.zep b/stub/optimizers/substr.zep similarity index 89% rename from test/optimizers/substr.zep rename to stub/optimizers/substr.zep index 0255b9a014..ccfd91574c 100644 --- a/test/optimizers/substr.zep +++ b/stub/optimizers/substr.zep @@ -1,5 +1,5 @@ -namespace Test\Optimizers; +namespace Stub\Optimizers; class Substr { diff --git a/test/optimizers/tan.zep b/stub/optimizers/tan.zep similarity index 94% rename from test/optimizers/tan.zep rename to stub/optimizers/tan.zep index 4045594b08..35d4a2a3d1 100644 --- a/test/optimizers/tan.zep +++ b/stub/optimizers/tan.zep @@ -1,5 +1,5 @@ -namespace Test\Optimizers; +namespace Stub\Optimizers; class Tan { diff --git a/test/pdostatement.zep b/stub/pdostatement.zep similarity index 75% rename from test/pdostatement.zep rename to stub/pdostatement.zep index 01466d8078..67261471c2 100644 --- a/test/pdostatement.zep +++ b/stub/pdostatement.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class PdoStatement extends \PDOStatement { diff --git a/test/pregmatch.zep b/stub/pregmatch.zep similarity index 99% rename from test/pregmatch.zep rename to stub/pregmatch.zep index 0967e86323..363a35768d 100644 --- a/test/pregmatch.zep +++ b/stub/pregmatch.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class Pregmatch { diff --git a/test/properties/app.zep b/stub/properties/app.zep similarity index 63% rename from test/properties/app.zep rename to stub/properties/app.zep index 150ec305be..1752852eae 100644 --- a/test/properties/app.zep +++ b/stub/properties/app.zep @@ -1,8 +1,8 @@ -namespace Test\Properties; +namespace Stub\Properties; class App { - /** @var \Test\Properties\StaticPrivateProperties */ + /** @var \Stub\Properties\StaticPrivateProperties */ protected instance { get }; public function __construct() diff --git a/test/properties/extendspublicproperties.zep b/stub/properties/extendspublicproperties.zep similarity index 87% rename from test/properties/extendspublicproperties.zep rename to stub/properties/extendspublicproperties.zep index 00b98d9dc0..63a47ece68 100644 --- a/test/properties/extendspublicproperties.zep +++ b/stub/properties/extendspublicproperties.zep @@ -1,5 +1,5 @@ -namespace Test\Properties; +namespace Stub\Properties; class ExtendsPublicProperties extends PublicProperties { diff --git a/test/properties/privateproperties.zep b/stub/properties/privateproperties.zep similarity index 97% rename from test/properties/privateproperties.zep rename to stub/properties/privateproperties.zep index cc8bc6b49c..b33ded4ab8 100644 --- a/test/properties/privateproperties.zep +++ b/stub/properties/privateproperties.zep @@ -1,5 +1,5 @@ -namespace Test\Properties; +namespace Stub\Properties; class PrivateProperties { diff --git a/test/properties/propertyarray.zep b/stub/properties/propertyarray.zep similarity index 97% rename from test/properties/propertyarray.zep rename to stub/properties/propertyarray.zep index f177da0522..dff14198f8 100644 --- a/test/properties/propertyarray.zep +++ b/stub/properties/propertyarray.zep @@ -1,5 +1,5 @@ -namespace Test\Properties; +namespace Stub\Properties; /** * @link https://github.com/phalcon/zephir/issues/520 @@ -58,4 +58,4 @@ class PropertyArray return headers; } -} \ No newline at end of file +} diff --git a/test/properties/propertyupdate.zep b/stub/properties/propertyupdate.zep similarity index 80% rename from test/properties/propertyupdate.zep rename to stub/properties/propertyupdate.zep index 3e09e4804f..46a2af3da2 100644 --- a/test/properties/propertyupdate.zep +++ b/stub/properties/propertyupdate.zep @@ -1,4 +1,4 @@ -namespace Test\Properties; +namespace Stub\Properties; class PropertyUpdate { diff --git a/test/properties/protectedproperties.zep b/stub/properties/protectedproperties.zep similarity index 70% rename from test/properties/protectedproperties.zep rename to stub/properties/protectedproperties.zep index 272f0c4286..f6bed785c5 100644 --- a/test/properties/protectedproperties.zep +++ b/stub/properties/protectedproperties.zep @@ -1,9 +1,11 @@ -namespace Test\Properties; +namespace Stub\Properties; +/** + * Stub\Properties\ProtectedProperties + */ class ProtectedProperties { - /** * This is a protected property with no initial value */ @@ -39,46 +41,78 @@ class ProtectedProperties */ protected someString = "test"; + /** + * @var null|mixed + */ protected someVar {set, get}; + /** + * This is a property to test default value on extends + * @var array + */ + protected someArrayVar = [] { set, get }; + + /** + * @return null|mixed + */ public function getSomeNull() { return this->someNull; } + /** + * @return void + */ public function setSomeNull(var param) { let this->someNull = param; } + /** + * @return null + */ public function getSomeNullInitial() { return this->someNullInitial; } + /** + * @return bool + */ public function getSomeFalse() { return this->someFalse; } + /** + * @return bool + */ public function getSomeTrue() { return this->someTrue; } + /** + * @return int + */ public function getSomeInteger() { return this->someInteger; } + /** + * @return float + */ public function getSomeDouble() { return this->someDouble; } + /** + * @return string + */ public function getSomeString() { return this->someString; } - } diff --git a/test/properties/publicproperties.zep b/stub/properties/publicproperties.zep similarity index 98% rename from test/properties/publicproperties.zep rename to stub/properties/publicproperties.zep index 97b6636c85..992d8c1fe4 100644 --- a/test/properties/publicproperties.zep +++ b/stub/properties/publicproperties.zep @@ -1,5 +1,5 @@ -namespace Test\Properties; +namespace Stub\Properties; class PublicProperties { diff --git a/test/properties/staticprivateproperties.zep b/stub/properties/staticprivateproperties.zep similarity index 92% rename from test/properties/staticprivateproperties.zep rename to stub/properties/staticprivateproperties.zep index ae9f61a43b..bec4bc13cd 100644 --- a/test/properties/staticprivateproperties.zep +++ b/stub/properties/staticprivateproperties.zep @@ -1,4 +1,4 @@ -namespace Test\Properties; +namespace Stub\Properties; class StaticPrivateProperties { diff --git a/test/properties/staticpropertyarray.zep b/stub/properties/staticpropertyarray.zep similarity index 93% rename from test/properties/staticpropertyarray.zep rename to stub/properties/staticpropertyarray.zep index 9ff799b4ad..0adeb591ac 100644 --- a/test/properties/staticpropertyarray.zep +++ b/stub/properties/staticpropertyarray.zep @@ -1,5 +1,5 @@ -namespace Test\Properties; +namespace Stub\Properties; /** * @link https://github.com/phalcon/zephir/issues/367 diff --git a/test/properties/staticprotectedproperties.zep b/stub/properties/staticprotectedproperties.zep similarity index 98% rename from test/properties/staticprotectedproperties.zep rename to stub/properties/staticprotectedproperties.zep index 4d5805f8c3..d0fdc9ac03 100644 --- a/test/properties/staticprotectedproperties.zep +++ b/stub/properties/staticprotectedproperties.zep @@ -1,5 +1,5 @@ -namespace Test\Properties; +namespace Stub\Properties; class StaticProtectedProperties { diff --git a/test/properties/staticpublicproperties.zep b/stub/properties/staticpublicproperties.zep similarity index 98% rename from test/properties/staticpublicproperties.zep rename to stub/properties/staticpublicproperties.zep index 52080e10d1..bb4de51944 100644 --- a/test/properties/staticpublicproperties.zep +++ b/stub/properties/staticpublicproperties.zep @@ -1,5 +1,5 @@ -namespace Test\Properties; +namespace Stub\Properties; class StaticPublicProperties { @@ -80,4 +80,4 @@ class StaticPublicProperties let self::someAdd += v; let self::someSub -= v; } -} \ No newline at end of file +} diff --git a/test/quantum.zep b/stub/quantum.zep similarity index 99% rename from test/quantum.zep rename to stub/quantum.zep index 8839f580e5..283109770f 100644 --- a/test/quantum.zep +++ b/stub/quantum.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Quantum { diff --git a/test/range.zep b/stub/range.zep similarity index 89% rename from test/range.zep rename to stub/range.zep index edf62d4497..1a30d9b319 100644 --- a/test/range.zep +++ b/stub/range.zep @@ -3,7 +3,7 @@ * Arithmetic operations */ -namespace Test; +namespace Stub; class Range { @@ -16,4 +16,4 @@ class Range { return 0...10; } -} \ No newline at end of file +} diff --git a/test/references.zep b/stub/references.zep similarity index 89% rename from test/references.zep rename to stub/references.zep index 0168090fd9..2d49ee90d7 100644 --- a/test/references.zep +++ b/stub/references.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class References { diff --git a/test/regexdna.zep b/stub/regexdna.zep similarity index 99% rename from test/regexdna.zep rename to stub/regexdna.zep index b2284cce4e..e29bf4141a 100644 --- a/test/regexdna.zep +++ b/stub/regexdna.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; /** * RegexDNA diff --git a/test/requires.zep b/stub/requires.zep similarity index 94% rename from test/requires.zep rename to stub/requires.zep index 7ec3511be1..cc5bd2610e 100644 --- a/test/requires.zep +++ b/stub/requires.zep @@ -1,7 +1,7 @@ -namespace Test; +namespace Stub; -use Test\Requires\External3; +use Stub\Requires\External3; class Requires { diff --git a/test/requires/External3.zep b/stub/requires/External3.zep similarity index 89% rename from test/requires/External3.zep rename to stub/requires/External3.zep index c50ff38068..68bde5d1cb 100644 --- a/test/requires/External3.zep +++ b/stub/requires/External3.zep @@ -3,7 +3,7 @@ * External3 operations */ -namespace Test\Requires; +namespace Stub\Requires; class External3 { diff --git a/test/resourcetest.zep b/stub/resourcetest.zep similarity index 97% rename from test/resourcetest.zep rename to stub/resourcetest.zep index 8fbbaa2e8a..1896b0f530 100644 --- a/test/resourcetest.zep +++ b/stub/resourcetest.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class ResourceTest { diff --git a/test/returns.zep b/stub/returns.zep similarity index 96% rename from test/returns.zep rename to stub/returns.zep index e492a15023..702930d261 100644 --- a/test/returns.zep +++ b/stub/returns.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Returns { diff --git a/test/router.zep b/stub/router.zep similarity index 95% rename from test/router.zep rename to stub/router.zep index 53c0689753..16a5bdefcd 100644 --- a/test/router.zep +++ b/stub/router.zep @@ -1,17 +1,17 @@ -namespace Test; +namespace Stub; /** - * Test\Router + * Stub\Router * - *

Test\Router is the standard framework router. Routing is the + *

Stub\Router is the standard framework router. Routing is the * process of taking a URI endpoint (that part of the URI which comes after the base URL) and * decomposing it into parameters to determine which module, controller, and * action of that controller should receive the request

* * * - * $router = new Test\Router(); + * $router = new Stub\Router(); * * $router->add( * "/documentation/{chapter}/{name}.{type:[a-z]+}", @@ -70,7 +70,7 @@ class Router const URI_SOURCE_SERVER_REQUEST_URI = 1; /** - * Test\Router constructor + * Stub\Router constructor * * @param boolean defaultRoutes */ @@ -102,7 +102,7 @@ class Router /** * Sets the dependency injector * - * @param Test\DiInterface dependencyInjector + * @param Stub\DiInterface dependencyInjector */ public function setDI( dependencyInjector) { @@ -112,7 +112,7 @@ class Router /** * Returns the internal dependency injector * - * @return Test\DiInterface + * @return Stub\DiInterface */ public function getDI() { @@ -156,7 +156,7 @@ class Router * * * @param string uriSource - * @return Test\Router + * @return Stub\Router */ public function setUriSource(var uriSource) { @@ -168,7 +168,7 @@ class Router * Set whether router must remove the extra slashes in the handled routes * * @param boolean remove - * @return Test\Router + * @return Stub\Router */ public function removeExtraSlashes(var remove) { @@ -180,7 +180,7 @@ class Router * Sets the name of the default namespace * * @param string namespaceName - * @return Test\Router + * @return Stub\Router */ public function setDefaultNamespace(var namespaceName) { @@ -192,7 +192,7 @@ class Router * Sets the name of the default module * * @param string moduleName - * @return Test\Router + * @return Stub\Router */ public function setDefaultModule(var moduleName) { @@ -204,7 +204,7 @@ class Router * Sets the default controller name * * @param string controllerName - * @return Test\Router + * @return Stub\Router */ public function setDefaultController(controllerName) { @@ -216,7 +216,7 @@ class Router * Sets the default action name * * @param string actionName - * @return Test\Router + * @return Stub\Router */ public function setDefaultAction(actionName) { @@ -236,7 +236,7 @@ class Router * * * @param array defaults - * @return Test\Router + * @return Stub\Router */ public function setDefaults(defaults) { @@ -566,13 +566,13 @@ class Router * @param string pattern * @param string/array paths * @param string httpMethods - * @return Test\Router\Route + * @return Stub\Router\Route */ public function add(pattern, paths=null, httpMethods=null) { var route; - // Every route is internally stored as a Test\Router\Route + // Every route is internally stored as a Stub\Router\Route let route = new Router\Route(pattern, paths, httpMethods), this->_routes[] = route; return route; @@ -583,7 +583,7 @@ class Router * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ public function addGet(pattern, paths=null) { @@ -595,7 +595,7 @@ class Router * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ public function addPost(pattern, paths=null) { @@ -607,7 +607,7 @@ class Router * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ public function addPut(pattern, paths=null) { @@ -619,7 +619,7 @@ class Router * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ public function addPatch(pattern, paths=null) { @@ -631,7 +631,7 @@ class Router * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ public function addDelete(pattern, paths=null) { @@ -643,7 +643,7 @@ class Router * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ public function addOptions(pattern, paths=null) { @@ -655,7 +655,7 @@ class Router * * @param string pattern * @param string/array paths - * @return Test\Router\Route + * @return Stub\Router\Route */ public function addHead(pattern, paths=null) { @@ -665,8 +665,8 @@ class Router /** * Mounts a group of routes in the router * - * @param Test\Router\Group route - * @return Test\Router + * @param Stub\Router\Group route + * @return Stub\Router */ public function mount(group) { @@ -715,7 +715,7 @@ class Router * Set a group of paths to be returned when none of the defined routes are matched * * @param array paths - * @return Test\Router + * @return Stub\Router */ public function notFound(paths) { @@ -789,7 +789,7 @@ class Router /** * Returns the route that matchs the handled URI * - * @return Test\Router\Route + * @return Stub\Router\Route */ public function getMatchedRoute() { @@ -819,7 +819,7 @@ class Router /** * Returns all the routes defined in the router * - * @return Test\Router\Route[] + * @return Stub\Router\Route[] */ public function getRoutes() { @@ -830,7 +830,7 @@ class Router * Returns a route object by its id * * @param string id - * @return Test\Router\Route + * @return Stub\Router\Route */ public function getRouteById(var id) { @@ -848,7 +848,7 @@ class Router * Returns a route object by its name * * @param string name - * @return Test\Router\Route + * @return Stub\Router\Route */ public function getRouteByName(var name) { diff --git a/test/router/exception.zep b/stub/router/exception.zep similarity index 64% rename from test/router/exception.zep rename to stub/router/exception.zep index 937f4cf4ab..e23f337da2 100644 --- a/test/router/exception.zep +++ b/stub/router/exception.zep @@ -1,13 +1,13 @@ /** - * Test\Router\Exception + * Stub\Router\Exception * * Exceptions generated by the router */ -namespace Test\Router; +namespace Stub\Router; class Exception extends \Exception { -} \ No newline at end of file +} diff --git a/test/router/route.zep b/stub/router/route.zep similarity index 97% rename from test/router/route.zep rename to stub/router/route.zep index 191ba85241..ae201873ca 100644 --- a/test/router/route.zep +++ b/stub/router/route.zep @@ -1,8 +1,8 @@ -namespace Test\Router; +namespace Stub\Router; /** - * Test\Router\Route + * Stub\Router\Route * * This class represents every route added to the router */ @@ -27,7 +27,7 @@ class Route protected _beforeMatch; /** - * Test\Router\Route constructor + * Stub\Router\Route constructor * * @param string pattern * @param array paths @@ -111,7 +111,7 @@ class Route * * * @param string|array httpMethods - * @return Test\Router\Route + * @return Stub\Router\Route */ public function via(httpMethods) { @@ -404,7 +404,7 @@ class Route * If the callback returns false the route is treaded as not matched * * @param callback callback - * @return Test\Router\Route + * @return Stub\Router\Route */ public function beforeMatch(callback) { @@ -487,7 +487,7 @@ class Route * * * @param string|array httpMethods - * @return Test\Router\Route + * @return Stub\Router\Route */ public function setHttpMethods(httpMethods) { @@ -513,7 +513,7 @@ class Route * * * @param string|array httpMethods - * @return Test\Router\Route + * @return Stub\Router\Route */ public function setHostname(hostname) { @@ -536,7 +536,7 @@ class Route * * @param string name * @param callable converter - * @return Test\Router\Route + * @return Stub\Router\Route */ public function convert(name, converter) { diff --git a/test/scall.zep b/stub/scall.zep similarity index 94% rename from test/scall.zep rename to stub/scall.zep index 83aa46dacb..3c7141adcb 100644 --- a/test/scall.zep +++ b/stub/scall.zep @@ -2,7 +2,7 @@ * Static Function calls */ -namespace Test; +namespace Stub; class Scall extends ScallParent { @@ -126,7 +126,7 @@ class Scall extends ScallParent { long i, j = 0; for i in range(1, k) { - let j += \Test\ScallExternal::testMethod3(p, p); + let j += \Stub\ScallExternal::testMethod3(p, p); } return j; } @@ -147,7 +147,7 @@ class Scall extends ScallParent public function interpolatedStaticReturn() -> string { - string className = "Test\\Scall"; + string className = "Stub\\Scall"; string methodName = "testMethodStatic"; return {className}::{methodName}(); @@ -155,7 +155,7 @@ class Scall extends ScallParent public function interpolatedStaticEcho() -> void { - string className = "Test\\Scall"; + string className = "Stub\\Scall"; string methodName = "testMethodStatic"; echo {className}::{methodName}(); diff --git a/test/scalldynamic.zep b/stub/scalldynamic.zep similarity index 96% rename from test/scalldynamic.zep rename to stub/scalldynamic.zep index 38cf90ba74..3b2176ff7f 100644 --- a/test/scalldynamic.zep +++ b/stub/scalldynamic.zep @@ -2,7 +2,7 @@ * Static Function calls */ -namespace Test; +namespace Stub; class ScallDynamic extends ScallParent { diff --git a/test/scallexternal.zep b/stub/scallexternal.zep similarity index 95% rename from test/scallexternal.zep rename to stub/scallexternal.zep index c45019978a..54a2978936 100644 --- a/test/scallexternal.zep +++ b/stub/scallexternal.zep @@ -2,7 +2,7 @@ * Call external static functions */ -namespace Test; +namespace Stub; class ScallExternal { diff --git a/test/scallparent.zep b/stub/scallparent.zep similarity index 96% rename from test/scallparent.zep rename to stub/scallparent.zep index d10af53768..25c612e2e4 100644 --- a/test/scallparent.zep +++ b/stub/scallparent.zep @@ -3,7 +3,7 @@ * Static Function calls */ -namespace Test; +namespace Stub; class ScallParent { diff --git a/test/scope.zep b/stub/scope.zep similarity index 98% rename from test/scope.zep rename to stub/scope.zep index 9c56698553..10f5c54b96 100644 --- a/test/scope.zep +++ b/stub/scope.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Scope { diff --git a/test/sort.zep b/stub/sort.zep similarity index 96% rename from test/sort.zep rename to stub/sort.zep index 9550116c0d..a2b2ed11fd 100644 --- a/test/sort.zep +++ b/stub/sort.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; class Sort { @@ -35,4 +35,4 @@ class Sort this->quick(right) ); } -} \ No newline at end of file +} diff --git a/test/spectralnorm.zep b/stub/spectralnorm.zep similarity index 98% rename from test/spectralnorm.zep rename to stub/spectralnorm.zep index fdc33e6545..90b482df6f 100644 --- a/test/spectralnorm.zep +++ b/stub/spectralnorm.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; /** * SpectralNorm diff --git a/test/spropertyaccess.zep b/stub/spropertyaccess.zep similarity index 99% rename from test/spropertyaccess.zep rename to stub/spropertyaccess.zep index 52469e5994..cef94f8500 100644 --- a/test/spropertyaccess.zep +++ b/stub/spropertyaccess.zep @@ -2,7 +2,7 @@ * Class with constructor + params */ -namespace Test; +namespace Stub; class SPropertyAccess { diff --git a/test/statements.zep b/stub/statements.zep similarity index 99% rename from test/statements.zep rename to stub/statements.zep index dc8da1f904..9dd5aaf791 100644 --- a/test/statements.zep +++ b/stub/statements.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class Statements { diff --git a/test/strings.zep b/stub/strings.zep similarity index 99% rename from test/strings.zep rename to stub/strings.zep index 48562e3212..a43648209c 100644 --- a/test/strings.zep +++ b/stub/strings.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class Strings { diff --git a/test/stubs.zep b/stub/stubs.zep similarity index 99% rename from test/stubs.zep rename to stub/stubs.zep index c26a6f9534..b1d5ed8dc1 100644 --- a/test/stubs.zep +++ b/stub/stubs.zep @@ -1,7 +1,7 @@ /** * Tests for IDE Stubs Generation */ -namespace Test; +namespace Stub; /** * Sample Class Description diff --git a/test/ternary.zep b/stub/ternary.zep similarity index 98% rename from test/ternary.zep rename to stub/ternary.zep index bccdac555d..409ec22111 100644 --- a/test/ternary.zep +++ b/stub/ternary.zep @@ -3,7 +3,7 @@ * Arithmetic operations */ -namespace Test; +namespace Stub; class Ternary { diff --git a/test/testinterface.zep b/stub/testinterface.zep similarity index 91% rename from test/testinterface.zep rename to stub/testinterface.zep index 691f9cbbc0..8e5331b168 100644 --- a/test/testinterface.zep +++ b/stub/testinterface.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; /** * Sample exception class diff --git a/test/trytest.zep b/stub/trytest.zep similarity index 99% rename from test/trytest.zep rename to stub/trytest.zep index f0fd9743b6..c4bf155a2e 100644 --- a/test/trytest.zep +++ b/stub/trytest.zep @@ -1,5 +1,5 @@ -namespace Test; +namespace Stub; use Exception, RuntimeException, DomainException; diff --git a/test/typehinting/testabstract.zep b/stub/typehinting/testabstract.zep similarity index 95% rename from test/typehinting/testabstract.zep rename to stub/typehinting/testabstract.zep index 2afef76a6c..4b388077db 100644 --- a/test/typehinting/testabstract.zep +++ b/stub/typehinting/testabstract.zep @@ -1,4 +1,4 @@ -namespace Test\TypeHinting; +namespace Stub\TypeHinting; abstract class TestAbstract { diff --git a/test/typeinstances.zep b/stub/typeinstances.zep similarity index 94% rename from test/typeinstances.zep rename to stub/typeinstances.zep index 0f48220ef5..5699197c72 100644 --- a/test/typeinstances.zep +++ b/stub/typeinstances.zep @@ -3,7 +3,7 @@ * Cast tests */ -namespace Test; +namespace Stub; class TypeInstances { diff --git a/test/typeoff.zep b/stub/typeoff.zep similarity index 99% rename from test/typeoff.zep rename to stub/typeoff.zep index 1d26f6a748..775262eb0d 100644 --- a/test/typeoff.zep +++ b/stub/typeoff.zep @@ -3,7 +3,7 @@ * OO operations */ -namespace Test; +namespace Stub; class Typeoff { diff --git a/test/unknownclass.zep b/stub/unknownclass.zep similarity index 56% rename from test/unknownclass.zep rename to stub/unknownclass.zep index 92037e825d..74e8199c34 100644 --- a/test/unknownclass.zep +++ b/stub/unknownclass.zep @@ -1,6 +1,6 @@ -namespace Test; +namespace Stub; class UnknownClass { -} \ No newline at end of file +} diff --git a/test/unsettest.zep b/stub/unsettest.zep similarity index 93% rename from test/unsettest.zep rename to stub/unsettest.zep index 8f4bc60cec..441add51f8 100644 --- a/test/unsettest.zep +++ b/stub/unsettest.zep @@ -1,63 +1,63 @@ - -/** - * Unset statement tests - */ - -namespace Test; - -class Unsettest -{ - protected property {get}; - - public function has(var key) - { - return isset this->property[key]; - } - - public function addValueToProperty(var key, var value) - { - let this->property[key] = value; - } - - public function testUnsetValueFromProperty(var key) - { - unset(this->property[key]); - } - - public function testUnsetFromArray(var arrayParameter) - { - unset(arrayParameter[0]); - return arrayParameter; - } - - public function testUnsetFromArrayByIndexVar(var arrayParameter, var index) - { - unset(arrayParameter[index]); - return arrayParameter; - } - - public function testUnsetProperty() - { - unset(this->property); - return this->property; - } - - public function testStdClassUnset() - { - var simpleObject; - let simpleObject = new \StdClass(); - - let simpleObject->property1 = 12345; - let simpleObject->property2 = "test"; - let simpleObject->property3 = 12345; - - unset(simpleObject->property2); - return simpleObject; - } - - public function testUnsetTypedArray(array arr, string key) - { - unset(arr[key]); - return arr; - } -} + +/** + * Unset statement tests + */ + +namespace Stub; + +class Unsettest +{ + protected property {get}; + + public function has(var key) + { + return isset this->property[key]; + } + + public function addValueToProperty(var key, var value) + { + let this->property[key] = value; + } + + public function testUnsetValueFromProperty(var key) + { + unset(this->property[key]); + } + + public function testUnsetFromArray(var arrayParameter) + { + unset(arrayParameter[0]); + return arrayParameter; + } + + public function testUnsetFromArrayByIndexVar(var arrayParameter, var index) + { + unset(arrayParameter[index]); + return arrayParameter; + } + + public function testUnsetProperty() + { + unset(this->property); + return this->property; + } + + public function testStdClassUnset() + { + var simpleObject; + let simpleObject = new \StdClass(); + + let simpleObject->property1 = 12345; + let simpleObject->property2 = "test"; + let simpleObject->property3 = 12345; + + unset(simpleObject->property2); + return simpleObject; + } + + public function testUnsetTypedArray(array arr, string key) + { + unset(arr[key]); + return arr; + } +} diff --git a/test/usetest.zep b/stub/usetest.zep similarity index 82% rename from test/usetest.zep rename to stub/usetest.zep index d86ae0305b..6cc7841ca4 100644 --- a/test/usetest.zep +++ b/stub/usetest.zep @@ -1,13 +1,13 @@ -namespace Test; +namespace Stub; -use \stdClass as StandardClass; -use \Countable; +use stdClass as StandardClass; +use Countable; use Oo\OoConstruct; use Oo as NsAlias; use Strings as TestStrings; -use \Test\Echoes as Echoes; +use Stub\Echoes as Echoes; class UseTest implements Countable { diff --git a/test/vars.zep b/stub/vars.zep similarity index 99% rename from test/vars.zep rename to stub/vars.zep index 5256a807b5..7af71ff6d1 100644 --- a/test/vars.zep +++ b/stub/vars.zep @@ -1,4 +1,4 @@ -namespace Test; +namespace Stub; class Vars { diff --git a/templates/Api/themes/api-base/static/jquery.min.js b/templates/Api/themes/api-base/static/jquery.min.js index 2717e5efc1..9fd22ca70b 100644 --- a/templates/Api/themes/api-base/static/jquery.min.js +++ b/templates/Api/themes/api-base/static/jquery.min.js @@ -1,4 +1,2 @@ -/*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ -!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.2",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b=a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=hb(),z=hb(),A=hb(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},eb=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fb){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function gb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+rb(o[l]);w=ab.test(a)&&pb(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function hb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ib(a){return a[u]=!0,a}function jb(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function kb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function lb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function nb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function ob(a){return ib(function(b){return b=+b,ib(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pb(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=gb.support={},f=gb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=gb.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",eb,!1):e.attachEvent&&e.attachEvent("onunload",eb)),p=!f(g),c.attributes=jb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=jb(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=jb(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(jb(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),jb(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&jb(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return lb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?lb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},gb.matches=function(a,b){return gb(a,null,null,b)},gb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return gb(b,n,null,[a]).length>0},gb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},gb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},gb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},gb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=gb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=gb.selectors={cacheLength:50,createPseudo:ib,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||gb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&gb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=gb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||gb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ib(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ib(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ib(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ib(function(a){return function(b){return gb(a,b).length>0}}),contains:ib(function(a){return a=a.replace(cb,db),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ib(function(a){return W.test(a||"")||gb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:ob(function(){return[0]}),last:ob(function(a,b){return[b-1]}),eq:ob(function(a,b,c){return[0>c?c+b:c]}),even:ob(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:ob(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:ob(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:ob(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function sb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function tb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ub(a,b,c){for(var d=0,e=b.length;e>d;d++)gb(a,b[d],c);return c}function vb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wb(a,b,c,d,e,f){return d&&!d[u]&&(d=wb(d)),e&&!e[u]&&(e=wb(e,f)),ib(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ub(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:vb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=vb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=vb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sb(function(a){return a===b},h,!0),l=sb(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sb(tb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wb(i>1&&tb(m),i>1&&rb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xb(a.slice(i,e)),f>e&&xb(a=a.slice(e)),f>e&&rb(a))}m.push(c)}return tb(m)}function yb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=vb(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&gb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ib(f):f}return h=gb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,yb(e,d)),f.selector=a}return f},i=gb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&pb(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&rb(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&pb(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=jb(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),jb(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||kb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&jb(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||kb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),jb(function(a){return null==a.getAttribute("disabled")})||kb(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),gb}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1; - return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML="
a",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function ab(){return!0}function bb(){return!1}function cb(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h]","i"),hb=/^\s+/,ib=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,jb=/<([\w:]+)/,kb=/\s*$/g,rb={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:k.htmlSerialize?[0,"",""]:[1,"X
","
"]},sb=db(y),tb=sb.appendChild(y.createElement("div"));rb.optgroup=rb.option,rb.tbody=rb.tfoot=rb.colgroup=rb.caption=rb.thead,rb.th=rb.td;function ub(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ub(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function vb(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wb(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xb(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function yb(a){var b=pb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function zb(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Ab(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Bb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xb(b).text=a.text,yb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!gb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(tb.innerHTML=a.outerHTML,tb.removeChild(f=tb.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ub(f),h=ub(a),g=0;null!=(e=h[g]);++g)d[g]&&Bb(e,d[g]);if(b)if(c)for(h=h||ub(a),d=d||ub(f),g=0;null!=(e=h[g]);g++)Ab(e,d[g]);else Ab(a,f);return d=ub(f,"script"),d.length>0&&zb(d,!i&&ub(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=db(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(lb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(jb.exec(f)||["",""])[1].toLowerCase(),l=rb[i]||rb._default,h.innerHTML=l[1]+f.replace(ib,"<$1>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&hb.test(f)&&p.push(b.createTextNode(hb.exec(f)[0])),!k.tbody){f="table"!==i||kb.test(f)?""!==l[1]||kb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ub(p,"input"),vb),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ub(o.appendChild(f),"script"),g&&zb(h),c)){e=0;while(f=h[e++])ob.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ub(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&zb(ub(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ub(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fb,""):void 0;if(!("string"!=typeof a||mb.test(a)||!k.htmlSerialize&&gb.test(a)||!k.leadingWhitespace&&hb.test(a)||rb[(jb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ib,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ub(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ub(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&nb.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ub(i,"script"),xb),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ub(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,yb),j=0;f>j;j++)d=g[j],ob.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qb,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Cb,Db={};function Eb(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fb(a){var b=y,c=Db[a];return c||(c=Eb(a,b),"none"!==c&&c||(Cb=(Cb||m("