Re: OT : filtering the aioe spam
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Thu, 31 May 2007 11:45:32 -0400
Schraalhans Keukenmeester wrote:
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.
;-)
I suspect this goes back to the C strcmp, which has the same definition. Some C compilers return exactly +1, -1 or 0. Others return the numeric difference between the two. The latter is slightly faster in machine code.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- OT : filtering the aioe spam
- From: Schraalhans Keukenmeester
- Re: OT : filtering the aioe spam
- From: Toby A Inkster
- Re: OT : filtering the aioe spam
- From: Schraalhans Keukenmeester
- OT : filtering the aioe spam
- Prev by Date: Re: PHP Setup
- Next by Date: Re: login script with two levels of access
- Previous by thread: Re: OT : filtering the aioe spam
- Next by thread: Re: OT : filtering the aioe spam
- Index(es):
Relevant Pages
|