Page 1 of 1

phpmyadmin and php 4.2.1 (and 4.2.0) set_cookie bug

PostPosted: 05. July 2005 15:41
by JoKoT3
Hi there, I would know how do you plane to handle the php set_cookie bug in xampp.

It actually make phpmyadmin impossible to use with cookie authentification (the more secure way) : see 1.3 in phpmyadmin server faq

You can handle this bug easiely, recompiling php source with this hack (shown in the bug report) :

[3 May 2002 1:11am CEST] regina at hitel dot net

I did fix this problem by modifing "ext/standard/head.c".
The diff is below.
Code: Select all
--------------------------------------------------------
124c124
<       return sapi_add_header(cookie, strlen(cookie), 0);
---
>       return sapi_add_header_ex(cookie, strlen(cookie), 0, 0
TSRMLS_CC);
--------------------------------------------------------


PS) This bug should be killed at next version. May be....


Hope this will help.

Edit : Oups I forget to tell you this bug is patched in latests CVS versions.

PostPosted: 05. July 2005 15:59
by Wiedmann
I would know how do you plane to handle the php set_cookie bug in xampp.

There is no plan. Because PHP 4.2.1 is outdated already for a long time.