[PHP-DEV] Bug #5653 Updated: PIKE specific: with setcookie(), only the last cookie is written

2002-02-02 Thread sander

ID: 5653
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Other web server
Operating System: Linux
PHP Version: 4.0.5
New Comment:

No feedback was provided for this bug, so it is being suspended.
If you are able to provide the information that was requested,
please do so and change the status of the bug back to Open.


Previous Comments:


[2002-01-11 16:45:03] [EMAIL PROTECTED]

Can this be reproduced with the PHP 4.1.1, and perhaps the latest
roxen/pike?



[2001-08-16 12:55:28] [EMAIL PROTECTED]

[2001-08-16 12:24:36] [EMAIL PROTECTED]

There is small problem in Roxen's SAPI, which arises when duplicate
headers are sent out.
While playing with some PHP apps with Roxen, I found that regardless
how many cookies are
set in PHP code, only one is sent to the browser.

Investigation shows that Roxen's SAPI uses Pike's type mapping to
send
headers, which (of course) doesn't allow duplicate headers (in my case
Set-Cookie) to be sent, i.e. only last one is sent, since subsequesnt
calls to
set header with the same name will replace previous.

Proposed solution: use array instead of mapping. It will require
changes in Roxen module
as well, of course, but this should not be difficult.





[2001-08-14 20:08:47] [EMAIL PROTECTED]

feedback - open



[2001-07-24 12:23:37] [EMAIL PROTECTED]

OK here is the result...

Variable Value 
PHP_SELF  =  /test.php 
HTTP_COOKIE_VARS[cookie3] = phprocks  

if you don't believe you can try at www.delta7.de/test.php.
The real problem is in source-file src/sapi/roxen/roxen.c about line
298 (in ver 4.0.6 of PHP)...
this function (pike):
mapping_string_insert(REQUEST_DATA, ind, mappie);
does not append headers of the same type (here cookies).
this means: old cookies are deleted and replaced with the last one you
set.

The Problen is _not_ on the side of the webserver. I found out (and may
proove) that the roxen-php-module will recieve more than only one
cookie if you like, i would make some php-scripts that will show
you...


 




[2001-07-24 09:02:41] [EMAIL PROTECTED]

this could be because your server is only sending one cookie to 
browser

Try creating a script like the one below...
?
setcookie (cookie1,helloworld);
setcookie(cookie2,ilovetheworld);
setcookie(cookie3,phprocks);

phpinfo();
?

go down to the section about the HTTP Headers Information
then go to the HTTP Response Headers.  Either post this
information here, or give us the address to that page.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=5653


Edit this bug report at http://bugs.php.net/?id=5653edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #5653 Updated: PIKE specific: with setcookie(), only the last cookie is written

2002-01-11 Thread lobbin

ID: 5653
Updated by: lobbin
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Other web server
Operating System: Linux
PHP Version: 4.0.5
New Comment:

Can this be reproduced with the PHP 4.1.1, and perhaps the latest
roxen/pike?


Previous Comments:


[2001-08-16 12:55:28] [EMAIL PROTECTED]

[2001-08-16 12:24:36] [EMAIL PROTECTED]

There is small problem in Roxen's SAPI, which arises when duplicate
headers are sent out.
While playing with some PHP apps with Roxen, I found that regardless
how many cookies are
set in PHP code, only one is sent to the browser.

Investigation shows that Roxen's SAPI uses Pike's type mapping to
send
headers, which (of course) doesn't allow duplicate headers (in my case
Set-Cookie) to be sent, i.e. only last one is sent, since subsequesnt
calls to
set header with the same name will replace previous.

Proposed solution: use array instead of mapping. It will require
changes in Roxen module
as well, of course, but this should not be difficult.





[2001-08-14 20:08:47] [EMAIL PROTECTED]

feedback - open



[2001-07-24 12:23:37] [EMAIL PROTECTED]

OK here is the result...

Variable Value 
PHP_SELF  =  /test.php 
HTTP_COOKIE_VARS[cookie3] = phprocks  

