RE: PHP 4.0 Bug #7888 Updated: decrement syntax should be -- inst ead of -
| From: | Jeroen Goulooze | Date: | Mon, 20 Nov 2000 11:50:21 +0000 |
| Subject: | RE: PHP 4.0 Bug #7888 Updated: decrement syntax should be -- inst ead of - | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38577@lists.php.net to get a copy of this message | ||
Thanx,
I found my error in the pdf file.
Jeroen Goulooze
-----Original Message-----
From: Bug Database [mailto:php-dev@lists.php.net]
Sent: maandag 20 november 2000 12:24
To: jgoulooze@thinktoo.nl
Subject: PHP 4.0 Bug #7888 Updated: decrement syntax should be --
instead of -
ID: 7888
Updated by: derick
Reported By: jgoulooze@thinktoo.nl
Status: Analyzed
Bug Type: Documentation problem
Assigned To:
Comments:
It's a typo in the manual. Fixing it now.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-20 06:17:13] jgoulooze@thinktoo.nl
The documentation says
$a= 5;
-$a;
echo $a;
theresult: 4
$a= 5;
$a-;
echo $a
theresult: 4
In reality however both report an error
Instead it should be:
$a--;
--$a;
Which makes more sense to me since it is also ++$a and $a++.
Is this just the winversion, has it to do with phptriad or is this a mistake
in the documentation? Since I probably end up serving the pages on Linux and
building it on Wintel it could be quite a problem.
Jeroen Goulooze
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7888