Created
December 14, 2014 21:52
-
-
Save milhomem/192bd51c636c7930286f to your computer and use it in GitHub Desktop.
Translate PHP docs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: pt_BR/appendices/migration53.xml | |
=================================================================== | |
--- pt_BR/appendices/migration53.xml (revision 335291) | |
+++ pt_BR/appendices/migration53.xml (working copy) | |
@@ -1,41 +1,43 @@ | |
<?xml version="1.0" encoding="utf-8"?> | |
-<!-- $Revision$ --> | |
+<!-- EN-Revision: 331031 Maintainer: rogerioprado Status: wip --><!-- CREDITS: milhomem --> | |
<appendix xml:id="migration53" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
- <title>Migrating from PHP 5.2.x to PHP 5.3.x</title> | |
+ <title>Migrando do PHP 5.2.x para o PHP 5.3.x</title> | |
<simpara> | |
&manual.migration.seealso; | |
<link linkend="migration5">5.0.x</link>, | |
- <link linkend="migration51">5.1.x</link> and | |
- <link linkend="migration52">5.2.x</link>. | |
+ <link linkend="migration51">5.1.x</link>, | |
+ <link linkend="migration52">5.2.x</link>, | |
+ <link linkend="migration54">5.4.x</link> e | |
+ <link linkend="migration55">5.5.x</link>. | |
</simpara> | |
<section xml:id="migration53.changes"> | |
- <title>What has changed in PHP 5.3.x</title> | |
+ <title>O que mudou no PHP 5.3.x</title> | |
<simpara> | |
- Most improvements in PHP 5.3.x have no impact on existing code. There are | |
- a <link linkend="migration53.incompatible">few incompatibilities</link> | |
- and <link linkend="migration53.new-features">new features</link> that should | |
- be considered, and code should be tested before switching PHP | |
- versions in production environments. | |
+ A maior parte das melhorias feitas no PHP 5.3.x não causam impacto em um código anterior. | |
+ Existem <link linkend="migration53.incompatible">algumas incompatibilidades</link> | |
+ e <link linkend="migration53.new-features">novos recursos</link> que devem ser considerados, | |
+ e o código deve ser testado antes de trocar uma | |
+ versão do PHP em ambientes de produrção. | |
</simpara> | |
<simpara> | |
- For systems being upgraded from an older version of PHP, the relevant | |
- documentation is available at: | |
+ Para sistemas atulizados de uma versão anterior do PHP, a documentação relevante | |
+ estã disponível em: | |
</simpara> | |
<itemizedlist> | |
<listitem> | |
<simpara> | |
- <link linkend="migration52">Upgrade Notes for PHP 5.2.x</link>. | |
+ <link linkend="migration52">Notas de atualização do PHP 5.2.x</link>. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- <link linkend="migration51">Upgrade Notes for PHP 5.1.x</link>. | |
+ <link linkend="migration51">Notas de atualização do PHP 5.1.x</link>. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- <link linkend="migration5">Migrating from PHP 4 to PHP 5</link>. | |
+ <link linkend="migration5">Migrando do PHP 4 para o PHP 5</link>. | |
</simpara> | |
</listitem> | |
</itemizedlist> | |
@@ -42,64 +44,64 @@ | |
</section> | |
<section xml:id="migration53.incompatible"> | |
- <title>Backward Incompatible Changes</title> | |
+ <title>Mudanças incompatíveis com versões anteriores</title> | |
<simpara> | |
- Although most existing PHP 5 code should work without changes, please take | |
- note of some backward incompatible changes: | |
+ Embora a moir parte do código PHP 5 existente deva funcionar sem nenhuma alteração, por favor esteja ciente de | |
+ que existem algumas mudanças incompatíveis: | |
</simpara> | |
<itemizedlist> | |
<listitem> | |
<simpara> | |
- The newer internal parameter parsing API has been applied across all the | |
- extensions bundled with PHP 5.3.x. This parameter parsing API causes | |
- functions to return &null; when passed incompatible parameters. There are | |
- some exceptions to this rule, such as the <function>get_class</function> | |
- function, which will continue to return &false; on error. | |
+ A nova API interna de compilação de parametro foi aplicada em todas as extensões | |
+ embarcadas com o PHP 5.3.x. Esta API de compilação de parametro faz com | |
+ que as funções retornem &null; quando parametros incompatíveis | |
+ são enviados. Existem algumas exceções a esta regra, como a função <function>get_class</function>, | |
+ que continua retornando &false; para errors. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- <function>clearstatcache</function> no longer clears the realpath cache by | |
- default. | |
+ <function>clearstatcache</function> não limpa mais o cache do realpath | |
+ por padão. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- <function>realpath</function> is now fully platform-independent. | |
- Consequence of this is that invalid relative paths such as | |
- <literal>__FILE__ . "/../x"</literal> do not work anymore. | |
+ <function>realpath</function> agora é totalmente indepentende da plataforma. | |
+ A consequência disto é que caminhos relativos inválidos como | |
+ <literal>__FILE__ . "/../x"</literal> não vão mais funcionar. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- The <function>call_user_func</function> family of functions now propagate | |
- <literal>$this</literal> even if the callee is a parent class. | |
+ A família de funções do <function>call_user_func</function> agora propagam | |
+ <literal>$this</literal> mesmo que o invocador seja uma classe pai. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- The array functions <function>natsort</function>, | |
+ As funções para array <function>natsort</function>, | |
<function>natcasesort</function>, <function>usort</function>, | |
<function>uasort</function>, <function>uksort</function>, | |
- <function>array_flip</function>, and <function>array_unique</function> no | |
- longer accept objects passed as arguments. To apply these functions to an | |
- object, cast the object to an array first. | |
+ <function>array_flip</function>, e <function>array_unique</function> | |
+ não aceitam mais objetos enviados como argumentos. Para continuar enviando | |
+ objetos, primeiro converta o objeto para um array. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- The behaviour of functions with by-reference parameters called by value has | |
- changed. Where previously the function would accept the by-value argument, | |
- a fatal error is now emitted. Any previous code passing constants or | |
- literals to functions expecting references, will need altering to assign | |
- the value to a variable before calling the function. | |
+ O comportamento de funções com parametros por referência mas chamadas pelo valor mudou. Onde antes a função | |
+ aceitaria um argumento pelo valor, | |
+ um erro falta é emitido. Qualquer código anterior passando constantes ou | |
+ literais para funções esperando referências, devem ser alterados para associar | |
+ o valor a uma variável antes de chamar a função. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- The new mysqlnd library necessitates the use of MySQL 4.1's newer 41-byte | |
- password format. Continued use of the old 16-byte passwords will cause | |
- <function>mysql_connect</function> and similar functions to emit the error, | |
+ A nova biblioteca do mysqlnd precisa precisa do novo formato de senhas do MySQL 4.1 com 41 bytes. | |
+ O uso do antigo formato de 16 bytes faz com que o | |
+ <function>mysql_connect</function> e funções similares emitam o erro: | |
<literal>"mysqlnd cannot connect to MySQL 4.1+ using old | |
authentication."</literal> | |
</simpara> | |
@@ -106,65 +108,65 @@ | |
</listitem> | |
<listitem> | |
<simpara> | |
- The new mysqlnd library does not read mysql configuration files | |
- (my.cnf/my.ini), as the older libmysql library does. If your code relies on | |
- settings in the configuration file, you can load it explicitly with the | |
- <function>mysqli_options</function> function. Note that this means the | |
- PDO specific constants <constant>PDO::MYSQL_ATTR_READ_DEFAULT_FILE</constant> | |
- and <constant>PDO::MYSQL_ATTR_READ_DEFAULT_GROUP</constant> are not defined | |
- if MySQL support in PDO is compiled with mysqlnd. | |
+ A nova biblioteca do mysqlnd não lê os arquivos de configurações do mysql | |
+ (my.cnf/my.ini), como a antiga biblioteca faz. Se seu código confia nas configurações contidas no | |
+ arquivo de configuração, você pode ler explicitamente com a função | |
+ <function>mysqli_options</function>. Perceba que isso significa que as constantes | |
+ específicas do PDO <constant>PDO::MYSQL_ATTR_READ_DEFAULT_FILE</constant> | |
+ e <constant>PDO::MYSQL_ATTR_READ_DEFAULT_GROUP</constant> não serão definidas se o suporte ao | |
+ MySQL no PDO for compilado com o mysqlnd. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- The trailing / has been removed from the <classname>SplFileInfo</classname> | |
- class and other related directory classes. | |
+ A / no final foi removida da classe <classname>SplFileInfo</classname> | |
+ e outras classes de diretórios relacionados. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- The <link linkend="object.tostring">__toString()</link> magic | |
- method can no longer accept arguments. | |
+ O método mágico <link linkend="object.tostring">__toString()</link> | |
+ não mais aceita argumentos. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- The magic methods | |
+ Os métodos mágicos | |
<link linkend="object.get">__get()</link>, | |
<link linkend="object.set">__set()</link>, | |
<link linkend="object.isset">__isset()</link>, | |
- <link linkend="object.unset">__unset()</link>, and | |
- <link linkend="object.call">__call()</link> must always | |
- be public and can no longer be static. Method signatures are now enforced. | |
+ <link linkend="object.unset">__unset()</link>, e | |
+ <link linkend="object.call">__call()</link> devem sempre | |
+ ser declarados como public e não podem mais ser static. As assinaturas de método agora são obrigatórias. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- The <link linkend="object.call">__call()</link> | |
- magic method is now invoked on access to private and protected methods. | |
+ O método mágico <link linkend="object.call">__call()</link> | |
+ agora é invocado no acesso de métodos private e protected. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- <function>func_get_arg</function>, <function>func_get_args</function> and | |
- <function>func_num_args</function> can no longer be called from the | |
- outermost scope of a file that has been included by calling | |
- <function>include</function> or <function>require</function> from within | |
- a function in the calling file. | |
+ <function>func_get_arg</function>, <function>func_get_args</function> e | |
+ <function>func_num_args</function> não podem mais ser chamadas do escopo | |
+ mais alto de um arquivo que foi incluído pela função | |
+ <function>include</function> ou <function>require</function> de dentro da função | |
+ no arquivo que fez a chamada. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- An emulation layer for the MHASH extension to wrap around the Hash extension | |
- have been added. However not all the algorithms are covered, notable the | |
- s2k hashing algorithm. This means that s2k hashing is no longer available | |
- as of PHP 5.3.0. | |
+ Uma camada de emulação para a extensão MHASH para encapsular a extensão Hash | |
+ foi adicionada. Entretando nem todos os algorítimos foram cobertos, notavelmente | |
+ o algorítimo de hash s2k. Isso significa que o s2k não está mais disponível | |
+ no PHP 5.3.0. | |
</simpara> | |
</listitem> | |
</itemizedlist> | |
<simpara> | |
- The following keywords are now reserved and may not be used in function, | |
- class, etc. names. | |
+ As seguintes palavras chaves agora estão reservadas e não podem ser utilizadas em funções, | |
+ classes, nomes e etc. | |
</simpara> | |
<itemizedlist> | |
<listitem> | |
@@ -181,102 +183,140 @@ | |
</section> | |
<section xml:id="migration53.new-features"> | |
- <title>New features</title> | |
+ <title>Novos recursos</title> | |
<simpara> | |
- PHP 5.3.0 offers a wide range of new features: | |
+ PHP 5.3.0 oferece uma grande gama de novos recursos: | |
</simpara> | |
<itemizedlist> | |
<listitem> | |
<simpara> | |
- Support for <link linkend="language.namespaces">namespaces</link> has been | |
- added. | |
+ Suporte para <link linkend="language.namespaces">namespaces</link> foi | |
+ adicionado. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- Support for <link linkend="language.oop5.late-static-bindings">Late Static | |
- Bindings</link> has been added. | |
+ Suporte para <link linkend="language.oop5.late-static-bindings">Late Static | |
+ Bindings</link> foi adicionado. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- Support for <link linkend="control-structures.goto">jump labels</link> | |
- (limited goto) has been added. | |
+ Suporte para <link linkend="control-structures.goto">jump labels</link> | |
+ (limitado a goto) foi adicionado. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- Support for native <link linkend="functions.anonymous">Closures</link> | |
- (Lambda/Anonymous functions) has been added. | |
+ Suporte nativo para <link linkend="functions.anonymous">Closures</link> | |
+ (função Lambda/Anônima) foi adicionado. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- There are two new magic methods, | |
- <link linkend="object.callstatic">__callStatic()</link> and | |
+ Existem dois novos métodos mágicos, | |
+ <link linkend="object.callstatic">__callStatic()</link> e | |
<link linkend="object.invoke">__invoke()</link>. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- <link linkend="language.types.string.syntax.nowdoc">Nowdoc</link> syntax is | |
- now supported, similar to | |
- <link linkend="language.types.string.syntax.heredoc">Heredoc</link> syntax, | |
- but with single quotes. | |
+ <link linkend="language.types.string.syntax.nowdoc">Nowdoc</link> sintaxe é | |
+ suportada agora, similar a | |
+ <link linkend="language.types.string.syntax.heredoc">Heredoc</link> sintaxe, | |
+ mas com aspas simples. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- It is now possible to use | |
- <link linkend="language.types.string.syntax.heredoc">Heredoc</link>s to | |
- initialize static variables and class properties/constants. | |
+ Agora é possível usar | |
+ <link linkend="language.types.string.syntax.heredoc">Heredoc</link>s para | |
+ inicializar variáveis estáticas e propriedades/constantes de classes. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- <link linkend="language.types.string.syntax.heredoc">Heredoc</link>s may | |
- now be declared using double quotes, complementing the | |
- <link linkend="language.types.string.syntax.nowdoc">Nowdoc</link> syntax. | |
+ <link linkend="language.types.string.syntax.heredoc">Heredoc</link>s pode | |
+ ser declarado com aspas duplas, complementando a sintaxe do | |
+ <link linkend="language.types.string.syntax.nowdoc">Nowdoc</link>. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- <link linkend="language.constants.syntax">Constants</link> can now be | |
- declared outside a class using the <literal>const</literal> keyword. | |
+ <link linkend="language.constants.syntax">Constantes</link> pode ser | |
+ declaradas fora da classe usando o palavra chave <literal>const</literal>. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- The <link linkend="language.operators.comparison.ternary">ternary</link> | |
- operator now has a shorthand form: <literal>?:</literal>. | |
+ O operador <link linkend="language.operators.comparison.ternary">ternário</link> | |
+ operator agora tem uma forma de atalho: <literal>?:</literal>. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- The HTTP stream wrapper now considers all status codes from 200 to 399 to | |
- be successful. | |
+ O HTTP stream wrapper agora considera todos os códigos de status do 200 ao 399 | |
+ como status de sucesso. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- Dynamic access to static methods is now possible. | |
+ Acesso dinâmico a métodos státicos agora é possível: | |
</simpara> | |
+ <informalexample> | |
+ <programlisting role="php"> | |
+<![CDATA[ | |
+<?php | |
+class C { | |
+ public static $foo = 123; | |
+} | |
+ | |
+$a = "C"; | |
+echo $a::$foo; | |
+?> | |
+]]> | |
+ </programlisting> | |
+ &example.outputs; | |
+ <screen> | |
+<![CDATA[ | |
+123 | |
+]]> | |
+ </screen> | |
+ </informalexample> | |
</listitem> | |
<listitem> | |
<simpara> | |
- <link linkend="language.exceptions">Exceptions</link> can now be nested. | |
+ <link linkend="language.exceptions">Exceptions</link> podem ser aninhados: | |
</simpara> | |
+ <informalexample> | |
+ <programlisting role="php"> | |
+<![CDATA[ | |
+<?php | |
+class MyCustomException extends Exception {} | |
+ | |
+try { | |
+ throw new MyCustomException("Exceptional", 112); | |
+} catch (Exception $e) { | |
+ /* Note the use of the third parameter to pass $e | |
+ * into the RuntimeException. */ | |
+ throw new RuntimeException("Rethrowing", 911, $e); | |
+} | |
+?> | |
+]]> | |
+ </programlisting> | |
+ </informalexample> | |
</listitem> | |
<listitem> | |
<simpara> | |
- A garbage collector for circular references has been added, and is enabled | |
- by default. | |
+ Um <link linkend="features.gc">garbage collector</link> para referências circulares | |
+ foi adicionado, e agora está ativo por padrão. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- The <function>mail</function> function now supports logging of sent email. | |
- (Note: This only applies to email sent through this function.) | |
+ A função <function>mail</function> agora tem suporte para registrar em log o email enviado | |
+ via a diretiva de configuração <link linkend="ini.mail.log">mail.log</link>. | |
+ (Nota: Isto se aplica apenas para emails enviados através desta função.) | |
</simpara> | |
</listitem> | |
</itemizedlist> | |
@@ -283,57 +323,57 @@ | |
</section> | |
<section xml:id="migration53.windows"> | |
- <title>Changes made to Windows support</title> | |
+ <title>Mudanças feitas para suporte ao Windows</title> | |
<simpara> | |
- Changes to the Windows releases: | |
+ Mudanças para a versão do Windows: | |
</simpara> | |
<itemizedlist> | |
<listitem> | |
<simpara> | |
- The minimum Windows version is now Windows XP SP3; Windows 98, ME, 2000 and NT4 | |
- are no longer supported. | |
+ O versão mínima do Windows agora é o Windows XP SP3. Windows 98, ME, 2000 e NT | |
+ não são mais suportados. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- Windows binaries now target i586 and later. i386 and i486 are not | |
- supported. | |
+ Os binários do Windows são construídos para i586 e mais novos. i386 e i486 não são | |
+ suportados. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- There is now experimental support for x64 versions of PHP on Windows. | |
+ Agora existe um suporte experimental para versões x64 do PHP para Windows. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- There is now compiler support for Visual C++ 9 (VC9), using Visual Studio | |
- 2008. Snapshots and releases will now also be available for VC9. Old | |
- binaries using VC6 are still supported and released in the line with VC9. | |
+ Agora existe suporte para o compilador do Visual C++ 9 (VC9), usando Visual Studio | |
+ 2008. Snapshots e releases serão disponibilizadas para VC9. Binários antigos | |
+ usando VC6 ainda são suportados e disponibilizados em linha com o VC9. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- The <link linkend="ref.pdo-oci">PDO_OCI</link> | |
- <literal>php_pdo_oci8.dll</literal> library (for use with Oracle version 8 | |
- client libraries) is no longer being built. Instead, use | |
- <literal>php_pdo_oci.dll</literal> (note no '8') with Oracle 10 or 11 | |
- client libraries. Connection to other database versions is still supported. | |
+ A biblioteca <link linkend="ref.pdo-oci">PDO_OCI</link> | |
+ <literal>php_pdo_oci8.dll</literal> (para uso com bibliotecas cliente | |
+ do Oracle versão 8) não está mais sendo construída. Em vez disso, use | |
+ <literal>php_pdo_oci.dll</literal> (note que não tem '8') com bibliotecas cliente do Oracle 10 ou 11. | |
+ Conexões para outras versões do banco de dados ainda são suportadas. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- For the <link linkend="book.oci8">OCI8</link> extension, a new library | |
- <literal>php_oci8_11g.dll</literal> is available in addition to | |
- <literal>php_oci8.dll</literal>. Only one can be enabled at any time. Use | |
- <literal>php_oci8.dll</literal> with Oracle 10.2 client libraries. Use | |
- <literal>php_oci8_11g.dll</literal> with Oracle 11 client libraries. | |
- Connection to other database versions is still supported. | |
+ Para a extensão <link linkend="book.oci8">OCI8</link>, uma nova biblioteca | |
+ <literal>php_oci8_11g.dll</literal> está disponível em adição à | |
+ <literal>php_oci8.dll</literal>. Só uma pode ser ativada por vez. Use | |
+ <literal>php_oci8.dll</literal> com bibliotecas cliente do Oracle 10.2. Use | |
+ <literal>php_oci8_11g.dll</literal> com bibliotecas cliente do Oracle 11. | |
+ Conexões para outras versões do banco de dados ainda são suportadas. | |
</simpara> | |
</listitem> | |
</itemizedlist> | |
<simpara> | |
- Windows support has been added for the following functions: | |
+ Suporte ao Windows foi adicionado para as seguintes funções: | |
</simpara> | |
<itemizedlist> | |
<listitem> | |
@@ -399,8 +439,8 @@ | |
<listitem> | |
<simpara> | |
<function>socket_create_pair</function> | |
- - This function was previously available on Windows, but was disabled as of | |
- PHP 4.3.0 due to a bug. | |
+ - Esta função já estava disponível no Windows, mas foi desativada no | |
+ PHP 4.3.0 devido à um bug. | |
</simpara> | |
</listitem> | |
<listitem> | |
@@ -425,23 +465,23 @@ | |
</listitem> | |
</itemizedlist> | |
<simpara> | |
- Other changes: | |
+ Outras modifições: | |
</simpara> | |
<itemizedlist> | |
<listitem> | |
<simpara> | |
- Improved portability of the <function>stat</function>, | |
+ Melhoramos a portabilidade das funções <function>stat</function>, | |
<function>touch</function>, <function>filemtime</function>, | |
- <function>filesize</function> functions, and other related functions (100% | |
- portable for the available data). | |
+ <function>filesize</function>, e outras funções relacionadas (100% | |
+ portável para o dado disponível). | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- It is now possible to create hard links on Windows using the | |
- <function>link</function> function, and symbolic links using the | |
- <function>symlink</function> function. Hard links are available as of | |
- Windows 2000, and symbolic links as of Windows Vista. | |
+ Agora é possível criar hard link no Windows usando a função | |
+ <function>link</function>, e link simbólico usando a função | |
+ <function>symlink</function>. Hard links estão disponívies no | |
+ Windows 2000, e links simbólicos no Windows Vista. | |
</simpara> | |
</listitem> | |
<listitem> | |
@@ -454,15 +494,15 @@ | |
</itemizedlist> | |
<warning> | |
<simpara> | |
- Support for the ISAPI module has been dropped. Use the improved FastCGI SAPI | |
- module instead. | |
+ Suporte para o módulo ISAPI foi removido. Use o módulo aprimorado do FastCGI SAPI | |
+ no lugar. | |
</simpara> | |
</warning> | |
<note> | |
<simpara> | |
- A new dedicated site for PHP on Windows is now available, including | |
- downloads, release candidates, and snapshots in various flavors | |
- (thread-safe/not-thread-safe, VC6/VC9, x86/x64). The URL of this site is | |
+ Um novo site dedicado para o PHP no Windows está disponível, incluindo | |
+ downloads, release candidates, e snapshots em vários modos | |
+ (thread-safe/not-thread-safe, VC6/VC9, x86/x64). A URL deste site é | |
<link xlink:href="&url.php.windows;">&url.php.windows;</link>. | |
</simpara> | |
</note> | |
@@ -469,35 +509,35 @@ | |
</section> | |
<section xml:id="migration53.sapi"> | |
- <title>Changes in SAPI modules</title> | |
+ <title>Mudanças nos módulos SAPI</title> | |
<itemizedlist> | |
<listitem> | |
<simpara> | |
- A new SAPI module named litespeed is now available. | |
+ Um novo módulo SAPI nomeado litespeed está disponível. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- FastCGI support in the CGI SAPI is now always enabled and can not be | |
- disabled. See <literal>sapi/cgi/CHANGES</literal> for more details. | |
+ Suporte ao FastCGI no CGI SAPI agora está sempre ativado e não pode ser desativado. | |
+ Veja <literal>sapi/cgi/CHANGES</literal> para maiores detalhes. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- A new CGI SAPI option, <literal>-T</literal>, can be used to measure | |
- repeated execution time of a script. | |
+ Uma nova opção CGI SAPI, <literal>-T</literal>, pode ser utilizada para medir a | |
+ quantidade de execuções repetidas de um script. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- CGI/FastCGI now has support for .htaccess-style user-defined &php.ini; | |
- files. | |
+ CGI/FastCGI agora tem suporte para arquivos .htaccess-style user-defined &php.ini; | |
+ . | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- The <function>dl</function> function is now disabled by default, and is now | |
- available only under the CLI, CGI, and embed SAPIs. | |
+ A função <function>dl</function> está desativado por padrão, e agora está disponível apenas | |
+ sob o CLI, CGI, e embutido SAPIs. | |
</simpara> | |
</listitem> | |
</itemizedlist> | |
@@ -504,7 +544,7 @@ | |
</section> | |
<section xml:id="migration53.deprecated"> | |
- <title>Deprecated features in PHP 5.3.x</title> | |
+ <title>Recursos em desuso no PHP 5.3.x</title> | |
<simpara> | |
PHP 5.3.0 introduces two new error levels: <constant>E_DEPRECATED</constant> | |
and <constant>E_USER_DEPRECATED</constant>. The | |
@@ -1451,12 +1491,12 @@ | |
</itemizedlist> | |
<simpara> | |
mysqlnd is a new core library shipped with PHP. It is a PHP-specific | |
- replacement for libmysql. mysqlnd will be used to build the | |
+ replacement for libmysqlclient. mysqlnd will be used to build the | |
<link linkend="book.mysql">mysql</link>, | |
<link linkend="book.mysqli">mysqli</link> | |
- and <link linkend="ref.pdo-mysql">PDO_MySQL</link> extensions if libmysql | |
- isnt found on the system. It may also be used instead of libmysql even when | |
- libmysql is present. mysqlnd is recommended for all PHP installations for | |
+ and <link linkend="ref.pdo-mysql">PDO_MySQL</link> extensions if libmysqlclient | |
+ isn't found on the system. It may also be used instead of libmysqlclient even when | |
+ libmysqlclient is present. mysqlnd is recommended for all PHP installations for | |
performance reasons. | |
</simpara> | |
</section> | |
@@ -2217,23 +2257,25 @@ | |
</listitem> | |
<listitem> | |
<simpara> | |
- <literal>zend_extension_debug</literal> and | |
- <literal>zend_extension_ts</literal> have been removed. Use the | |
- <literal>zend_extension</literal> directive to load all Zend Extensions. | |
+ <link linkend="ini.zend-extension-debug">zend_extension_debug</link>, | |
+ <link linkend="ini.zend-extension-debug-ts">zend_extension_debug_ts</link> | |
+ and <link linkend="ini.zend-extension-ts">zend_extension_ts</link> have | |
+ been removed. Use the | |
+ <link linkend="ini.zend-extension">zend_extension</link> directive to | |
+ load all Zend Extensions. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- <literal>zend.ze1_compatibility_mode</literal> has been removed. If this | |
- INI directive is set to On, an <constant>E_ERROR</constant> error is | |
- emitted at startup. | |
+ <link linkend="ini.zend.ze1-compatibility-mode">zend.ze1_compatibility_mode</link> | |
+ has been removed. If this INI directive is set to On, an | |
+ <constant>E_ERROR</constant> error is emitted at startup. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
It is now possible to use the full path to load modules using the | |
- "<link linkend="ini.extension"><literal>extension</literal></link>" | |
- directive. | |
+ <link linkend="ini.extension">extension</link> directive. | |
</simpara> | |
</listitem> | |
<listitem> | |
@@ -2244,8 +2286,8 @@ | |
</listitem> | |
<listitem> | |
<simpara> | |
- Runtime tightening of <literal>open_basedir</literal> restrictions is now | |
- possible. | |
+ <link linkend="ini.open-basedir">open_basedir</link> restrictions may now | |
+ be tighted at runtime, and the directive is now PHP_INI_ALL. | |
</simpara> | |
</listitem> | |
<listitem> | |
@@ -2261,29 +2303,11 @@ | |
</listitem> | |
<listitem> | |
<simpara> | |
- A new directive, mail.add_x_header, has been added. | |
+ Two new mail directives: | |
+ <link linkend="ini.mail.add-x-header">mail.add_x_header</link> and | |
+ <link linkend="ini.mail.log">mail.log</link>, have been added. | |
</simpara> | |
</listitem> | |
- <listitem> | |
- <simpara> | |
- user_ini.filename is new | |
- </simpara> | |
- </listitem> | |
- <listitem> | |
- <simpara> | |
- user_ini.cache_ttl is also new | |
- </simpara> | |
- </listitem> | |
- <listitem> | |
- <simpara> | |
- exit_on_timeout is new too | |
- </simpara> | |
- </listitem> | |
- <listitem> | |
- <simpara> | |
- open_basedir is now PHP_INI_ALL | |
- </simpara> | |
- </listitem> | |
</itemizedlist> | |
<simpara> | |
The following new ini directives have been added: | |
@@ -2292,12 +2316,18 @@ | |
<listitem> | |
<simpara> | |
<literal>user_ini.filename</literal> and | |
- <literal>user_ini.cache_ttl</literal> for the new .htaccess-style user INI | |
- file mechanism. | |
+ <literal>user_ini.cache_ttl</literal> have been added to control the use | |
+<!-- seção faltando no doc em pt-BR of <link linkend="configuration.file.per-user">user INI files</link>. --> | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
+ <link linkend="ini.exit-on-timeout">exit_on_timeout</link> has been added | |
+ to force Apache 1.x children to exit if a PHP execution timeout occurs. | |
+ </simpara> | |
+ </listitem> | |
+ <listitem> | |
+ <simpara> | |
Added <literal>mbstring.http_output_conv_mimetype</literal>. | |
This directive specifies the regex pattern of content types for which | |
<function>mb_output_handler</function> is activated. | |
@@ -2305,7 +2335,7 @@ | |
</listitem> | |
<listitem> | |
<simpara> | |
- Added <literal>request_order</literal>. | |
+ Added <link linkend="ini.request-order">request_order</link>. | |
Allows controlling which external variables will be available in | |
<varname>$_REQUEST</varname>. | |
</simpara> | |
@@ -2317,14 +2347,14 @@ | |
<itemizedlist> | |
<listitem> | |
<simpara> | |
- <literal>session.use_only_cookies</literal> is now set to | |
- <literal>"1"</literal> (enabled) by default. | |
+ <link linkend="ini.session.use-only-cookies">session.use_only_cookies</link> | |
+ is now set to <literal>"1"</literal> (enabled) by default. | |
</simpara> | |
</listitem> | |
<listitem> | |
<simpara> | |
- <literal>oci8.default_prefetch</literal> has changed from | |
- <literal>"10"</literal> to <literal>"100"</literal>. | |
+ <link linkend="ini.oci8.default-prefetch">oci8.default_prefetch</link> | |
+ has changed from <literal>"10"</literal> to <literal>"100"</literal>. | |
</simpara> | |
</listitem> | |
</itemizedlist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment