Bug #1235: string arithmetical misbehaviour
| From: | tolj at pwi dot de | Date: | Mon, 15 Mar 1999 11:13:04 +0000 |
| Subject: | Bug #1235: string arithmetical misbehaviour | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4620@lists.php.net to get a copy of this message | ||
From: tolj@pwi.de
Operating system: Linux 2.0.36
PHP version: 3.0.7
PHP Bug Type: Misbehaving function
Bug description: string arithmetical misbehaviour
what about this misbehaviour of string arithmetics:
$foo = "04";
$foo++;
echo $foo; ## reports "05"
$foo = "04";
$foo--;
echo $foo; ## reports "3" without leading zero !!
I suppose both should react the same, or am I wrong?!
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net