Re: cvs: php4 /ext/session session.c
| From: | Peter Petermann | Date: | Tue, 11 Sep 2001 10:16:41 +0000 |
| Subject: | Re: cvs: php4 /ext/session session.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7398@lists.php.net to get a copy of this message | ||
what is the problem with that change?
it doesnt affect any compatibility..
Peter
--
*ZIMT - where PHP meets needs*
Homepage: www.cyberfly.net - webmaster@cyberfly.net
PHP Usergroups: www.phpug.de - peter@phpug.de
PHP Infos: www.php-center.de - peter@php-center.de
> ----- Original Message -----
> From: "Sascha Schumann" <sascha@schumann.cx>
> To: <php-cvs@lists.php.net>
> Sent: Tuesday, September 11, 2001 12:16 PM
> Subject: [PHP-CVS] cvs: php4 /ext/session session.c
>
>
> > sas Tue Sep 11 06:16:01 2001 EDT
> >
> > Modified files:
> > /php4/ext/session session.c
> > Log:
> > revert last commit. Guys, discuss such things first, then commit.
> Mkay?
> >
> > Index: php4/ext/session/session.c
> > diff -u php4/ext/session/session.c:1.251
php4/ext/session/session.c:1.252
> > --- php4/ext/session/session.c:1.251 Tue Sep 11 06:13:44 2001
> > +++ php4/ext/session/session.c Tue Sep 11 06:16:01 2001
> > @@ -17,7 +17,7 @@
> >
> +----------------------------------------------------------------------+
> > */
> >
> > -/* $Id: session.c,v 1.251 2001/09/11 10:13:44 sterling Exp $ */
> > +/* $Id: session.c,v 1.252 2001/09/11 10:16:01 sas Exp $ */
> >
> > #ifdef HAVE_CONFIG_H
> > #include "config.h"
> > @@ -211,15 +211,6 @@
> > return ret;
> > }
> >
> > -PHPAPI void php_session_set_id(char *id TSRMLS_DC)
> > -{
> > - if (PS(id))
> > - efree(PS(id));
> > -
> > - PS(id) = estrdup(id);
> > -}
> > -
> > -
> > PHP_MINIT_FUNCTION(session);
> > PHP_RINIT_FUNCTION(session);
> > PHP_MSHUTDOWN_FUNCTION(session);
> > @@ -964,6 +955,7 @@
> > return retval;
> > }
> >
> > +
> > /* {{{ proto void session_set_cookie_params(int lifetime [, string path
> [, string domain [, bool secure]]])
> > Set session cookie parameters */
> > PHP_FUNCTION(session_set_cookie_params)
> > @@ -1140,7 +1132,8 @@
> >
> > if (ac == 1) {
> > convert_to_string_ex(p_name);
> > - php_session_set_id(Z_STRVAL_PP(p_name) TSRMLS_CC);
> > + if (PS(id)) efree(PS(id));
> > + PS(id) = estrndup(Z_STRVAL_PP(p_name), Z_STRLEN_PP(p_name));
> > }
> >
> > RETVAL_STRING(old, 0);
> >
> >
> >
> > --
> > PHP CVS Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-cvs-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >