{"id":4210,"date":"2020-10-30T21:36:45","date_gmt":"2020-10-30T20:36:45","guid":{"rendered":"https:\/\/webhosting.de\/?p=4210"},"modified":"2020-10-30T21:36:45","modified_gmt":"2020-10-30T20:36:45","slug":"php7-um-novo-marco","status":"publish","type":"post","link":"https:\/\/webhosting.de\/pt\/php7-ein-neuer-meilenstein\/","title":{"rendered":"php7 - um novo marco"},"content":{"rendered":"<p>Desde <a href=\"https:\/\/webhosting.de\/pt\/php\/\">PHP<\/a> 5, que foi lan\u00e7ada em 2004, a vers\u00e3o 7, que foi lan\u00e7ada em dezembro de 2015, \u00e9 a primeira inova\u00e7\u00e3o em PHP em cerca de dez anos. A vers\u00e3o 6 tamb\u00e9m foi originalmente planejada, mas seu desenvolvimento foi descontinuado e algumas melhorias foram incorporadas em uma vers\u00e3o 5. Ap\u00f3s o fracasso da vers\u00e3o 6, os desenvolvedores discordaram se a nova vers\u00e3o do PHP deveria ou n\u00e3o levar a declara\u00e7\u00e3o do nome anterior, mas a maioria da ger\u00eancia votou para continuar o nome com um novo n\u00famero de vers\u00e3o. A falhada vers\u00e3o 6 tamb\u00e9m riscou a imagem da empresa, raz\u00e3o pela qual foram feitos esfor\u00e7os para fornecer caracter\u00edsticas qualitativas ao PHP 7.<\/p>\n<h3>Grande limpeza de molas<\/h3>\n<p>Para reiniciar, foi necess\u00e1rio remover recursos desatualizados pela primeira vez. Em uma grande opera\u00e7\u00e3o de limpeza, as interfaces para software que n\u00e3o era mais mantido foram removidas e v\u00e1rias fun\u00e7\u00f5es foram completamente removidas. Muitas das funcionalidades obsoletas j\u00e1 causaram mensagens de erro e ao remov\u00ea-las, os programadores ser\u00e3o impedidos de trabalhar com funcionalidades obsoletas e ter\u00e3o de fazer o trabalho duas vezes em caso de erro. Al\u00e9m disso, a sintaxe das vari\u00e1veis foi trazida para um esquema uniforme, mas os programadores ter\u00e3o que prestar aten\u00e7\u00e3o a isso no futuro, pois isso tamb\u00e9m pode mudar a sem\u00e2ntica das express\u00f5es. No entanto, esta limpeza de mola n\u00e3o foi f\u00e1cil, pois o PHP 5 j\u00e1 \u00e9 um sistema t\u00e3o complexo, pois muitas vezes faz mais sentido reescrever componentes em partes em vez de mexer neles.<\/p>\n<h3>Facebook e PHP 7<\/h3>\n<p>O PHP \u00e9 uma linguagem que \u00e9 influenciada por outras linguagens, que por sua vez influenciam outras linguagens. Entre outros, o Hack, a linguagem utilizada para desenvolver <a href=\"https:\/\/webhosting.de\/pt\/facebook-likes-kaufen-der-koenigsweg-zur-kundenvertreibung\/\">Facebook<\/a> \u00e9 baseado em PHP. No PHP 7, os desenvolvedores tamb\u00e9m copiaram parte da linguagem de desenvolvimento do Facebook, como a diversidade de tipos. Na vers\u00e3o 7, portanto, eles inclu\u00edram alguns novos tipos de retorno, entre outros, bem como outros novos tipos que supostamente tornariam a programa\u00e7\u00e3o mais estruturada e mais f\u00e1cil. O Facebook est\u00e1 definitivamente interessado em que as duas linguagens se movam em uma dire\u00e7\u00e3o similar, j\u00e1 que a M\u00e1quina Virtual usada para executar o Hack \u00e9 baseada em c\u00f3digo PHP padr\u00e3o. Portanto, alguns elementos do Hack na linguagem PHP originalmente derivada tamb\u00e9m est\u00e3o inclu\u00eddos na vers\u00e3o atual.<\/p>\n<h3>Suporte Unicode<\/h3>\n<p>Uma das caracter\u00edsticas novas mais importantes do PHP 7 \u00e9 o suporte melhorado do Unicode. Unicode, como a padroniza\u00e7\u00e3o de caracteres em diferentes linguagens, tornou-se um elemento indispens\u00e1vel de programa\u00e7\u00e3o em tempos de globaliza\u00e7\u00e3o e, portanto, o fornecimento de vers\u00f5es em diferentes linguagens faladas. Embora seja um elemento muito importante da programa\u00e7\u00e3o, at\u00e9 agora n\u00e3o tem sido tema de muita discuss\u00e3o na comunidade de programa\u00e7\u00e3o, e \u00e9 por isso que os desenvolvedores esperaram tanto tempo para finalmente integrar Unicode com UTF-8 no PHP 7.<\/p>\n<h3>Outras novidades<\/h3>\n<p>Outra caracter\u00edstica importante \u00e9 tamb\u00e9m a velocidade muito mais r\u00e1pida do PHP 7 em compara\u00e7\u00e3o com a vers\u00e3o anterior. Isto n\u00e3o se deve apenas \u00e0 remo\u00e7\u00e3o de caracter\u00edsticas obsoletas, mas tamb\u00e9m ao uso de tabelas de hash, que tornam a execu\u00e7\u00e3o muito mais r\u00e1pida. A estrutura de \u00edndice melhorada acelera a procura de certos <a href=\"https:\/\/webhosting.de\/pt\/personenbezogene-daten-sozialen-netzwerken\/\">Dados<\/a>especialmente quando se trata de sistemas t\u00e3o complexos, como \u00e9 o caso do PHP. Al\u00e9m disso, mais de 10.000 bugs foram corrigidos da vers\u00e3o anterior e o suporte para sistemas de 64 bits tamb\u00e9m foi inclu\u00eddo.<\/p>\n<h3>Dicas para a mudan\u00e7a<\/h3>\n<p>Os programadores t\u00eam pouco menos de um ano para mudar para a nova vers\u00e3o, j\u00e1 que o suporte ao PHP 5 ser\u00e1 descontinuado em agosto de 2016. Com este r\u00e1pido fim do suporte, os desenvolvedores n\u00e3o quiseram cometer o mesmo erro que cometeram com a vers\u00e3o 5, onde nenhum fim claro foi consertado e eles gastaram desnecessariamente muito tempo no suporte. Durante a migra\u00e7\u00e3o, os programadores devem, em primeiro lugar, remover eles pr\u00f3prios o c\u00f3digo desactualizado e, claro, n\u00e3o o utilizar no futuro. A sem\u00e2ntica \u00fanica tornou as constru\u00e7\u00f5es complexas sup\u00e9rfluas ou t\u00eam de ser usadas com muito menos frequ\u00eancia, o que torna o c\u00f3digo mais leg\u00edvel. Novas palavras-chave foram adicionadas, tais como novos tipos de dados, e o PHP 7 manteve os termos comuns que tamb\u00e9m s\u00e3o usados por outras linguagens de programa\u00e7\u00e3o.<\/p>","protected":false},"excerpt":{"rendered":"<p>Seit PHP 5, das 2004 ver\u00f6ffentlicht wurde, ist die Version 7, die im Dezember 2015 auf den Markt kam, die erste Neuerung von PHP in rund zehn Jahren. Geplant war urspr\u00fcnglich auch eine Version sechs, jedoch wurde deren Entwicklung eingestellt und stattdessen in einem Release der Version 5 einige Verbesserungen eingebaut. Nach dem Scheitern der [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":619,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_crdt_document":"","inline_featured_image":false,"footnotes":""},"categories":[680],"tags":[212,213],"class_list":["post-4210","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webdesign","tag-php","tag-php7"],"acf":[],"_wp_attached_file":null,"_wp_attachment_metadata":null,"litespeed-optimize-size":null,"litespeed-optimize-set":null,"_elementor_source_image_hash":null,"_wp_attachment_image_alt":null,"stockpack_author_name":null,"stockpack_author_url":null,"stockpack_provider":null,"stockpack_image_url":null,"stockpack_license":null,"stockpack_license_url":null,"stockpack_modification":null,"color":null,"original_id":null,"original_url":null,"original_link":null,"unsplash_location":null,"unsplash_sponsor":null,"unsplash_exif":null,"unsplash_attachment_metadata":null,"_elementor_is_screenshot":null,"surfer_file_name":null,"surfer_file_original_url":null,"envato_tk_source_kit":null,"envato_tk_source_index":null,"envato_tk_manifest":null,"envato_tk_folder_name":null,"envato_tk_builder":null,"envato_elements_download_event":null,"_menu_item_type":null,"_menu_item_menu_item_parent":null,"_menu_item_object_id":null,"_menu_item_object":null,"_menu_item_target":null,"_menu_item_classes":null,"_menu_item_xfn":null,"_menu_item_url":null,"_trp_menu_languages":null,"rank_math_primary_category":null,"rank_math_title":null,"inline_featured_image":null,"_yoast_wpseo_primary_category":null,"rank_math_schema_blogposting":null,"rank_math_schema_videoobject":null,"_oembed_049c719bc4a9f89deaead66a7da9fddc":null,"_oembed_time_049c719bc4a9f89deaead66a7da9fddc":null,"_yoast_wpseo_focuskw":"php7","_yoast_wpseo_linkdex":null,"_oembed_27e3473bf8bec795fbeb3a9d38489348":null,"_oembed_c3b0f6959478faf92a1f343d8f96b19e":null,"_trp_translated_slug_en_us":null,"_wp_desired_post_slug":null,"_yoast_wpseo_title":null,"tldname":null,"tldpreis":null,"tldrubrik":null,"tldpolicylink":null,"tldsize":null,"tldregistrierungsdauer":null,"tldtransfer":null,"tldwhoisprivacy":null,"tldregistrarchange":null,"tldregistrantchange":null,"tldwhoisupdate":null,"tldnameserverupdate":null,"tlddeletesofort":null,"tlddeleteexpire":null,"tldumlaute":null,"tldrestore":null,"tldsubcategory":null,"tldbildname":null,"tldbildurl":null,"tldclean":null,"tldcategory":null,"tldpolicy":null,"tldbesonderheiten":null,"tld_bedeutung":null,"_oembed_d167040d816d8f94c072940c8009f5f8":null,"_oembed_b0a0fa59ef14f8870da2c63f2027d064":null,"_oembed_4792fa4dfb2a8f09ab950a73b7f313ba":null,"_oembed_33ceb1fe54a8ab775d9410abf699878d":null,"_oembed_fd7014d14d919b45ec004937c0db9335":null,"_oembed_21a029d076783ec3e8042698c351bd7e":null,"_oembed_be5ea8a0c7b18e658f08cc571a909452":null,"_oembed_a9ca7a298b19f9b48ec5914e010294d2":null,"_oembed_f8db6b27d08a2bb1f920e7647808899a":null,"_oembed_168ebde5096e77d8a89326519af9e022":null,"_oembed_cdb76f1b345b42743edfe25481b6f98f":null,"_oembed_87b0613611ae54e86e8864265404b0a1":null,"_oembed_27aa0e5cf3f1bb4bc416a4641a5ac273":null,"_oembed_time_27aa0e5cf3f1bb4bc416a4641a5ac273":null,"_tldname":null,"_tldclean":null,"_tldpreis":null,"_tldcategory":null,"_tldsubcategory":null,"_tldpolicy":null,"_tldpolicylink":null,"_tldsize":null,"_tldregistrierungsdauer":null,"_tldtransfer":null,"_tldwhoisprivacy":null,"_tldregistrarchange":null,"_tldregistrantchange":null,"_tldwhoisupdate":null,"_tldnameserverupdate":null,"_tlddeletesofort":null,"_tlddeleteexpire":null,"_tldumlaute":null,"_tldrestore":null,"_tldbildname":null,"_tldbildurl":null,"_tld_bedeutung":null,"_tldbesonderheiten":null,"_oembed_ad96e4112edb9f8ffa35731d4098bc6b":null,"_oembed_8357e2b8a2575c74ed5978f262a10126":null,"_oembed_3d5fea5103dd0d22ec5d6a33eff7f863":null,"_eael_widget_elements":null,"_oembed_0d8a206f09633e3d62b95a15a4dd0487":null,"_oembed_time_0d8a206f09633e3d62b95a15a4dd0487":null,"_aioseo_description":null,"_eb_attr":null,"_eb_data_table":null,"_oembed_819a879e7da16dd629cfd15a97334c8a":null,"_oembed_time_819a879e7da16dd629cfd15a97334c8a":null,"_acf_changed":null,"_wpcode_auto_insert":null,"_edit_last":null,"_edit_lock":null,"_oembed_e7b913c6c84084ed9702cb4feb012ddd":null,"_oembed_bfde9e10f59a17b85fc8917fa7edf782":null,"_oembed_time_bfde9e10f59a17b85fc8917fa7edf782":null,"_oembed_03514b67990db061d7c4672de26dc514":null,"_oembed_time_03514b67990db061d7c4672de26dc514":null,"rank_math_news_sitemap_robots":"index","rank_math_robots":["index"],"_eael_post_view_count":"4501","_trp_automatically_translated_slug_ru_ru":null,"_trp_automatically_translated_slug_et":"php7-a-uus-milestone","_trp_automatically_translated_slug_lv":"php7-a-jauns-mezgilis","_trp_automatically_translated_slug_fr_fr":null,"_trp_automatically_translated_slug_en_us":null,"_wp_old_slug":null,"_trp_automatically_translated_slug_da_dk":null,"_trp_automatically_translated_slug_pl_pl":null,"_trp_automatically_translated_slug_es_es":null,"_trp_automatically_translated_slug_hu_hu":null,"_trp_automatically_translated_slug_fi":"php7-a-uusi-virstanpylvaes","_trp_automatically_translated_slug_ja":"php7-1%e3%81%ae%e6%96%b0%e3%81%97%e3%81%84%e3%83%9e%e3%82%a4%e3%83%ab%e3%82%b9%e3%83%88%e3%83%bc%e3%83%b3","_trp_automatically_translated_slug_lt_lt":null,"_elementor_edit_mode":null,"_elementor_template_type":null,"_elementor_version":null,"_elementor_pro_version":null,"_wp_page_template":"default","_elementor_page_settings":null,"_elementor_data":null,"_elementor_css":null,"_elementor_conditions":null,"_happyaddons_elements_cache":null,"_oembed_75446120c39305f0da0ccd147f6de9cb":null,"_oembed_time_75446120c39305f0da0ccd147f6de9cb":null,"_oembed_3efb2c3e76a18143e7207993a2a6939a":null,"_oembed_time_3efb2c3e76a18143e7207993a2a6939a":null,"_oembed_59808117857ddf57e478a31d79f76e4d":null,"_oembed_time_59808117857ddf57e478a31d79f76e4d":null,"_oembed_965c5b49aa8d22ce37dfb3bde0268600":null,"_oembed_time_965c5b49aa8d22ce37dfb3bde0268600":null,"_oembed_81002f7ee3604f645db4ebcfd1912acf":null,"_oembed_time_81002f7ee3604f645db4ebcfd1912acf":null,"_elementor_screenshot":null,"_oembed_7ea3429961cf98fa85da9747683af827":null,"_oembed_time_7ea3429961cf98fa85da9747683af827":null,"_elementor_controls_usage":null,"_elementor_page_assets":[],"_elementor_screenshot_failed":null,"theplus_transient_widgets":["tp-video-player"],"_eael_custom_js":null,"_wp_old_date":null,"_trp_automatically_translated_slug_it_it":null,"_trp_automatically_translated_slug_pt_pt":null,"_trp_automatically_translated_slug_zh_cn":null,"_trp_automatically_translated_slug_nl_nl":null,"_trp_automatically_translated_slug_pt_br":null,"_trp_automatically_translated_slug_sv_se":null,"rank_math_analytic_object_id":"890","rank_math_internal_links_processed":null,"_trp_automatically_translated_slug_ro_ro":null,"_trp_automatically_translated_slug_sk_sk":null,"_trp_automatically_translated_slug_bg_bg":null,"_trp_automatically_translated_slug_sl_si":null,"litespeed_vpi_list":["webhostinglogo.png"],"litespeed_vpi_list_mobile":["webhostinglogo.png"],"rank_math_seo_score":null,"rank_math_contentai_score":null,"ilj_limitincominglinks":null,"ilj_maxincominglinks":null,"ilj_limitoutgoinglinks":null,"ilj_maxoutgoinglinks":null,"ilj_limitlinksperparagraph":null,"ilj_linksperparagraph":null,"ilj_blacklistdefinition":null,"ilj_linkdefinition":["php7 - ein neuer meilenstein","php7"],"_eb_reusable_block_ids":[],"rank_math_focus_keyword":"php7","rank_math_og_content_image":null,"_yoast_wpseo_metadesc":"Nur ein knappes Jahr haben Programmierer Zeit auf die neue Version umzusteigen, denn im August 2016 wird der Support f\u00fcr PHP 5 eingestellt.","_yoast_wpseo_content_score":null,"_yoast_wpseo_focuskeywords":null,"_yoast_wpseo_keywordsynonyms":null,"_yoast_wpseo_estimated-reading-time-minutes":null,"rank_math_description":"Nur ein knappes Jahr haben Programmierer Zeit auf die neue Version umzusteigen, denn im August 2016 wird der Support f\u00fcr PHP 5 eingestellt.","surfer_last_post_update":null,"surfer_last_post_update_direction":null,"surfer_keywords":null,"surfer_location":null,"surfer_draft_id":null,"surfer_permalink_hash":null,"surfer_scrape_ready":null,"_thumbnail_id":"619","footnotes":null,"_links":{"self":[{"href":"https:\/\/webhosting.de\/pt\/wp-json\/wp\/v2\/posts\/4210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhosting.de\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhosting.de\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhosting.de\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webhosting.de\/pt\/wp-json\/wp\/v2\/comments?post=4210"}],"version-history":[{"count":0,"href":"https:\/\/webhosting.de\/pt\/wp-json\/wp\/v2\/posts\/4210\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhosting.de\/pt\/wp-json\/wp\/v2\/media\/619"}],"wp:attachment":[{"href":"https:\/\/webhosting.de\/pt\/wp-json\/wp\/v2\/media?parent=4210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhosting.de\/pt\/wp-json\/wp\/v2\/categories?post=4210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhosting.de\/pt\/wp-json\/wp\/v2\/tags?post=4210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}