svn: /phpdoc/de/trunk/appendices/migration70/ incompatible/strings.xml

[email protected] (Christoph Michael Becker)
Newsgroups php.doc.de
Message-ID <[email protected]>
cmb                                      Sun, 10 May 2020 13:10:11 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=349770

Log:
New translation

Based on a patch provided by an anonymous user.

Changed paths:
    A   phpdoc/de/trunk/appendices/migration70/incompatible/
    A   phpdoc/de/trunk/appendices/migration70/incompatible/strings.xml

Added: phpdoc/de/trunk/appendices/migration70/incompatible/strings.xml
===================================================================
--- phpdoc/de/trunk/appendices/migration70/incompatible/strings.xml	                        (rev 0)
+++ phpdoc/de/trunk/appendices/migration70/incompatible/strings.xml	2020-05-10 13:10:11 UTC (rev 349770)
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 337376 Maintainer: nobody Status: ready -->
+
+<sect2 xml:id="migration70.incompatible.strings">
+ <title>Änderungen an der <type>string</type>-Behandlung</title>
+
+ <sect3 xml:id="migration70.incompatible.strings.hex">
+  <title>Hexadezimale Zeichenfolgen werden nicht mehr als numerisch betrachtet</title>
+
+  <para>
+   Zeichenketten, die hexadezimale Zahlen enthalten, gelten nicht mehr als
+   numerisch. Zum Beispiel:
+  </para>
+
+  <informalexample>
+   <programlisting role="php">
+<![CDATA[
+<?php
+var_dump("0x123" == "291");
+var_dump(is_numeric("0x123"));
+var_dump("0xe" + "0x1");
+var_dump(substr("foo", "0x1"));
+?>
+]]>
+   </programlisting>
+   &example.outputs.5;
+   <screen>
+<![CDATA[
+bool(true)
+bool(true)
+int(15)
+string(2) "oo"
+]]>
+   </screen>
+   &example.outputs.7;
+   <screen>
+<![CDATA[
+bool(false)
+bool(false)
+int(0)
+
+Notice: A non well formed numeric value encountered in /tmp/test.php on line 5
+string(3) "foo"
+]]>
+   </screen>
+  </informalexample>
+
+  <para>
+   <function>filter_var</function> kann verwendet werden, um zu prüfen, ob ein
+   <type>string</type> eine hexadezimale Zahl enthält, und auch zur Umwandlung einer
+   Zeichenkette dieses Typs zu einem <type>integer</type>:
+  </para>
+
+  <informalexample>
+   <programlisting role="php">
+<![CDATA[
+<?php
+$str = "0xffff";
+$int = filter_var($str, FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX);
+if (false === $int) {
+    throw new Exception("Ungültige Ganzzahl!");
+}
+var_dump($int); // int(65535)
+?>
+]]>
+   </programlisting>
+  </informalexample>
+ </sect3>
+
+ <sect3 xml:id="migration70.incompatible.strings.unicode-escapes">
+  <title><literal>\u{</literal> may cause errors</title>
+
+  <para>
+   Aufgrund der Hinzufügung der neuen
+   <link linkend="migration70.new-features.unicode-codepoint-escape-syntax">Unicode-Codepoint-Maskierungssyntax</link>
+   verursachen Zeichnketten, die <literal>\u{</literal> gefolgt von einer ungültigen
+   Sequenz enthalten, einen fatalen Fehler. Um dies zu vermeiden, sollte der führende
+   Rückwärtsstrich maskiert werden.
+  </para>
+ </sect3>
+</sect2>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->


Property changes on: phpdoc/de/trunk/appendices/migration70/incompatible/strings.xml
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
\ No newline at end of property
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.