Mini-palestra ministrada no stand do SERPRO no 16º FISL sobre as novidades do PHP7, a nova versão da linguagem que deve estar disponível em Outubro de 2015.
1. CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 1 / 16
PHP 7 Está chegando! O que você precisa saber www.galvao.eti.br
ImagemporVincentPontier
*
está chegando!
O que você precisa saber
2. Presidente da ABRAPHP – Associação Brasileira de Profissionais PHP
Diretor da PHP Conference Brasil
Contribui para a tradução da documentação oficial
Atua como Zend Framework Evangelist para o ZTeam, da Zend.
20+ anos desenvolvendo sistemas e aplicações com interface web
15+ destes com PHP
7+ com Zend Framework
Palestrante em eventos nacionais e internacionais
Instrutor de cursos presenciais e a distância
Fundador e líder do GU PHPBR
Fundador* e membro do GU PHPRS
Site: http://www.galvao.eti.br/
http://people.php.net/galvao
Twitter: @galvao
Slides e Documentos: http://slideshare.net/ergalvao
https://speakerdeck.com/galvao
Github: http://github.com/galvao
Posts: https://medium.com/@galvao
Quem?!
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 2 / 16
www.galvao.eti.brPHP: Evolução
3. F.A.Q.
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 3 / 16
www.galvao.eti.brPHP 7 Está chegando! O que você precisa saber
https://wiki.php.net/rfc
7?!
PHP 6 não existe!
Processo decisório
Quando?
Outubro (provavelmente!)
https://github.com/rlerdorf/php7dev
Quero agora!
5. Spaceship Operator
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 5 / 16
www.galvao.eti.brPHP 7 Está chegando! O que você precisa saber
1 <=> 0 → 1
P
ew
!
6. Spaceship Operator
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 6 / 16
www.galvao.eti.brPHP 7 Está chegando! O que você precisa saber
1 <=> 0 → 1
1 <=> 1 → 0
P
ew
!
P
ew
!
7. Spaceship Operator
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 7 / 16
www.galvao.eti.brPHP 7 Está chegando! O que você precisa saber
1 <=> 0 → 1
1 <=> 1 → 0
0 <=> 1 → -1 P
ew
!
P
ew
!
P
ew
!
8. NULL Coalesce Operator
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 8 / 16
www.galvao.eti.brPHP 7 Está chegando! O que você precisa saber
10. Adeus tags alternativas
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 10 / 16
www.galvao.eti.brPHP 7 Está chegando! O que você precisa saber
<%
<script language=”php”>
Já vão tarde!
11. Adeus MySQL! (CALMA!)
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 11 / 16
www.galvao.eti.brPHP 7 Está chegando! O que você precisa saber
mysql_*
mysqli_* / PDO
12. STH + Strict Mode + Return Type Declarations + Engine Exceptions
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 12 / 16
www.galvao.eti.brPHP 7 Está chegando! O que você precisa saber
* Type Widening ** Uncaught EngineException
13. STH + Strict Mode + Return Type Declarations + Engine Exceptions
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 13 / 16
www.galvao.eti.brPHP 7 Está chegando! O que você precisa saber
* Type Widening ** Uncaught EngineException
14. E mais...
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 14 / 16
www.galvao.eti.brPHP 7 Está chegando! O que você precisa saber
Unicode Codepoint Escape Syntax
Closure call() Method
Filtered unserialize()
IntlChar Class
Expectations
Group use Declarations
Generator Return Expressions
Generator Delegation
Integer Division with intdiv()
session_start() Options
preg_replace_callback_array() Function
e essa é só a parte de “novidades”
15. Referências
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 15 / 16
www.galvao.eti.brPHP 7 Está chegando! O que você precisa saber
Referência, by Thomas Punt
https://github.com/tpunt/PHP7-Reference
PHP7 feature freeze, by Phil Sturgeon
https://philsturgeon.uk/php/2015/03/15/php-7-feature-freeze/
PHP7: More strict! (but only if you want it to be), by myself!
https://t.co/YSF8BBmkKr
16. Muito obrigado!
CC Attribution-ShareAlike 3.0 Unported License by Er Galvão Abbott - 7/10/15 - 16 / 16
www.galvao.eti.brPHP 7 Está chegando! O que você precisa saber
? Dúvidas?
↓ Críticas?
↑ Elogios?!