#46078 [Opn]: var_dump(int xor int) crash
| From: | ja dot doma at gmail dot com | Date: | Sun, 14 Sep 2008 20:07:04 +0000 |
| Subject: | #46078 [Opn]: var_dump(int xor int) crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128956@lists.php.net to get a copy of this message | ||
ID: 46078
User updated by: ja dot doma at gmail dot com
Reported By: ja dot doma at gmail dot com
Status: Open
Bug Type: Reproducible crash
Operating System: Windows
PHP Version: 5.2.6
New Comment:
This is clearly 'xor' problem, since this cause crash too:
$ch = (1 xor 3);
var_dump($ch);
//this not
$ch = 1 xor 3;
var_dump($ch); //result will be 1, expecting 2
Previous Comments:
------------------------------------------------------------------------
[2008-09-14 19:44:27] ja dot doma at gmail dot com
Description:
------------
PHP CLI (console mode) crashes when executing:
var_dump(120 xor 111); //or any other number
reproducible: always
//this works fine
$ch = 120 xor 111;
var_dump($ch);
//this works too
var_dump(120);
var_dump(120 + 3);
weird because other numerical expressions do not cause the crash, only
xor.
Reproduce code:
---------------
1) make test.php
2) put <?php var_dump(120 xor 111); ?> into the file
3) php test.php
Expected result:
----------------
int(120)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46078&edit=1