ID:               34832
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dolecek at stringdata dot cz
-Status:           Open
+Status:           Feedback
 Bug Type:         Strings related
 Operating System: Windows 2000
 PHP Version:      5.0.5
 New Comment:

Please reopen the report only when you really try the snapshot.


Previous Comments:
------------------------------------------------------------------------

[2005-10-12 12:11:12] dolecek at stringdata dot cz

No, I've only tried PHP 5.1rc1 and 5.0.5 - is there any related change
to php_formatted_print() et.al recently which might likely fix this?

------------------------------------------------------------------------

[2005-10-12 12:08:44] [EMAIL PROTECTED]

Have you tried the snapshot?

------------------------------------------------------------------------

[2005-10-12 12:07:00] dolecek at stringdata dot cz

Reproduce steps:
1. download FPDF 1.53 (fpdf153.zip), extract to suitable directory
accessible via web server
2. edit fpdf.php and replace line:

$this->_out('/CreationDate '.$this->_textstring('D:'.date('YmdHis')));

with:

$this->_out('/CreationDate '.$this->_textstring('D:20051011143910'));

This is necessary so that generated PDF don't differ gratuitously.

2. put attached script to the same directory as the modified fpdf.php

3. run:
      siege -c 10 -v -u http://server/path/to/script.php

The script:

$pdf=new FPDF();
$pdf->AddPage();

$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->SetFont('Arial','',10);
$pdf->Cell(60,10,'Powered by FPDF.',0,1,'C');

$content = $pdf->Output(false, 'S');

if (md5($content) != '38ec5b17d2cda871e21b28ecaeecd08d') {
   trigger_error('pdf generation test bug', E_USER_ERROR);
}

------------------------------------------------------------------------

[2005-10-11 17:38:52] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

And try snapshot first.

------------------------------------------------------------------------

[2005-10-11 17:38:24] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.



------------------------------------------------------------------------

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/34832

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

Reply via email to