ID:               46078
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ja dot doma at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Windows
 PHP Version:      5.2.6
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2008-09-14 20:07:03] ja dot doma at gmail dot com

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

------------------------------------------------------------------------

[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

Reply via email to