if you don't believe you can try at www.delta7.de/test.php.
The real problem is in source-file src/sapi/roxen/roxen.c about line
298 (in ver 4.0.6 of PHP)...
this function (pike):
mapping_string_insert(REQUEST_DATA, ind, mappie);
does not append headers of the same type (here cookies).
this means: old cookies are deleted and replaced with the last one you
set.

The Problen is _not_ on the side of the webserver. I found out (and may
proove) that the roxen-php-module will recieve more than only one
cookie if you like, i would make some php-scripts that will show
you...


 




[2001-07-24 09:02:41] [EMAIL PROTECTED]

this could be because your server is only sending one cookie to 
browser

Try creating a script like the one below...
?
setcookie (cookie1,helloworld);
setcookie(cookie2,ilovetheworld);
setcookie(cookie3,phprocks);

phpinfo();
?

go down to the section about the HTTP Headers Information
then go to the HTTP Response Headers.  Either post this
information here, or give us the address to that page.



[2001-07-24 02:01:28] [EMAIL PROTECTED]

This is not a browser-specific bug. It's only pike-specifc (roxen) .

I spent some time to undaerstand the roxen-sapi-code, but at last I'm
not able to fix it.
This 'bug' is already mentioned in the README
..sorry. 

So this 'bug' should be listed in 'missing features' or 'todo's' but
not maybe not in 'bugs'





The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=5653


Edit this bug report at http://bugs.php.net/?id=5653edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #5653 Updated: PIKE specific: with setcookie(), only the last cookie is written

2001-08-16 Thread cynic

ID: 5653
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Other web server
Operating System: Linux
PHP Version: 4.0.5
New Comment:

[2001-08-16 12:24:36] [EMAIL PROTECTED]

There is small problem in Roxen's SAPI, which arises when duplicate headers are sent 
out.
While playing with some PHP apps with Roxen, I found that regardless how many cookies 
are
set in PHP code, only one is sent to the browser.

Investigation shows that Roxen's SAPI uses Pike's type mapping to send
headers, which (of course) doesn't allow duplicate headers (in my case
Set-Cookie) to be sent, i.e. only last one is sent, since subsequesnt calls to
set header with the same name will replace previous.

Proposed solution: use array instead of mapping. It will require changes in Roxen 
module
as well, of course, but this should not be difficult.



Previous Comments:


[2001-08-14 20:08:47] [EMAIL PROTECTED]

feedback - open



[2001-07-24 12:23:37] [EMAIL PROTECTED]

OK here is the result...

Variable Value 
PHP_SELF  =  /test.php 
HTTP_COOKIE_VARS[cookie3] = phprocks  

if you don't believe you can try at www.delta7.de/test.php.
The real problem is in source-file src/sapi/roxen/roxen.c about line 298 (in ver 4.0.6 
of PHP)...
this function (pike):
mapping_string_insert(REQUEST_DATA, ind, mappie);
does not append headers of the same type (here cookies).
this means: old cookies are deleted and replaced with the last one you set.

The Problen is _not_ on the side of the webserver. I found out (and may proove) that 
the roxen-php-module will recieve more than only one cookie if you like, i would 
make some php-scripts that will show you...


 




[2001-07-24 09:02:41] [EMAIL PROTECTED]

this could be because your server is only sending one cookie to 
browser

Try creating a script like the one below...
?
setcookie (cookie1,helloworld);
setcookie(cookie2,ilovetheworld);
setcookie(cookie3,phprocks);

phpinfo();
?

go down to the section about the HTTP Headers Information
then go to the HTTP Response Headers.  Either post this
information here, or give us the address to that page.



[2001-07-24 02:01:28] [EMAIL PROTECTED]

This is not a browser-specific bug. It's only pike-specifc (roxen) .

I spent some time to undaerstand the roxen-sapi-code, but at last I'm not able to fix 
it.
This 'bug' is already mentioned in the README
..sorry. 

So this 'bug' should be listed in 'missing features' or 'todo's' but not maybe not in 
'bugs'





