ID:               25533
 User updated by:  spagmoid at yahoo dot com
 Reported By:      spagmoid at yahoo dot com
-Status:           Bogus
+Status:           Open
 Bug Type:         Math related
 Operating System: WinXP
 PHP Version:      4.3.3
 New Comment:

Uhh..

"do not"?  That's your solution?  You're kidding, right?

OK how about this.  Values returned from mysql.

$A = "146";
$B = "2";
echo $A|$B;
result: 346


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

[2003-09-14 20:08:36] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Do not perform bitwise operations on strings.

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

[2003-09-14 11:47:47] spagmoid at yahoo dot com

Description:
------------
This is a difficult issue to search for dups on.  Strings used with
pipe OR "|" do something weird.  Here it is:

echo "146"|"2";

result is "346"

echo (int)"146"|"2";

result is correct "146";



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


-- 
Edit this bug report at http://bugs.php.net/?id=25533&edit=1

Reply via email to