Re: OT : filtering the aioe spam
- From: gosha bine <stereofrog@xxxxxxxxx>
- Date: Thu, 31 May 2007 18:48:16 +0200
On 31.05.2007 15:12 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.
;-)
Php uses "memcmp" (in non-unicode mode) which is defined in standard as returning positive, negative or zero, without details.
http://www.opengroup.org/onlinepubs/000095399/functions/memcmp.html
php function (quite funny one, BTW)
http://lxr.php.net/source/ZendEngine2/zend_operators.c#2505
--
gosha bine
extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
.
- 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: Intense CPU strain....suggestions
- Next by Date: Re: Writing to Heredoc from Text Area Form
- Previous by thread: Re: OT : filtering the aioe spam
- Next by thread: Re: OT : filtering the aioe spam
- Index(es):