ID: 34832
User updated by: dolecek at stringdata dot cz
Reported By: dolecek at stringdata dot cz
-Status: Feedback
+Status: Open
Bug Type: Strings related
Operating System: Windows 2000
PHP Version: 5.0.5
New Comment:
Tested with php5.1-win32-200510170630 and php5.0-win32-200510170030.
PHP 5.1 crashes Apache after several seconds of running the test. PHP
5.0.6-dev doesn't crash, but still exhibits the problem. Thus, the
problem is not fixed in snapshot.
Previous Comments:
------------------------------------------------------------------------
[2005-10-12 12:12:42] [EMAIL PROTECTED]
Please reopen the report only when you really try the snapshot.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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