Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script de instalação SEI/SIP de versão 4.1.1 não funciona com SEI 4.0.11 #15

Closed
ljsts01 opened this issue Jun 2, 2023 · 1 comment

Comments

@ljsts01
Copy link

ljsts01 commented Jun 2, 2023

O trecho abaixo , existente tanto nos arquivos de instalação do SEI quanto do SIP da versão 4.1.1 do módulo, não funciona com a versão 4.0.11 do SEI.

O motivo é que o valor de VERSAO_INFRA no SEI 4.0.11 é 2.0.6. Dessa forma, pela lógica da validação abaixo, fica 206 < 16123 e então o script falha.

//testando versao do framework
            $numVersaoInfraRequerida = '1.612.3';
            $versaoInfraFormatada = (int)str_replace('.', '', VERSAO_INFRA);
            $versaoInfraReqFormatada = (int)str_replace('.', '', $numVersaoInfraRequerida);

            if ($versaoInfraFormatada < $versaoInfraReqFormatada) {
                $this->finalizar('VERSÃO DO FRAMEWORK PHP INCOMPATÍVEL (VERSÃO ATUAL ' . VERSAO_INFRA . ', SENDO REQUERIDA VERSÃO IGUAL OU SUPERIOR A ' . $numVersaoInfraRequerida . ')', true);
            }
@ljsts01 ljsts01 changed the title Script de instalação SEI/SIP não funciona com SEI 4.0.11 Script de instalação SEI/SIP de versão 4.1.1 não funciona com SEI 4.0.11 Jun 5, 2023
@neijobson
Copy link
Contributor

@ljsts01
Problema resolvido na versão que acabamos de publicar, a v4.1.2.
Leia atentamente os notes da release e o README.

https://github.com/anatelgovbr/mod-sei-pesquisa/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants