bjori           Thu May 24 18:46:00 2007 UTC

  Modified files:              
    /phpdoc/en/language types.xml 
  Log:
  Fixed bug#41494 (binary typecasting)
  
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/types.xml?r1=1.178&r2=1.179&diff_format=u
Index: phpdoc/en/language/types.xml
diff -u phpdoc/en/language/types.xml:1.178 phpdoc/en/language/types.xml:1.179
--- phpdoc/en/language/types.xml:1.178  Wed Mar 28 10:40:02 2007
+++ phpdoc/en/language/types.xml        Thu May 24 18:46:00 2007
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.178 $ -->
+<!-- $Revision: 1.179 $ -->
  <chapter id="language.types">
   <title>Types</title>
 
@@ -2562,6 +2562,9 @@
        <simpara>(string) - cast to string</simpara>
       </listitem>
       <listitem>
+       <simpara>(binary) - cast to binary string (PHP 6)</simpara>
+      </listitem>
+      <listitem>
        <simpara>(array) - cast to array</simpara>
       </listitem>
       <listitem>
@@ -2570,6 +2573,9 @@
      </itemizedlist>
     </para>
     <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:
      <informalexample>
@@ -2581,6 +2587,17 @@
 ?>
 ]]>
       </programlisting>
+      <para>
+       Casting a literal strings and variables to binary strings:
+      </para>
+      <programlisting role="php">
+<![CDATA[
+<?php
+$binary = (binary)$string;
+$binary = b"binary string";
+?>
+]]>
+      </programlisting>
      </informalexample>
     </para>
     <note>

Reply via email to