From:             [EMAIL PROTECTED]
Operating system: 
PHP version:      4.2.0
PHP Bug Type:     Documentation problem
Bug description:  String conversion examples incorrect

http://uk.php.net/manual/en/language.types.string.php#language.types.string.conversion

Contains these examples:

  $foo = "10.0 pigs " + 1;        // $foo is integer (11)
  $foo = "10.0 pigs " + 1.0;      // $foo is float (11)

But both of these yield float 11.  Which suggests that the following line
of documentation (which is immediately above this set of examples) is also
wrong:

 "When the first expression is a string, the type of the variable will
depend on the second expression."


-- 
Edit bug report at http://bugs.php.net/?id=17388&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17388&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17388&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17388&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17388&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17388&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17388&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17388&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17388&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17388&r=globals

Reply via email to