Re: a FIXME in head.c

From: Date: Sat, 21 Jul 2001 15:48:45 +0000
Subject: Re: a FIXME in head.c
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60478@lists.php.net to get a copy of this message
> In the implementation of setcookie(), there's a FIXME line reading: > /* FIXME: XXX: this is not binary data safe */ > > I don't see how this can be binary safe, as we're creating a header line, > which cannot contain NULLs anyway. I think this comment should be removed, > but I want to see if anybody else has any thoughts about this... Yes, I wondered about that too. And just for kicks I looked up who wrote that comment: Mon Mar 16 06:41:11 1998 UTC (40 months ago) by jaakko That's a long time for a FIXME comment to survive! ;) See: http://cvs.php.net/viewcvs.cgi/php3/functions/head.c.diff?r1=1.82&r2=1.83 And as you can see, the comment actual made sense in that context, however the code it was commenting on has been removed without the comment being removed. He was referring to the strlen(cookie->value) call there. -Rasmus

« previous php.dev (#60478) next »