Bug #17388: String conversion examples incorrect

From: Date: Thu, 23 May 2002 13:56:45 +0000
Subject: Bug #17388: String conversion examples incorrect
Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-8333@lists.php.net to get a copy of this message
From: jasonh@trurocollege.ac.uk 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

« previous php.bugs (#8333) next »