Bug #16209: FDF does not work when using session_start()
| From: | tnguyen at scpie dot com | Date: | Thu, 21 Mar 2002 19:27:15 +0000 |
| Subject: | Bug #16209: FDF does not work when using session_start() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-3077@lists.php.net to get a copy of this message | ||
From: tnguyen@scpie.com
Operating system: windows NT sp6
PHP version: 4.0.6
PHP Bug Type: Session related
Bug description: FDF does not work when using session_start()
It seems that the following script will not work properly with the
session_start();
<?php
session_start();
//path to pdf file
$url="http://www.some_url.com/form.pdf";
$values=$HTTP_POST_VARS;
$fdfdata = "%FDF-1.2\n%\n";
$fdfdata .= "1 0 obj \n<< /FDF ";
$fdfdata .= "<< /Fields [\n";
//loop that adds the field names and values
foreach($values as $key=>$val)
{
$fdfdata.="<< /V ($val)/T ($key) >> ";
}
$fdfdata .= "]\n";
$fdfdata .= "/F ($url) >>";
$fdfdata .= ">>\nendobj\ntrailer\n<<\n/Root 1 0
R\n>>\n";
$fdfdata .= "%%EOF";
/*** Now we display the FDF data which causes Acrobat to start ***/
header ("Content-Type: application/vnd.fdf");
print $fdfdata;
?>
--
Edit bug report at http://bugs.php.net/?id=16209&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16209&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16209&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16209&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16209&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16209&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16209&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16209&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16209&r=submittedtwice