[2001-07-23 19:26:00] [EMAIL PROTECTED]

i meant to say only lets you set ONE



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=5653


Edit this bug report at http://bugs.php.net/?id=5653edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #5653 Updated: PIKE specific: with setcookie(), only the last cookie is written

2001-08-14 Thread jmoore

ID: 5653
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Other web server
Operating System: Linux
PHP Version: 4.0.5
New Comment:

feedback - open

Previous Comments:


[2001-07-24 12:23:37] [EMAIL PROTECTED]

OK here is the result...

Variable Value 
PHP_SELF  =  /test.php 
HTTP_COOKIE_VARS[cookie3] = phprocks  

if you don't believe you can try at www.delta7.de/test.php.
The real problem is in source-file src/sapi/roxen/roxen.c about line 298 (in ver 4.0.6 
of PHP)...
this function (pike):
mapping_string_insert(REQUEST_DATA, ind, mappie);
does not append headers of the same type (here cookies).
this means: old cookies are deleted and replaced with the last one you set.

The Problen is _not_ on the side of the webserver. I found out (and may proove) that 
the roxen-php-module will recieve more than only one cookie if you like, i would 
make some php-scripts that will show you...


 




[2001-07-24 09:02:41] [EMAIL PROTECTED]

this could be because your server is only sending one cookie to 
browser

Try creating a script like the one below...
?
setcookie (cookie1,helloworld);
setcookie(cookie2,ilovetheworld);
setcookie(cookie3,phprocks);

phpinfo();
?

go down to the section about the HTTP Headers Information
then go to the HTTP Response Headers.  Either post this
information here, or give us the address to that page.



[2001-07-24 02:01:28] [EMAIL PROTECTED]

This is not a browser-specific bug. It's only pike-specifc (roxen) .

I spent some time to undaerstand the roxen-sapi-code, but at last I'm not able to fix 
it.
This 'bug' is already mentioned in the README
..sorry. 

So this 'bug' should be listed in 'missing features' or 'todo's' but not maybe not in 
'bugs'





[2001-07-23 19:26:00] [EMAIL PROTECTED]

i meant to say only lets you set ONE



[2001-07-23 19:25:30] [EMAIL PROTECTED]

this is probably a browser related problem (the browser only
lets you set noe cookie per site.)  Does anyone else agree
or has somebody actually reproduced this one?



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=5653


Edit this bug report at http://bugs.php.net/?id=5653edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #5653 Updated: PIKE specific: with setcookie(), only the last cookie is written

2001-07-24 Thread schulte

ID: 5653
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Other web server
Operating System: Linux
PHP Version: 4.0.5
New Comment:

OK here is the result...

Variable Value 
PHP_SELF  =  /test.php 
HTTP_COOKIE_VARS[cookie3] = phprocks  

if you don't believe you can try at www.delta7.de/test.php.
The real problem is in source-file src/sapi/roxen/roxen.c about line 298 (in ver 4.0.6 
of PHP)...
this function (pike):
mapping_string_insert(REQUEST_DATA, ind, mappie);
does not append headers of the same type (here cookies).
this means: old cookies are deleted and replaced with the last one you set.

The Problen is _not_ on the side of the webserver. I found out (and may proove) that 
the roxen-php-module will recieve more than only one cookie if you like, i would 
make some php-scripts that will show you...


 


Previous Comments:


[2001-07-24 09:02:41] [EMAIL PROTECTED]

this could be because your server is only sending one cookie to 
browser

Try creating a script like the one below...
?
setcookie (cookie1,helloworld);
setcookie(cookie2,ilovetheworld);
setcookie(cookie3,phprocks);

phpinfo();
?

go down to the section about the HTTP Headers Information
then go to the HTTP Response Headers.  Either post this
information here, or give us the address to that page.



[2001-07-24 02:01:28] [EMAIL PROTECTED]

This is not a browser-specific bug. It's only pike-specifc (roxen) .

I spent some time to undaerstand the roxen-sapi-code, but at last I'm not able to fix 
it.
This 'bug' is already mentioned in the README
..sorry. 

