Library/ClassMethod.php
public function removeMemoryStackReferences(SymbolTable $symbolTable, $containerCode)
    {
        if (!$symbolTable->getMustGrownStack()) {
            $containerCode = str_replace('ZEPHIR_THROW_EXCEPTION_STR', 'ZEPHIR_THROW_EXCEPTION_STRW', $containerCode);
            $containerCode = str_replace('ZEPHIR_THROW_EXCEPTION_DEBUG_STR', 'ZEPHIR_THROW_EXCEPTION_DEBUG_STRW', $containerCode);
            $containerCode = str_replace('ZEPHIR_THROW_EXCEPTION_ZVAL', 'ZEPHIR_THROW_EXCEPTION_ZVALW', $containerCode);
            $containerCode = str_replace('RETURN_THIS', 'RETURN_THISW', $containerCode);
            $containerCode = str_replace('RETURN_LCTOR', 'RETURN_LCTORW', $containerCode);
            $containerCode = str_replace('RETURN_CTOR', 'RETURN_CTORW', $containerCode);
            $containerCode = str_replace('RETURN_NCTOR', 'RETURN_NCTORW', $containerCode);
            $containerCode = str_replace('RETURN_CCTOR', 'RETURN_CCTORW', $containerCode);
            $containerCode = str_replace('RETURN_MM_NULL', 'RETURN_NULL', $containerCode);
            $containerCode = str_replace('RETURN_MM_BOOL', 'RETURN_BOOL', $containerCode);
            $containerCode = str_replace('RETURN_MM_FALSE', 'RETURN_FALSE', $containerCode);
            $containerCode = str_replace('RETURN_MM_TRUE', 'RETURN_TRUE', $containerCode);
            $containerCode = str_replace('RETURN_MM_STRING', 'RETURN_STRING', $containerCode);
            $containerCode = str_replace('RETURN_MM_LONG', 'RETURN_LONG', $containerCode);
            $containerCode = str_replace('RETURN_MM_DOUBLE', 'RETURN_DOUBLE', $containerCode);
            $containerCode = str_replace('RETURN_MM_FALSE', 'RETURN_FALSE', $containerCode);
            $containerCode = str_replace('RETURN_MM_EMPTY_STRING', 'RETURN_MM_EMPTY_STRING', $containerCode);
            $containerCode = str_replace('RETURN_MM_EMPTY_ARRAY', 'RETURN_EMPTY_ARRAY', $containerCode);
            $containerCode = str_replace('RETURN_MM_MEMBER', 'RETURN_MEMBER', $containerCode);
            $containerCode = str_replace('RETURN_MM()', 'return', $containerCode);
            $containerCode = preg_replace('/[ \t]+ZEPHIR_MM_RESTORE\(\);'.PHP_EOL.'/s', '', $containerCode);
        }

        return $containerCode;
    }
