[PHP-DEV] [PATCH] Addition of setcookie2() to support RFC 2965

2007-08-25 Thread Ben Ramsey
Here is a patch I am submitting as a recommendation to implement a setcookie2() function to support the Set-Cookie2 response header defined in RFC 2965. RFC 2965 obsoletes the original Netscape cookie specification and RFC 2109. Unfortunately, the only major browser I can find that implements

Re: [PHP-DEV] [PATCH] Addition of setcookie2() to support RFC 2965

2007-08-25 Thread Stanislav Malyshev
Here is a patch I am submitting as a recommendation to implement a setcookie2() function to support the Set-Cookie2 response header defined in RFC 2965. I think setcookie2 can ve useful, but a function with 13 arguments is a monster. Especially that you may not use all of them. Maybe it's

Re: [PHP-DEV] [PATCH] Addition of setcookie2() to support RFC 2965

2007-08-25 Thread Ben Ramsey
On 8/25/07 4:58 PM, Stanislav Malyshev wrote: Here is a patch I am submitting as a recommendation to implement a setcookie2() function to support the Set-Cookie2 response header defined in RFC 2965. I think setcookie2 can ve useful, but a function with 13 arguments is a monster. Especially

Re: [PHP-DEV] Constants in namesapces

2007-08-25 Thread Richard Lynch
On Thu, August 23, 2007 5:52 pm, Stanislav Malyshev wrote: define_ns('FOOBAR', $value); Can be, but there's two downsides: 1. define_ns would be weird construct - it would be combined function/operator 2. operators with underscores look bad... At the risk of starting another packages versus

RE: [PHP-DEV] Constants in namesapces

2007-08-25 Thread Richard Lynch
On Wed, August 22, 2007 8:03 am, Dmitry Stogov wrote: You can have const outside namespaces but they are not real compile-time constants. They are set during execution in the same way as define() does. ?php const DIR = dirname(__FILE__); echo DIR; ? You do realize this is going to

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-08-25 Thread Richard Lynch
On Tue, August 21, 2007 1:22 am, Lukas Kahwe Smith wrote: Andi Gutmans wrote: Before we continue this discussion I think there are a couple of things which would be useful data points: a) What is the performance difference between an implicit Unicode app and non-Unicode. If we have 3-4 apps

Re: [PHP-DEV] What is the use of unicode.semantics in PHP 6?

2007-08-25 Thread Richard Lynch
On Tue, August 21, 2007 5:21 pm, Stanislav Malyshev wrote: So if you don't deal with them, you'd just say we don't run on PHP 6. Is it better than saying we run on PHP 6 only with that specific setting? Yes, it is better, imho. -- Some people have a gift link here. Know what I want? I want

Re: [PHP-DEV] reserved word alert

2007-08-25 Thread Richard Lynch
I think we should rename flex to something else because you just confused me with that new Adobe not-quite-flash flex thingie... :-) :-) ;-) Just Kidding!!! (Not about the confusing me part, as we all know that's trivial...) On Mon, August 20, 2007 5:04 am, Marcus Boerger wrote: Hello