Date: 03/15/99
- Next message: Sascha Schumann: "Re: [PHP-DEV] Re: Bug #1225 Updated: fclose() may not really close"
- Previous message: Michal Kara: "[PHP-DEV] Re: Bug #1225 Updated: fclose() may not really close"
- Next in thread: Sascha Schumann: "Re: [PHP-DEV] Bug #1235: string arithmetical misbehaviour"
- Reply: Sascha Schumann: "Re: [PHP-DEV] Bug #1235: string arithmetical misbehaviour"
- Reply: Andi Gutmans: "Re: [PHP-DEV] Bug #1235: string arithmetical misbehaviour"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Sascha Schumann: "Re: [PHP-DEV] Re: Bug #1225 Updated: fclose() may not really close"
- Previous message: Michal Kara: "[PHP-DEV] Re: Bug #1225 Updated: fclose() may not really close"
- Next in thread: Sascha Schumann: "Re: [PHP-DEV] Bug #1235: string arithmetical misbehaviour"
- Reply: Sascha Schumann: "Re: [PHP-DEV] Bug #1235: string arithmetical misbehaviour"
- Reply: Andi Gutmans: "Re: [PHP-DEV] Bug #1235: string arithmetical misbehaviour"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

