Bug with headers() + flush()
2 posts
• Page 1 of 1
Bug with headers() + flush()
flush() is resetting the HTTP headers()
Sample code:
Expected result: headers should be sent.
Actual result: no headers are sent when calling flush().
Sample code:
- Code: Select all
<?php
header('Content-Transfer-Encoding: binary');
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment; filename=test.xls');
header('Pragma: no-cache');
header('Expires: 0');
echo "Content\n";
flush();
die('ok');
Expected result: headers should be sent.
Actual result: no headers are sent when calling flush().
- kripper
- Posts: 44
- Joined: February 19th, 2012, 1:02 am
Re: Bug with headers() + flush()
Please confirm this is a bug in Phalanger.
- kripper
- Posts: 44
- Joined: February 19th, 2012, 1:02 am
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests