Newsgroups: php.internals,php.internals Path: news.php.net Xref: news.php.net php.internals:24131 php.internals:24132 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24617 invoked by uid 1010); 15 Jun 2006 16:14:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24600 invoked from network); 15 Jun 2006 16:14:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jun 2006 16:14:58 -0000 X-PHP-List-Original-Sender: tularis@php.net X-Host-Fingerprint: 62.131.2.67 ip3e830243.speed.planet.nl Received: from ([62.131.2.67:19659] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 2D/D8-00253-18781944 for ; Thu, 15 Jun 2006 12:14:58 -0400 To: internals@lists.php.net,Alexander Pak Message-ID: <4491878D.5080206@php.net> Date: Thu, 15 Jun 2006 18:15:09 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 CC: internals@lists.php.net, Jason Boudreault References: <002e01c69041$38912c70$0201a8c0@eidolon> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 62.131.2.67 Subject: Re: [PHP-DEV] PHP Cookie Class From: tularis@php.net ("M. Sokolewicz") Alexander Pak wrote: > I think it's a great idea, maybe it sould be implemented the same way for > sessions too? > > On 6/15/06, Jason Boudreault wrote: > >> >> So, I found myself wondering today why PHP has no built in way to treat >> cookies as objects. >> >> Why? >> >> I've already written my own class, but, we should implement this! >> >> $cookie = new Cookie(); >> if (!isset($cookie->username)) { >> $cookie->username = "george"; >> $cookie->save(); >> } >> >> ^^ is nice, I was also thinking, there should be an option to auto-save >> the cookies on __set :) >> >> -j >> > > > I think it's a useless idea and (mainly) this discussion should be moved to php-generals (or can be reported as a feature suggestion in a bugreport; bugs.php.net). It has nothing to do with PHP internals.