mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Move some stuff from "other changes" to "new features"
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323712 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
bb0c470b94
commit
d0ecb52435
1 changed files with 48 additions and 47 deletions
|
@ -70,7 +70,7 @@
|
|||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="features.safe-mode"><literal>Safe mode</literal></link> is no
|
||||
<link linkend="features.safe-mode">Safe mode</link> is no
|
||||
longer supported. Any applications that rely on safe mode may need
|
||||
adjustements in terms of security.
|
||||
</simpara>
|
||||
|
@ -82,7 +82,7 @@
|
|||
</simpara>
|
||||
<simpara>
|
||||
<function>get_magic_quotes_gpc</function> and <function>get_magic_quotes_runtime</function>
|
||||
now always return false. <function>set_magic_quotes_runtime</function> raises an
|
||||
now always return &false;. <function>set_magic_quotes_runtime</function> raises an
|
||||
<constant>E_CORE_ERROR</constant>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
|
@ -100,8 +100,8 @@
|
|||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
The <link linkend="control-structures.break"><literal>break</literal></link>
|
||||
and <link linkend="control-structures.continue"><literal>continue</literal></link>
|
||||
The <link linkend="control-structures.break">break</link>
|
||||
and <link linkend="control-structures.continue">continue</link>
|
||||
statements don't accept variable arguments anymore, i.e. writing
|
||||
<literal>break 1 + foo() * $bar;</literal> is not possible. You can obviously still use
|
||||
static arguments, like <literal>break 2;</literal>.
|
||||
|
@ -227,6 +227,49 @@
|
|||
Support for <link linkend="language.oop5.traits">traits</link> has been added.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Short array syntax has been added, e.g. <literal>$a = [1, 2, 3, 4];</literal> or
|
||||
<literal>$a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];</literal>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Array dereferencing has been added, e.g. <literal>foo()[0]</literal>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Closures now support <literal>$this</literal>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<literal><?=</literal> is now always available regardless of the
|
||||
<link linkend="ini.short-open-tag">short_open_tag</link> ini option.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Class member access on instantiation has been added,
|
||||
e.g. <literal>(new Foo)->bar()</literal>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<literal>Class::{expr}()</literal> syntax is now supported.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Binary number format has been added, e.g. <literal>0b001001101</literal>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Improved parse error messages and improved incompatible arguments warnings.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
|
@ -390,7 +433,7 @@
|
|||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>http_reponse_code</function>
|
||||
<function>http_response_code</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
|
@ -1319,28 +1362,12 @@
|
|||
more on fatal errors when using interactive mode with readline support.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Improved parse error messages from parser and warning message of incompatible arguments
|
||||
in function calls.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="language.variables.superglobals">$_SERVER['REQUEST_TIME_FLOAT']</link>
|
||||
has been added to include microsecond precision.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<?= is now always available regardless of the <literal>short_open_tag</literal> setting
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Added class member access on instantiation (e.g. (new foo)->bar()) support
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Added new hash algorithms: fnv132, fnv164, joaat
|
||||
|
@ -1351,32 +1378,6 @@
|
|||
Chained string offsets - e.g. $a[0][0] where $a is a string - now work.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Binary number format has been added - e.g. 0b001001101.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Short array syntax has been added - e.g. $a = [1, 2, 3, 4];
|
||||
$a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Class::{expr}() syntax is now supported.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Function call result array access: foo()[0]
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Closures now support scopes and <literal>$this</literal>.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Arrays cast from <type>SimpleXMLElement</type> now always contain all nodes instead of
|
||||
|
|
Loading…
Reference in a new issue