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

If I leave the status as it is, noone will read it again.
I'm doing an article comparing idiosyncrasies of PHP vs ASP.  Can I get
a statement from the PHP community along the lines of:

"It is the opinion of the PHP Community that ideally, bitwise AND
should work on strings, and bitwise OR should not.  While this may
appear tremendously stupid, it is actually quite logical and
intelligent."


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

[2003-09-16 11:45:54] [EMAIL PROTECTED]

We won't be changing this, because we don't see a need for performing
bitwise logical operations on strings.

If you feel so strongly about it, you are welcome to submit a patch to
the developer list and see if enough people think it's worthwhile
including in PHP.

Please keep the status of this report as it is.

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

[2003-09-16 11:25:19] spagmoid at yahoo dot com

Then why can you add strings with +?
Why can you logically AND strings with &?
Why can you multiply strings with *?
Does consistency matter in the slightest to you people?

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

[2003-09-16 11:19:48] [EMAIL PROTECTED]

You can't logically OR strings.
Now, forget about it ;)

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

[2003-09-15 23:15:50] spagmoid at yahoo dot com

if $A+$B works, then $A|$B should work as well.  '|' is not '.'

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

[2003-09-15 22:55:58] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

echo (int)$A|(int)$B;

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/25533

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

Reply via email to