0
respostas

Erro ao executar o teste.php

O seguinte erro ocorre ao executar o arquivo teste.php

<?php

use Alura\Doctrine\Helper\EntityManagerFactory;

require_once DIR . '/vendor/autoload.php';

$entityManagerFactory = new EntityManagerFactory(); $entityManager = $entityManagerFactory->getEntityManager();

var_dump($entityManager->getConnection());

MENSAGEM DE ERRO:

Output - Internal WebServer (doctrine-alura)

"C:\Users\User\Documents\CURSOS ALURA\PHP\php-8.0.9-nts-Win32-vs16-x64\php.exe" "-S" "localhost:8000" [Thu Sep 16 09:26:46 2021] PHP Warning: 'C:\Program Files\Java\jdk1.8.0_291\jre\bin\VCRUNTIME140.dll' 14.15 is not compatible with this PHP build linked with 14.29 in Unknown on line 0 Done.

ESTOU UTILIZANDO: Product Version: Apache NetBeans IDE 12.4 Java: 1.8.0_291; Java HotSpot(TM) 64-Bit Server VM 25.291-b10 Runtime: Java(TM) SE Runtime Environment 1.8.0_291-b10 System: Windows 10 version 10.0 running on amd64; Cp1252; pt_BR (nb) User directory: C:\Users\User\AppData\Roaming\NetBeans\12.4 Cache directory: C:\Users\User\AppData\Local\NetBeans\Cache\12.4

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software