ID:               28223
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to