# Patches for case insensitive in_array, bug id 12192

- Thread: https://externals.io/message/495
- Original archive: https://news-web.php.net/php.internals/495
- Started by Magnus Maatta on 2003-03-30T16:20:27+00:00
- Messages: 6
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #495 — Magnus Maatta — 2003-03-30T16:20:27+00:00

URL: https://externals.io/message/495#495

Hi!

Here are two patches that will fix this user request.
I hope they look fine. Btw, they are for php5 HEAD.

I don't have any karma so I can't commit them even if they look
good. So I will leave that to someone else..



/Magnus


-- 
War is much too serious a matter to be entrusted to the military.
		-- Clemenceau

---

## #496 — Moriyoshi Koizumi — 2003-03-30T16:25:43+00:00

URL: https://externals.io/message/495#496 · In reply to: #495

Where's the patch? It seems your sylpheed doesn't correctly send the 
attachment as text/plain. Try suffixing it with ".txt"..

Moriyoshi

Magnus Maatta <magnus@php.net> wrote:

> Hi!
> 
> Here are two patches that will fix this user request.
> I hope they look fine. Btw, they are for php5 HEAD.
> 
> I don't have any karma so I can't commit them even if they look
> good. So I will leave that to someone else..
> 
> 
> 
> /Magnus
> 
> 
> -- 
> War is much too serious a matter to be entrusted to the military.
> 		-- Clemenceau

---

## #497 — Magnus Maatta — 2003-03-30T16:32:21+00:00

URL: https://externals.io/message/495#497 · In reply to: #496

On Mon, 31 Mar 2003 01:25:43 +0900
Moriyoshi Koizumi <moriyoshi@at.wakwak.com> wrote:

> Where's the patch? It seems your sylpheed doesn't correctly send the 
> attachment as text/plain. Try suffixing it with ".txt"..
> 

hmm.. heh.. ok.. They should come now then.. And remember that it's my
first patches (ZE2 patch is 90% Marcus btw), so don't be to hard on me =D


/Magnus




-- 
Stock's Observation:
	You no sooner get your head above water but what someone pulls
	your flippers off.

---

## #498 — Magnus Maatta — 2003-03-30T16:36:36+00:00

URL: https://externals.io/message/495#498 · In reply to: #497

On Sun, 30 Mar 2003 18:32:21 +0200
Magnus Maatta <magnus@php.net> wrote:

> On Mon, 31 Mar 2003 01:25:43 +0900
> Moriyoshi Koizumi <moriyoshi@at.wakwak.com> wrote:
> 
> > […]
> 
> hmm.. heh.. ok.. They should come now then.. And remember that it's my
> first patches (ZE2 patch is 90% Marcus btw), so don't be to hard on me =D

Argh.. Let me put them on URL instead..

http://novell.stoldgods.nu/~magnus/12192.diff
http://novell.stoldgods.nu/~magnus/ieicf.diff


> 
> /Magnus
> 
> 
> 
> 
> -- 
> Stock's Observation:
> 	You no sooner get your head above water but what someone pulls
> 	your flippers off.
> 
> 


-- 
"The Amiga is the only personal computer where you can run a multitasking 
operating system and get realtime performance, out of the box."
-- Peter da Silva

---

## #500 — Andrei Zmievski — 2003-03-30T16:46:41+00:00

URL: https://externals.io/message/495#500 · In reply to: #498

> > […]
> 
> Argh.. Let me put them on URL instead..
> 
> http://novell.stoldgods.nu/~magnus/12192.diff
> http://novell.stoldgods.nu/~magnus/ieicf.diff

I'd rather not keep extending `in_array()` with more and more parameters.
I must have missed it, but why do we need a case-insensitive version of
it in the first place?

-Andrei                                       http://www.gravitonic.com/

"The day Microsoft makes something that doesn't suck, 
is probably the day Microsoft starts making vacuum cleaners."
        - Ernst Jan Plugge

---

## #501 — Magnus Maatta — 2003-03-30T16:52:29+00:00

URL: https://externals.io/message/495#501 · In reply to: #500

On Sun, 30 Mar 2003 11:46:41 -0500
Andrei Zmievski <andrei@gravitonic.com> wrote:

> 
> > […]
> 
> I'd rather not keep extending `in_array()` with more and more parameters.
> I must have missed it, but why do we need a case-insensitive version of
> it in the first place?

Well, I don't really need it atm. But someone requested it and I wrote a patch
for it. Mostly just to learn this =)

But if people don't want case insensive in_array I will mark the bug as "Won't fix".

/ Magnus


-- 
Don't despair; your ideal lover is waiting for you around the corner.