So this 'bug' should be listed in 'missing features' or 'todo's' but not maybe not in 
'bugs'





[2001-07-23 19:26:00] [EMAIL PROTECTED]

i meant to say only lets you set ONE



[2001-07-23 19:25:30] [EMAIL PROTECTED]

this is probably a browser related problem (the browser only
lets you set noe cookie per site.)  Does anyone else agree
or has somebody actually reproduced this one?



[2001-05-06 16:45:56] [EMAIL PROTECTED]

is this still the case with the latest 4.0.5 release?



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=5653


Edit this bug report at http://bugs.php.net/?id=5653edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #5653 Updated: PIKE specific: with setcookie(), only the last cookie is written

2001-07-23 Thread andy

ID: 5653
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Other web server
Operating System: Linux
PHP Version: 4.0.5
New Comment:

this is probably a browser related problem (the browser only
lets you set noe cookie per site.)  Does anyone else agree
or has somebody actually reproduced this one?

Previous Comments:


[2001-05-06 16:45:56] [EMAIL PROTECTED]

is this still the case with the latest 4.0.5 release?



[2001-05-06 12:31:46] [EMAIL PROTECTED]

This bug is still present in 4.0.5.



[2000-10-30 09:40:14] [EMAIL PROTECTED]

reclassified.



[2000-09-14 16:33:52] [EMAIL PROTECTED]

This behaviour is still visible in PHP 4.0.2 with Roxen (pike 7.0.58).




[2000-08-17 16:19:50] [EMAIL PROTECTED]

This is not a session-related issue. Reclassifying.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=5653


Edit this bug report at http://bugs.php.net/?id=5653edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #5653 Updated: PIKE specific: with setcookie(), only the last cookie is written

2001-07-23 Thread andy

ID: 5653
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Other web server
Operating System: Linux
PHP Version: 4.0.5
New Comment:

i meant to say only lets you set ONE

Previous Comments:


[2001-07-23 19:25:30] [EMAIL PROTECTED]

this is probably a browser related problem (the browser only
lets you set noe cookie per site.)  Does anyone else agree
or has somebody actually reproduced this one?



[2001-05-06 16:45:56] [EMAIL PROTECTED]

is this still the case with the latest 4.0.5 release?



[2001-05-06 12:31:46] [EMAIL PROTECTED]

This bug is still present in 4.0.5.



[2000-10-30 09:40:14] [EMAIL PROTECTED]

reclassified.



[2000-09-14 16:33:52] [EMAIL PROTECTED]

This behaviour is still visible in PHP 4.0.2 with Roxen (pike 7.0.58).




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=5653


Edit this bug report at http://bugs.php.net/?id=5653edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #5653 Updated: PIKE specific: with setcookie(), only the last cookie is written

2001-07-23 Thread schulte

ID: 5653
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Other web server
Operating System: Linux
PHP Version: 4.0.5
New Comment:

This is not a browser-specific bug. It's only pike-specifc (roxen) .

I spent some time to undaerstand the roxen-sapi-code, but at last I'm not able to fix 
it.
This 'bug' is already mentioned in the README
..sorry. 

So this 'bug' should be listed in 'missing features' or 'todo's' but not maybe not in 
'bugs'



Previous Comments:


[2001-07-23 19:26:00] [EMAIL PROTECTED]

i meant to say only lets you set ONE



[2001-07-23 19:25:30] [EMAIL PROTECTED]

this is probably a browser related problem (the browser only
lets you set noe cookie per site.)  Does anyone else agree
or has somebody actually reproduced this one?



[2001-05-06 16:45:56] [EMAIL PROTECTED]

is this still the case with the latest 4.0.5 release?



[2001-05-06 12:31:46] [EMAIL PROTECTED]

This bug is still present in 4.0.5.



[2000-10-30 09:40:14] [EMAIL PROTECTED]

reclassified.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=5653


Edit this bug report at http://bugs.php.net/?id=5653edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]