jome Wed Sep 18 09:38:05 2002 EDT Modified files: /phpdoc/en/language types.xml Log: - Removing an example and part of a heredoc note (fixes bug #19180) Index: phpdoc/en/language/types.xml diff -u phpdoc/en/language/types.xml:1.87 phpdoc/en/language/types.xml:1.88 --- phpdoc/en/language/types.xml:1.87 Thu Aug 29 17:18:14 2002 +++ phpdoc/en/language/types.xml Wed Sep 18 09:38:04 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.87 $ --> +<!-- $Revision: 1.88 $ --> <chapter id="language.types"> <title>Types</title> @@ -703,23 +703,6 @@ <emphasis>may not be indented</emphasis>, and there may not be any spaces or tabs after or before the semicolon. </simpara> - <simpara> - Probably the nastiest gotcha is that there may also - not be a carriage return (<literal>\r</literal>) at the end of - the line, only - a form feed, AKA newline (<literal>\n</literal>). - Since Microsoft Windows uses the sequence - <literal>\r\n</literal> as a line - terminator, your heredoc may not work if you write your - script in a Windows editor. However, most programming - editors provide a way to save your files with a UNIX - line terminator. - <!-- - FTP will sometimes automatically convert \r\n to \n while - transferring your files to your webserver (which - is *nix, of course) - --> - </simpara> </warning> <para> @@ -1917,17 +1900,8 @@ <para> The behaviour of an automatic conversion to array is currently undefined. - <informalexample> - <programlisting role="php"> -$a = 1; // $a is an integer -$a[0] = "f"; // $a becomes an array, with $a[0] holding "f" - </programlisting> - </informalexample> </para> <para> - While the above example may seem like it should clearly result in - $a becoming an array, the first element of which is 'f', consider - this: <informalexample> <programlisting role="php"> $a = "1"; // $a is a string
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php