{"id":9859,"date":"2021-11-29T08:15:28","date_gmt":"2021-11-29T11:15:28","guid":{"rendered":"https:\/\/unimestre.com\/basedeconhecimento\/?p=9859"},"modified":"2021-11-29T09:20:44","modified_gmt":"2021-11-29T12:20:44","slug":"php-linguagem-e-atualizacoes","status":"publish","type":"post","link":"https:\/\/unimestresuperior.com\/basedeconhecimento\/php-linguagem-e-atualizacoes\/","title":{"rendered":"PHP &#8211; Linguagem e atualiza\u00e7\u00f5es"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">O sistema UNIMESTRE foi desenvolvido inicialmente em Delphi 6 e em PHP 4 l\u00e1 pelos anos 2000. Como as linguagens de programa\u00e7\u00e3o foram evoluindo, novos mecanismos de seguran\u00e7a precisam ser seguidos para evitar falhas de seguran\u00e7a. Por isso a base de programa\u00e7\u00e3o precisou evoluir tamb\u00e9m.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Acompanhe abaixo a evolu\u00e7\u00e3o da base de programa\u00e7\u00e3o do sistema UNIMESTRE em rela\u00e7\u00e3o ao PHP:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>PHP 1 ao 3<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">O PHP foi criado em 1997 e teve o apoio de milhares de usu\u00e1rios no mundo, somando 60 mil dom\u00ednios utilizando a linguagem em seu in\u00edcio. PHP significa Hypertext Pre Processor &#8211; algo como pr\u00e9 processador de texto HTML &#8211; que torna o HTML din\u00e2mico.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>PHP 4<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">O Portal Online teve seu motor desenvolvido originalmente em PHP 4.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Objetivo da vers\u00e3o PHP 4 foi:<\/span><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Melhorar a performance das aplica\u00e7\u00f5es (velocidade)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Permitir a modulariza\u00e7\u00e3o de c\u00f3digo &#8211; uso de classes<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Cria\u00e7\u00e3o do novo motor chamado Zend Engine.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><b>PHP 5<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">A partir de julho de 2004 o PHP5 foi lan\u00e7ado ap\u00f3s 4 anos de desenvolvimento. E logo o Portal Online foi migrado do PHP 4 para o PHP 5.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Objetivos da migra\u00e7\u00e3o para PHP 5:<\/span><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Permitir trabalhar com novo modelo de objetos &#8211; modernizar a programa\u00e7\u00e3o<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Permitir utilizar componentes e componentiza\u00e7\u00e3o com COMPOSER<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Garantir a seguran\u00e7a da aplica\u00e7\u00e3o, atrav\u00e9s de melhorias de seguran\u00e7a que ocorreram.\u00a0<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Corre\u00e7\u00f5es contra SQL Injection.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Corre\u00e7\u00f5es em fun\u00e7\u00f5es que podiam ser exploradas por hackers.<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Permitir utilizar AJAX atrav\u00e9s do XAJAX.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Status da convers\u00e3o do UNIMESTRE:<\/span><b> 100%<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Vamos prestar suporte para esta vers\u00e3o at\u00e9 <\/span><b>02\/2022.<\/b><span style=\"font-weight: 400;\"> A partir desta data o sistema UNIMESTRE n\u00e3o ser\u00e1 mais suportado pelo PHP5.<br \/>\n<strong>A partir de 03\/2022 se voc\u00ea tentar atualizar o Portal Online e estiver na vers\u00e3o 5, n\u00e3o ser\u00e1 poss\u00edvel realizar a atualiza\u00e7\u00e3o.<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>PHP 6<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">A vers\u00e3o oficial do PHP 6 n\u00e3o chegou a ser lan\u00e7ada publicamente pela desenvolvedora da linguagem. Ela n\u00e3o chegou a existir oficialmente.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>PHP 7<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Esta \u00e9 a vers\u00e3o de produ\u00e7\u00e3o do PHP e do UNIMESTRE tamb\u00e9m. Ela foi lan\u00e7ada depois de 11 anos de desenvolvimento em 2015 e traz muitas vantagens para a velocidade e seguran\u00e7a da aplica\u00e7\u00e3o:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Objetivos da migra\u00e7\u00e3o para PHP 7:<\/span><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">O PHP 7 \u00e9 de 9 a 11 vezes mais r\u00e1pido que o PHP 5 &#8211; melhorar o desempenho da aplica\u00e7\u00e3o.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Corre\u00e7\u00f5es de fun\u00e7\u00f5es na linguagem que acarretam em erros fatais.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Suporte 64 bits nos servidores.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Novas constru\u00e7\u00f5es e sintaxe que garantem mais estabilidade para a aplica\u00e7\u00e3o.<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Novas fun\u00e7\u00f5es<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Novos operadores<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Melhorada sistema de tipagem<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Novas constru\u00e7\u00f5es e sintaxe garantem mais seguran\u00e7a:<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Possibilidade de execu\u00e7\u00e3o de ferramentas de seguran\u00e7a no c\u00f3digo<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Corre\u00e7\u00e3o de diversas brechas na linguagem<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Indu\u00e7\u00e3o de tipos evita a explora\u00e7\u00e3o de brechas<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><b>Status da convers\u00e3o do UNIMESTRE: 100%<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>PHP 8\u00a0<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">O PHP continua sendo a linguagem mais utilizada na web.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">O PHP 8 foi lan\u00e7ado em 2020, e at\u00e9 2024 o UNIMESTRE precisa estar funcionando em PHP 8 tamb\u00e9m. Por enquanto n\u00e3o estamos prestando suporte para esta vers\u00e3o.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Principais novidades:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Desempenho 4 vezes superior ao PHP 7<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Fun\u00e7\u00f5es para Machine Learning<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Corre\u00e7\u00e3o de erros fatais do PHP<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Uni\u00e3o de tipos para evitar problemas de explora\u00e7\u00e3o de vulnerabilidades<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Adicionada novas fun\u00e7\u00f5es<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">https:\/\/www.php.net\/releases\/8.0\/pt_BR.php<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Status da convers\u00e3o do UNIMESTRE: 65%<\/b><\/p>\n<p>Como a convers\u00e3o ainda n\u00e3o est\u00e1 conclu\u00edda para o PHP 8, n\u00e3o vamos dar suporte para esta vers\u00e3o por enquanto.<\/p>\n<p>&nbsp;<\/p>\n<p><b>Empresas que utilizam o PHP<\/b><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Unimestre<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Facebook<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Twitter<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Wikipedia<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Tumblrr<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Slack<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">WordPress<\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>O sistema UNIMESTRE foi desenvolvido inicialmente em Delphi 6 e em PHP 4 l\u00e1 pelos anos 2000. Como as linguagens de programa\u00e7\u00e3o foram evoluindo, novos mecanismos de seguran\u00e7a precisam ser seguidos para evitar falhas de seguran\u00e7a. Por isso a base de programa\u00e7\u00e3o precisou evoluir tamb\u00e9m. &nbsp; Acompanhe abaixo a evolu\u00e7\u00e3o da base de programa\u00e7\u00e3o do [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":9860,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/unimestresuperior.com\/basedeconhecimento\/wp-json\/wp\/v2\/posts\/9859"}],"collection":[{"href":"https:\/\/unimestresuperior.com\/basedeconhecimento\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unimestresuperior.com\/basedeconhecimento\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unimestresuperior.com\/basedeconhecimento\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/unimestresuperior.com\/basedeconhecimento\/wp-json\/wp\/v2\/comments?post=9859"}],"version-history":[{"count":5,"href":"https:\/\/unimestresuperior.com\/basedeconhecimento\/wp-json\/wp\/v2\/posts\/9859\/revisions"}],"predecessor-version":[{"id":9865,"href":"https:\/\/unimestresuperior.com\/basedeconhecimento\/wp-json\/wp\/v2\/posts\/9859\/revisions\/9865"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unimestresuperior.com\/basedeconhecimento\/wp-json\/wp\/v2\/media\/9860"}],"wp:attachment":[{"href":"https:\/\/unimestresuperior.com\/basedeconhecimento\/wp-json\/wp\/v2\/media?parent=9859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unimestresuperior.com\/basedeconhecimento\/wp-json\/wp\/v2\/categories?post=9859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unimestresuperior.com\/basedeconhecimento\/wp-json\/wp\/v2\/tags?post=9859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}