[PHP-DOC] cvs: phpdoc /en/language types.xml From: Jeroen van Wolffelaar (jeroen <email protected>)
Date: 06/26/01

jeroen Tue Jun 26 14:46:26 2001 EDT

  Modified files:
    /phpdoc/en/language types.xml
  Log:
  Warned for a bug in the scripting engine. (implicite casting on negative
  overflow, bug#11685)
  
  
  
Index: phpdoc/en/language/types.xml
diff -u phpdoc/en/language/types.xml:1.29 phpdoc/en/language/types.xml:1.30
--- phpdoc/en/language/types.xml:1.29 Wed Jun 20 23:46:03 2001
+++ phpdoc/en/language/types.xml Tue Jun 26 14:46:26 2001
@@ -334,6 +334,16 @@
 // output: float(50000000000)
        </programlisting>
       </informalexample>
+ <warning>
+ <simpara>
+ Unfortunately, there is a bug in the script engine (still present in
+ 4.0.6, probably resolved in 4.0.7) so that this does not always work
+ correctly when there are negative numbers involved. However when both
+ operands are positive, there is no problem. For example: when you do
+ <literal>-50000 * $million</literal>, the result will be
+ <literal>-429496728</literal>.
+ </simpara>
+ </warning>
      </para>
     </sect2>