reproducable script:

<?php
$_COOKIE[session_name()] = 'a';
session_start();
session_regenerate_id();
?>

$ ./sapi/cgi/php.exe -v
PHP 5.1.0-dev (cgi-fcgi) (built: May  7 2005 01:01:15)

$ grep 'Id:' ../php5/ext/session/session.c
/* $Id: session.c,v 1.409 2005/03/24 00:17:16 tony2001 Exp $ */

$ ./sapi/cgi/php.exe test.php
Content-type: text/html
Set-Cookie: SID=a; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: SID=a22f42753f62f7b6a426f159851f0b40; path=/


Notice: Constant SID already defined in /usr/src/php5-obj/a on line 4

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to