ID:               25533
 User updated by:  spagmoid at yahoo dot com
 Reported By:      spagmoid at yahoo dot com
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: WinXP
 PHP Version:      4.3.3
 New Comment:

Let's see a few other things straight from the manual since you're all
such EXPERTS on it:

$foo = "0";  // $foo is string (ASCII 48)
$foo += 2;   // $foo is now an integer (2)

$foo = 1 + "10.5";                // $foo is float (11.5)
$foo = 1 + "-1.3e3";              // $foo is float (-1299)
$foo = 1 + "bob-1.3e3";           // $foo is integer (1)
$foo = 1 + "bob3";                // $foo is integer (1)
$foo = 1 + "10 Small Pigs";       // $foo is integer (11)
$foo = 4 + "10.2 Little Piggies"; // $foo is float (14.2)
$foo = "10.0 pigs " + 1;          // $foo is float (11)
$foo = "10.0 pigs " + 1.0;        // $foo is float (11) 

Does that look "UNDEFINED" to you???  Huh?  Take that feature out and
watch how many current PHP apps fail.  You people have no sense of
QUALITY whatsoever.  NO PRIDE IN YOUR WORK.  NO PRIDE IN PHP.


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

[2003-09-16 13:33:11] spagmoid at yahoo dot com

"The result of using other operators on strings is undefined."

RTFM??  That line isn't in the manual you moron!  You just made it up! 
Add it to the manual then, instead of improving your product.  What a
bunch of jackasses.

THIS is in the manual:

String conversion to numbers
When a string is evaluated as a numeric value, the resulting value and
type are determined as follows.

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

[2003-09-16 13:25:49] [EMAIL PROTECTED]

Here's your statement:

"PHP has two string operators ('.' and '.=', RTFM). The result of using
other operators on strings is undefined."

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

[2003-09-16 13:15:16] [EMAIL PROTECTED]

Not a bug -> Bogus

DON'T TOUCH THE STATUS!

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

[2003-09-16 12:36:15] spagmoid at yahoo dot com

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."

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

[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.

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

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