Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 703d980c580707c382b4e43e25965bc5 > files > 10742

php-manual-pt_BR-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Migrando do PHP/FI 2 para o PHP 3</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="Manual do PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="Apêndices"
HREF="appendices.html"><LINK
REL="PREVIOUS"
TITLE="Handling of global variables"
HREF="migration4.variables.html"><LINK
REL="NEXT"
TITLE="old_function"
HREF="migration.old-function.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="appendix"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual do PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="migration4.variables.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="migration.old-function.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="appendix"
><H1
><A
NAME="migration"
>Apêndice E. Migrando do PHP/FI 2 para o PHP 3</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Índice</B
></DT
><DT
><A
HREF="migration.html#migration.about"
>Sobre as incompatibilidades no 3.0</A
></DT
><DT
><A
HREF="migration.old-function.html"
><TT
CLASS="literal"
>old_function</TT
></A
></DT
><DT
><A
HREF="migration.startendtags.html"
>Tags de início e fim</A
></DT
><DT
><A
HREF="migration.if-endif.html"
>sintaxe de if..endif</A
></DT
><DT
><A
HREF="migration.while.html"
>sintaxe do while</A
></DT
><DT
><A
HREF="migration.expr.html"
>Tipos de Expressões</A
></DT
><DT
><A
HREF="migration.errors.html"
>Mensagens de Erro mudaram</A
></DT
><DT
><A
HREF="migration.booleval.html"
>Short-circuited boolean evaluation</A
></DT
><DT
><A
HREF="migration.truefalse.html"
>Valores de retorno de função <TT
CLASS="constant"
><B
>TRUE</B
></TT
>/<TT
CLASS="constant"
><B
>FALSE</B
></TT
></A
></DT
><DT
><A
HREF="migration.other.html"
>Outras incompatibilidades</A
></DT
></DL
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="migration.about"
>Sobre as incompatibilidades no 3.0</A
></H1
><P
>&#13;   PHP 3.0 foi re-escrito do zero. Tem um avaliador melhor
   que é muito mais robusto e consistente que o do 2.0. 3.0 também é
   significativamente mais rápido, e usa menos memória. No entanto, algumas
   dessas melhoras não foram possíveis sem mudanças de
   compatibilidade, tanto em sintaxe quanto em funcionalidade.
  </P
><P
>&#13;   Além disso, os desenvolvedores do PHP tentaram limpar tanto a 
   sintaxe quanto a semântica do PHP na versão 3.0, e isso também causou algumas
   incompatibilidades. A longo prazo, nós acreditamos que essas mudanças
   são para melhor.
  </P
><P
>&#13;   Esse capítulo tentará guiá-lo pelas incompatibilidades
   que você encontrará quando mudar do PHP/FI 2.0 para PHP 3.0 e ajudá-lo
   a resolvê-las. Novas capacidades não são mencionadas aqui, a não ser
   quando necessário.
  </P
><P
>&#13;   Existe um programa de conversão que pode converter automaticamente seus
   scripts velhos do PHP/FI 2.0. Ele pode ser encontrado no 
   subdiretório <TT
CLASS="filename"
>convertor</TT
> da 
   distribuição do PHP 3.0. No entanto, esse programa apenas pega mudanças de 
   sintaxe então você deve ler esse capítulo cuidadosamente mesmo assim.
  </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="migration4.variables.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Principal</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="migration.old-function.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Handling of global variables</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="appendices.html"
ACCESSKEY="U"
>Acima</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><TT
CLASS="literal"
>old_function</TT
></TD
></TR
></TABLE
></DIV
></BODY
></HTML
>