#28223 [Opn->Csd]: unary minus operator is not documented
| From: | vrana@php.net | Date: | Tue, 27 Jul 2004 21:31:14 +0000 |
| Subject: | #28223 [Opn->Csd]: unary minus operator is not documented | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969362278@lists.php.net to get a copy of this message | ||
ID: 28223
Updated by: vrana@php.net
Reported By: krenya at inf dot bme dot hu
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: any
PHP Version: 4.3.6
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Thanks for a bit of fun with
Expected result:
----------------
PARSE error as there's no unary minus operator according to the docs
Previous Comments:
------------------------------------------------------------------------
[2004-04-29 22:49:02] krenya at inf dot bme dot hu
Description:
------------
"Table 10-1. Operator Precedence" and "Table 10-2. Arithmetic
Operators" tables do not include the "unary minus" operator although it
exists in php.
Please add itt to the two table above.
Thanx
Reproduce code:
---------------
<?
$a = 1;
$a = -$a;
echo $a;
?>
Expected result:
----------------
PARSE error as there's no unary minus operator according to the docs
Actual result:
--------------
ouputs "-1"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28223&edit=1