public function removeMemoryStackReferences(SymbolTable $symbolTable, $containerCode)
    {
        if (!$symbolTable->getMustGrownStack()) {
            $containerCode = str_replace('ZEPHIR_THROW_EXCEPTION_STR', 'ZEPHIR_THROW_EXCEPTION_STRW', $containerCode);
            $containerCode = str_replace('ZEPHIR_THROW_EXCEPTION_DEBUG_STR', 'ZEPHIR_THROW_EXCEPTION_DEBUG_STRW', $containerCode);
            $containerCode = str_replace('ZEPHIR_THROW_EXCEPTION_ZVAL', 'ZEPHIR_THROW_EXCEPTION_ZVALW', $containerCode);
            $containerCode = str_replace('RETURN_THIS', 'RETURN_THISW', $containerCode);
            $containerCode = str_replace('RETURN_LCTOR', 'RETURN_LCTORW', $containerCode);
            $containerCode = str_replace('RETURN_CTOR', 'RETURN_CTORW', $containerCode);
            $containerCode = str_replace('RETURN_NCTOR', 'RETURN_NCTORW', $containerCode);
            $containerCode = str_replace('RETURN_CCTOR', 'RETURN_CCTORW', $containerCode);
            $containerCode = str_replace('RETURN_MM_NULL', 'RETURN_NULL', $containerCode);
            $containerCode = str_replace('RETURN_MM_BOOL', 'RETURN_BOOL', $containerCode);
            $containerCode = str_replace('RETURN_MM_FALSE', 'RETURN_FALSE', $containerCode);
            $containerCode = str_replace('RETURN_MM_TRUE', 'RETURN_TRUE', $containerCode);
            $containerCode = str_replace('RETURN_MM_STRING', 'RETURN_STRING', $containerCode);
            $containerCode = str_replace('RETURN_MM_LONG', 'RETURN_LONG', $containerCode);
            $containerCode = str_replace('RETURN_MM_DOUBLE', 'RETURN_DOUBLE', $containerCode);
            $containerCode = str_replace('RETURN_MM_FALSE', 'RETURN_FALSE', $containerCode);
            $containerCode = str_replace('RETURN_MM_EMPTY_STRING', 'RETURN_MM_EMPTY_STRING', $containerCode);
            $containerCode = str_replace('RETURN_MM_EMPTY_ARRAY', 'RETURN_EMPTY_ARRAY', $containerCode);
            $containerCode = str_replace('RETURN_MM_MEMBER', 'RETURN_MEMBER', $containerCode);
            $containerCode = str_replace('RETURN_MM()', 'return', $containerCode);
            $containerCode = preg_replace('/[ \t]+ZEPHIR_MM_RESTORE\(\);'.PHP_EOL.'/s', '', $containerCode);
        }

        return $containerCode;
    }
public function removeMemoryStackReferences ( SymbolTable $ symbolTable , $ containerCode ) { if ( ! $ symbolTable -> getMustGrownStack ( ) ) { $ containerCode = str_replace ( 'ZEPHIR_THROW_EXCEPTION_STR' , 'ZEPHIR_THROW_EXCEPTION_STRW' , $ containerCode ) ; $ containerCode = str_replace ( 'ZEPHIR_THROW_EXCEPTION_DEBUG_STR' , 'ZEPHIR_THROW_EXCEPTION_DEBUG_STRW' , $ containerCode ) ; $ containerCode = str_replace ( 'ZEPHIR_THROW_EXCEPTION_ZVAL' , 'ZEPHIR_THROW_EXCEPTION_ZVALW' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_THIS' , 'RETURN_THISW' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_LCTOR' , 'RETURN_LCTORW' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_CTOR' , 'RETURN_CTORW' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_NCTOR' , 'RETURN_NCTORW' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_CCTOR' , 'RETURN_CCTORW' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_MM_NULL' , 'RETURN_NULL' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_MM_BOOL' , 'RETURN_BOOL' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_MM_FALSE' , 'RETURN_FALSE' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_MM_TRUE' , 'RETURN_TRUE' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_MM_STRING' , 'RETURN_STRING' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_MM_LONG' , 'RETURN_LONG' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_MM_DOUBLE' , 'RETURN_DOUBLE' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_MM_FALSE' , 'RETURN_FALSE' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_MM_EMPTY_STRING' , 'RETURN_MM_EMPTY_STRING' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_MM_EMPTY_ARRAY' , 'RETURN_EMPTY_ARRAY' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_MM_MEMBER' , 'RETURN_MEMBER' , $ containerCode ) ; $ containerCode = str_replace ( 'RETURN_MM()' , 'return' , $ containerCode ) ; $ containerCode = preg_replace ( '/[ \t]+ZEPHIR_MM_RESTORE\(\);' . PHP_EOL . '/s' , '' , $ containerCode ) ; } return $ containerCode ; }
Replace macros.

@param SymbolTable $symbolTable
@param string      $containerCode

@return mixed
Replace macros .