Re: OT : filtering the aioe spam



At Thu, 31 May 2007 12:08:11 +0100, Toby A Inkster let h(is|er) monkeys
type:

Schraalhans Keukenmeester wrote:

"strcmp('apples','oranges') is -1"

Technically, PHP doesn't guarantee this -- just that the return value will
be less than 0. It could be -42.

You are completely right Toby. Which makes me wonder why there's such a
loose definition of the retval, and what is actually stored in it inside
the func.

Sig fixed anyways.
;-)

--
Schraalhans Keukenmeester - schraalhans@xxxxxxxxxxxxxxxxxxxxxx
[Remove the lowercase part of Spamtrap to send me a message]

"strcmp('apples','oranges') < 0"

.



Relevant Pages

  • Re: OT : filtering the aioe spam
    ... PHP doesn't guarantee this -- just that the return value will ... Toby A Inkster BSc ARCS ...
    (comp.lang.php)
  • Re: User-scripting within PHP
    ... available for PHP? ... runkit is really weird and somewhat dangerous. ... Toby A Inkster BSc ARCS ...
    (comp.lang.php)
  • Re: safe to delete elements of array in foreach
    ... build an array of keys I want to delete, and after the loop ends, delete ... I don't know whether an operation like this is guaranteed to work in PHP ... guarantee it will work on another release or under different conditions. ... you unset the element it's pointing to (I suspect it isn't). ...
    (comp.lang.php)
  • Re: Date string manipulation
    ... What version of PHP are you using. ... with strtotime seems to work fine here with PHP 5.2.5. ... Toby A Inkster BSc ARCS ...
    (comp.lang.php)
  • Re: String Identity Test
    ... Well, it's not about curiosity, it's more about performance. ... I will make a PHP example ... This is pretty much the only guarantee you have. ... Does PHP really keep only one copy of every string? ...
    (comp.lang.python)