[PHP-DEV] Bug #1235: string arithmetical misbehaviour From: tolj <email protected>
Date: 03/15/99

From: tolj <email protected>
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 <email protected>
For help: php-dev-help <email protected>