svn: /phpdoc/de/trunk/language/ context/http.xml types/pseudo-types.xml types/type-juggling.xml
[email protected] (Christoph Michael Becker)
| Newsgroups | php.doc.de |
|---|---|
| Message-ID | <[email protected]> |
cmb Wed, 04 Apr 2018 14:16:59 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=344616
Log:
Remove untranslated translations
Changed paths:
D phpdoc/de/trunk/language/context/http.xml
D phpdoc/de/trunk/language/types/pseudo-types.xml
D phpdoc/de/trunk/language/types/type-juggling.xml
svn-diffs-344616.txt
(text/x-diff, 21.1 KB)
Deleted: phpdoc/de/trunk/language/context/http.xml
===================================================================
--- phpdoc/de/trunk/language/context/http.xml 2018-04-04 12:53:10 UTC (rev 344615)
+++ phpdoc/de/trunk/language/context/http.xml 2018-04-04 14:16:59 UTC (rev 344616)
@@ -1,306 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision$ -->
-<!-- EN-Revision: n/a Maintainer: hholzgra Status: working -->
-
-<refentry xml:id="context.http" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion">
- <refnamediv>
- <refname>HTTP context options</refname>
- <refpurpose>HTTP context option listing</refpurpose>
- </refnamediv>
-
- <refsect1 role="description">
- &reftitle.description;
- <para>
- Context options for <literal>http://</literal> and <literal>https://</literal>
- transports.
- </para>
- </refsect1>
-
- <refsect1 role="options"><!-- {{{ -->
- &reftitle.options;
- <para>
- <variablelist>
- <varlistentry xml:id="context.http.method">
- <term>
- <parameter>method</parameter>
- <type>string</type>
- </term>
- <listitem>
- <para>
- <constant>GET</constant>, <constant>POST</constant>, or
- any other HTTP method supported by the remote server.
- </para>
- <para>
- Defaults to <constant>GET</constant>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry xml:id="context.http.header">
- <term>
- <parameter>header</parameter>
- <type>string</type>
- </term>
- <listitem>
- <para>
- Additional headers to be sent during request. Values
- in this option will override other values (such as
- <literal>User-agent:</literal>, <literal>Host:</literal>,
- and <literal>Authentication:</literal>).
- </para>
- </listitem>
- </varlistentry>
- <varlistentry xml:id="context.http.user-agent">
- <term>
- <parameter>user_agent</parameter>
- <type>string</type>
- </term>
- <listitem>
- <para>
- Value to send with User-Agent: header. This value will
- only be used if user-agent is <emphasis>not</emphasis> specified
- in the <literal>header</literal> context option above.
- </para>
- <para>
- By default the
- <link linkend="ini.user-agent">user_agent</link>
- &php.ini; setting is used.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry xml:id="context.http.content">
- <term>
- <parameter>content</parameter>
- <type>string</type>
- </term>
- <listitem>
- <para>
- Additional data to be sent after the headers. Typically used
- with POST or PUT requests.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry xml:id="context.http.proxy">
- <term>
- <parameter>proxy</parameter>
- <type>string</type>
- </term>
- <listitem>
- <para>
- URI specifying address of proxy server. (e.g.
- <literal>tcp://proxy.example.com:5100</literal>).
- </para>
- </listitem>
- </varlistentry>
- <varlistentry xml:id="context.http.request-fulluri">
- <term>
- <parameter>request_fulluri</parameter>
- <type>boolean</type>
- </term>
- <listitem>
- <para>
- When set to &true;, the entire URI will be used when
- constructing the request. (i.e.
- <literal>GET http://www.example.com/path/to/file.html HTTP/1.0</literal>).
- While this is a non-standard request format, some
- proxy servers require it.
- </para>
- <para>
- Defaults to &false;.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry xml:id="context.http.max-redirects">
- <term>
- <parameter>max_redirects</parameter>
- <type>integer</type>
- </term>
- <listitem>
- <para>
- The max number of redirects to follow. Value <literal>1</literal> or
- less means that no redirects are followed.
- </para>
- <para>
- Defaults to <literal>20</literal>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry xml:id="context.http.protocol-version">
- <term>
- <parameter>protocol_version</parameter>
- <type>float</type>
- </term>
- <listitem>
- <para>
- HTTP protocol version.
- </para>
- <para>
- Defaults to <literal>1.0</literal>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry xml:id="context.http.timeout">
- <term>
- <parameter>timeout</parameter>
- <type>float</type>
- </term>
- <listitem>
- <para>
- Read timeout in seconds, specified by a <type>float</type>
- (e.g. <literal>10.5</literal>).
- </para>
- <para>
- By default the
- <link linkend="ini.default-socket-timeout">default_socket_timeout</link>
- &php.ini; setting is used.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry xml:id="context.http.ignore-errors">
- <term>
- <parameter>ignore_errors</parameter>
- <type>boolean</type>
- </term>
- <listitem>
- <para>
- Fetch the content even on failure status codes.
- </para>
- <para>
- Defaults to &false;
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </para>
- </refsect1><!-- }}} -->
-
- <refsect1 role="changelog"><!-- {{{ -->
- &reftitle.changelog;
- <para>
- <informaltable>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>&Version;</entry>
- <entry>&Description;</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>5.3.0</entry>
- <entry>
- Added <parameter>ignore_errors</parameter>.
- </entry>
- </row>
- <row>
- <entry>5.2.1</entry>
- <entry>
- Added <parameter>timeout</parameter>.
- </entry>
- </row>
- <row>
- <entry>5.1.0</entry>
- <entry>
- Added HTTPS proxying through HTTP proxies.
- </entry>
- </row>
- <row>
- <entry>5.1.0</entry>
- <entry>
- Added <parameter>max_redirects</parameter>.
- </entry>
- </row>
- <row>
- <entry>5.1.0</entry>
- <entry>
- Added <parameter>protocol_version</parameter>.
- </entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- </para>
- </refsect1><!-- }}} -->
-
- <refsect1 role="examples"><!-- {{{ -->
- &reftitle.examples;
- <para>
- <example xml:id="context.http.example-post"><!-- {{{ -->
- <title>Fetch a page and send POST data</title>
- <programlisting role="php">
-<![CDATA[
-<?php
-
-$postdata = http_build_query(
- array(
- 'var1' => 'some content',
- 'var2' => 'doh'
- )
-);
-
-$opts = array('http' =>
- array(
- 'method' => 'POST',
- 'header' => 'Content-type: application/x-www-form-urlencoded',
- 'content' => $postdata
- )
-);
-
-$context = stream_context_create($opts);
-
-$result = file_get_contents('http://example.com/submit.php', false, $context);
-
-?>
-]]>
- </programlisting>
- </example><!-- }}} -->
- </para>
- </refsect1><!-- }}} -->
-
- <refsect1 role="notes">
- &reftitle.notes;
- <note>
- <title>Underlying socket stream context options</title>
- <simpara>
- Additional context options may be supported by the
- <link linkend="transports.inet">underlying transport</link>
- For <literal>http://</literal> streams, refer to context
- options for the <literal>tcp://</literal> transport. For
- <literal>https://</literal> streams, refer to context options
- for the <literal>ssl://</literal> transport.
- </simpara>
- </note>
- </refsect1>
-
- <refsect1 role="seealso">
- &reftitle.seealso;
- <para>
- <simplelist>
- <member><xref linkend="context.socket" /></member>
- <member><xref linkend="context.ssl" /></member>
- </simplelist>
- </para>
- </refsect1>
-
-</refentry>
-
-<!-- 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
--->
-
Deleted: phpdoc/de/trunk/language/types/pseudo-types.xml
===================================================================
--- phpdoc/de/trunk/language/types/pseudo-types.xml 2018-04-04 12:53:10 UTC (rev 344615)
+++ phpdoc/de/trunk/language/types/pseudo-types.xml 2018-04-04 14:16:59 UTC (rev 344616)
@@ -1,175 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision$ -->
-<!-- EN-Revision: n/a Maintainer: hholzgra Status: working -->
-<sect1 xml:id="language.pseudo-types">
- <title>Pseudo-types and variables used in this documentation</title>
-
- <sect2 xml:id="language.types.mixed">
- <title>mixed</title>
-
- <para>
- <literal>mixed</literal> indicates that a parameter may accept multiple (but
- not necessarily all) types.
- </para>
-
- <para>
- <function>gettype</function> for example will accept all PHP types, while
- <function>str_replace</function> will accept <type>string</type>s and
- <type>array</type>s.
- </para>
-
- </sect2>
-
- <sect2 xml:id="language.types.number">
- <title>number</title>
-
- <para>
- <literal>number</literal> indicates that a parameter can be either
- <type>integer</type> or <type>float</type>.
- </para>
-
- </sect2>
-
- <sect2 xml:id="language.types.callback">
- <title>callback</title>
-
- <para>
- Some functions like <function>call_user_func</function> or
- <function>usort</function> accept user-defined callback functions as a
- parameter. Callback functions can not only be simple functions, but also
- <type>object</type> methods, including static class methods.
- </para>
-
- <para>
- A PHP function is passed by its name as a <type>string</type>. Any built-in
- or user-defined function can be used, except language constructs such as:
- <function>array</function>, <function>echo</function>,
- <function>empty</function>, <function>eval</function>,
- <function>exit</function>, <function>isset</function>,
- <function>list</function>, <function>print</function> or
- <function>unset</function>.
- </para>
-
- <para>
- A method of an instantiated <type>object</type> is passed as an
- <type>array</type> containing an <type>object</type> at index 0 and the
- method name at index 1.
- </para>
-
- <para>
- Static class methods can also be passed without instantiating an
- <type>object</type> of that class by passing the class name instead of an
- <type>object</type> at index 0.
- </para>
-
- <para>
- Apart from common user-defined function, <function>create_function</function>
- can also be used to create an anonymous callback function.
- </para>
-
- <example>
- <title>
- Callback function examples
- </title>
- <programlisting role="php">
-<![CDATA[
-<?php
-
-// An example callback function
-function my_callback_function() {
- echo 'hello world!';
-}
-
-// An example callback method
-class MyClass {
- static function myCallbackMethod() {
- echo 'Hello World!';
- }
-}
-
-// Type 1: Simple callback
-call_user_func('my_callback_function');
-
-// Type 2: Static class method call
-call_user_func(array('MyClass', 'myCallbackMethod'));
-
-// Type 3: Object method call
-$obj = new MyClass();
-call_user_func(array($obj, 'myCallbackMethod'));
-
-// Type 4: Static class method call (As of PHP 5.2.3)
-call_user_func('MyClass::myCallbackMethod');
-
-// Type 5: Relative static class method call (As of PHP 5.3.0)
-class A {
- public static function who() {
- echo "A\n";
- }
-}
-
-class B extends A {
- public static function who() {
- echo "B\n";
- }
-}
-
-call_user_func(array('B', 'parent::who')); // A
-?>
-]]>
- </programlisting>
- </example>
-
- <note>
- <simpara>
- In PHP4, it was necessary to use a reference to create a callback that
- points to the actual <type>object</type>, and not a copy of it. For more
- details, see
- <link linkend="language.references">References Explained</link>.
- </simpara>
- </note>
-
- </sect2>
-
- <sect2 xml:id="language.types.void">
- <title>void</title>
-
- <para>
- <literal>void</literal> as a return type means that the return value is
- useless. <literal>void</literal> in a parameter list means that the function
- doesn't accept any parameters.
- </para>
-
- </sect2>
-
- <sect2 xml:id="language.types.dotdotdot">
- <title>...</title>
-
- <para>
- <parameter>$...</parameter> in function prototypes means
- <literal>and so on</literal>. This variable name is used when a function can
- take an endless number of arguments.
- </para>
-
- </sect2>
-</sect1>
-
-<!-- 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
--->
Deleted: phpdoc/de/trunk/language/types/type-juggling.xml
===================================================================
--- phpdoc/de/trunk/language/types/type-juggling.xml 2018-04-04 12:53:10 UTC (rev 344615)
+++ phpdoc/de/trunk/language/types/type-juggling.xml 2018-04-04 14:16:59 UTC (rev 344616)
@@ -1,290 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision$ -->
-<!-- EN-Revision: n/a Maintainer: hholzgra Status: working -->
-<sect1 xml:id="language.types.type-juggling">
- <title>Type Juggling</title>
-
- <simpara>
- PHP does not require (or support) explicit type definition in variable
- declaration; a variable's type is determined by the context in which the
- variable is used. That is to say, if a <type>string</type> value is assigned
- to variable <varname>$var</varname>, <varname>$var</varname> becomes a
- <type>string</type>. If an <type>integer</type> value is then assigned to
- <varname>$var</varname>, it becomes an <type>integer</type>.
- </simpara>
-
- <para>
- An example of PHP's automatic type conversion is the addition operator '+'.
- If either operand is a <type>float</type>, then both operands are evaluated as
- <type>float</type>s, and the result will be a <type>float</type>. Otherwise,
- the operands will be interpreted as <type>integer</type>s, and the result will
- also be an <type>integer</type>. Note that this does <emphasis>not</emphasis>
- change the types of the operands themselves; the only change is in how the
- operands are evaluated and what the type of the expression itself is.
- </para>
-
- <informalexample>
- <programlisting role="php">
-<![CDATA[
-<?php
-$foo = "0"; // $foo is string (ASCII 48)
-$foo += 2; // $foo is now an integer (2)
-$foo = $foo + 1.3; // $foo is now a float (3.3)
-$foo = 5 + "10 Little Piggies"; // $foo is integer (15)
-$foo = 5 + "10 Small Pigs"; // $foo is integer (15)
-?>
-]]>
-<!-- bad example, no real operator (must be used with variable, modifies it too)
-$foo++; // $foo is the string "1" (ASCII 49)
-
-TODO: explain ++/- - behaviour with strings
-
-examples:
-
-++'001' = '002'
-++'abc' = 'abd'
-++'xyz' = 'xza'
-++'9.9' = '9.0'
-++'-3' = '-4'
-- -'9' = 8 (integer!)
-- -'5.5' = '5.5'
-- -'-9' = -10 (integer)
-- -'09' = 8 (integer)
-- -'abc' = 'abc'
-
--->
- </programlisting>
- </informalexample>
-
- <simpara>
- If the last two examples above seem odd, see
- <link linkend="language.types.string.conversion">String conversion to
- numbers</link>.
- </simpara>
-
- <simpara>
- To force a variable to be evaluated as a certain type, see the section on
- <link linkend="language.types.typecasting">Type casting</link>. To change the
- type of a variable, see the <function>settype</function> function.
- </simpara>
-
- <para>
- To test any of the examples in this section, use the
- <function>var_dump</function> function.
- </para>
-
- <note>
- <para>
- The behaviour of an automatic conversion to <type>array</type> is currently
- undefined.
- </para>
-
- <para>
- Also, because PHP supports indexing into <type>string</type>s via offsets
- using the same syntax as <type>array</type> indexing, the following example
- holds true for all PHP versions:
- </para>
-
- <informalexample>
- <programlisting role="php">
-<![CDATA[
-<?php
-$a = 'car'; // $a is a string
-$a[0] = 'b'; // $a is still a string
-echo $a; // bar
-?>
-]]>
- </programlisting>
- </informalexample>
-
- <para>
- See the section titled <link linkend="language.types.string.substr">String
- access by character</link> for more information.
- </para>
- </note>
-
- <sect2 xml:id="language.types.typecasting">
- <title>Type Casting</title>
-
- <para>
- Type casting in PHP works much as it does in C: the name of the desired type
- is written in parentheses before the variable which is to be cast.
- </para>
-
- <informalexample>
- <programlisting role="php">
-<![CDATA[
-<?php
-$foo = 10; // $foo is an integer
-$bar = (boolean) $foo; // $bar is a boolean
-?>
-]]>
- </programlisting>
- </informalexample>
-
- <para>
- The casts allowed are:
- </para>
-
- <itemizedlist>
- <listitem>
- <simpara>(int), (integer) - cast to <type>integer</type></simpara>
- </listitem>
- <listitem>
- <simpara>(bool), (boolean) - cast to <type>boolean</type></simpara>
- </listitem>
- <listitem>
- <simpara>(float), (double), (real) - cast to <type>float</type></simpara>
- </listitem>
- <listitem>
- <simpara>(string) - cast to <type>string</type></simpara>
- </listitem>
- <listitem>
- <simpara>(binary) - cast to binary <type>string</type></simpara>
- </listitem>
- <listitem>
- <simpara>(array) - cast to <type>array</type></simpara>
- </listitem>
- <listitem>
- <simpara>(object) - cast to <type>object</type></simpara>
- </listitem>
- <listitem>
- <simpara>(unset) - cast to <type>NULL</type> (PHP 5)</simpara>
- </listitem>
- </itemizedlist>
-
- <para>
- (binary) casting and b prefix forward support was added in PHP 5.2.1
- </para>
-
- <para>
- Note that tabs and spaces are allowed inside the parentheses, so the
- following are functionally equivalent:
- </para>
-
- <informalexample>
- <programlisting role="php">
-<![CDATA[
-<?php
-$foo = (int) $bar;
-$foo = ( int ) $bar;
-?>
-]]>
- </programlisting>
-
- <para>
- Casting literal <type>string</type>s and variables to binary
- <type>string</type>s:
- </para>
-
- <programlisting role="php">
-<![CDATA[
-<?php
-$binary = (binary)$string;
-$binary = b"binary string";
-?>
-]]>
- </programlisting>
- </informalexample>
-
- <note>
- <para>
- Instead of casting a variable to a <type>string</type>, it is also possible
- to enclose the variable in double quotes.
- </para>
-
- <informalexample>
- <programlisting role="php">
-<![CDATA[
-<?php
-$foo = 10; // $foo is an integer
-$str = "$foo"; // $str is a string
-$fst = (string) $foo; // $fst is also a string
-
-// This prints out that "they are the same"
-if ($fst === $str) {
- echo "they are the same";
-}
-?>
-]]>
- </programlisting>
- </informalexample>
- </note>
-
- <para>
- It may not be obvious exactly what will happen when casting between certain
- types. For more information, see these sections:
- </para>
-
- <itemizedlist>
- <listitem>
- <simpara>
- <link linkend="language.types.boolean.casting">Converting to boolean</link>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <link linkend="language.types.integer.casting">Converting to integer</link>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <link linkend="language.types.float.casting">Converting to float</link>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <link linkend="language.types.string.casting">Converting to string</link>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <link linkend="language.types.array.casting">Converting to array</link>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <link linkend="language.types.object.casting">Converting to object</link>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <link linkend="language.types.resource.casting">Converting to
- resource</link>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <link linkend="language.types.null.casting">Converting to NULL</link>
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- <link linkend="types.comparisons">The type comparison tables</link>
- </simpara>
- </listitem>
- </itemizedlist>
-
- </sect2>
-</sect1>
-
-<!-- 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
--->