Bug #67211 [Opn->Sus]: operator --
| From: | requinix@php.net | Date: | Tue, 06 May 2014 08:26:08 +0000 |
| Subject: | Bug #67211 [Opn->Sus]: operator -- | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185655@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67211&edit=1
ID: 67211
Updated by: requinix@php.net
Reported by: dark9 at rune dot ws
Summary: operator --
-Status: Open
+Status: Suspended
Type: Bug
Package: Variables related
Operating System: osx 10.9.2
PHP Version: 5.5.12
Block user comment: N
Private report: N
New Comment:
I'll go out on a limb and mark this as "suspended", pending an RFC:
https://wiki.php.net/rfc/normalize_inc_dec
Previous Comments:
------------------------------------------------------------------------
[2014-05-06 07:10:28] dark9 at rune dot ws
Description:
------------
run $a-=1;
result is $a=-1;
this is ok.
but run $a--;
result is $a=null;
but expected result should be $a=-1;
Test script:
---------------
<?php
$a--;
var_dump($a);
Expected result:
----------------
int(-1)
Actual result:
--------------
NULL
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67211&edit=1