Lançado o PHP 7.0.1

Lançado o PHP 7.0.1

Atenção! Essa postagem foi escrita há mais de 2 anos. Na informática tudo evolui muito rápido e algumas informações podem estar desatualizadas. Embora o conteúdo possa continuar relevante, lembre-se de levar em conta a data de publicação enquanto estiver lendo. Caso tenha sugestões para atualizá-la, não deixe de comentar!

Foi publicada ontem (17/12) a primeira release do PHP 7 desde o seu lançamento, há duas semanas.

Essa atualização é altamente recomendada para quem já estiver utilizando o PHP 7 em produção, pois contém diversos bugfixes.

A lista de mudanças no core, publicadas no site, são as seguintes:

  • Fixed bug #71105 (Format String Vulnerability in Class Name Error Message).
  • Fixed bug #70831 (Compile fails on system with 160 CPUs).
  • Fixed bug #71006 (symbol referencing errors on Sparc/Solaris).
  • Fixed bug #70997 (When using parentClass:: instead of parent::, static context changed).
  • Fixed bug #70970 (Segfault when combining error handler with output buffering).
  • Fixed bug #70967 (Weird error handling for __toString when Error is thrown).
  • Fixed bug #70958 (Invalid opcode while using ::class as trait method paramater default value).
  • Fixed bug #70944 (try{ } finally{} can create infinite chains of exceptions).
  • Fixed bug #70931 (Two errors messages are in conflict).
  • Fixed bug #70904 (yield from incorrectly marks valid generator as finished).
  • Fixed bug #70899 (buildconf failure in extensions).
  • Fixed bug #61751 (SAPI build problem on AIX: Undefined symbol: php_register_internal_extensions).
  • Fixed \int (or generally every scalar type name with leading backslash) to not be accepted as type name.
  • Fixed exception not being thrown immediately into a generator yielding from an array.
  • Fixed bug #70987 (static::class within Closure::call() causes segfault).
  • Fixed bug #71013 (Incorrect exception handler with yield from).
  • Fixed double free in error condition of format printer.

A lista completa de correções pode ser encontrada no changelog do PHP.