|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27526 Loading TiFF file crashes Apache 2.0.48
Submitted: 2004-03-08 09:10 UTC Modified: 2004-04-14 11:01 UTC
From: techtonik at tut dot by Assigned: edink (profile)
Status: Closed Package: *PDF functions
PHP Version: 4.3.6RC2 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: techtonik at tut dot by
New email:
PHP Version: OS:


 [2004-03-08 09:10 UTC] techtonik at tut dot by
pdf_open_image_file() crashes Apache while attempting to load TiFF file.

Reproduce code:

$pdf = pdf_new();
pdf_begin_page($pdf, 200, 200);

//this function crashes
$pdfimage = pdf_open_image_file($pdf, "tiff", "test.tif");
//pdf_place_image($pdf, $pdfimage, 10, 10, 0.6);
//pdf_close_image($pdf, $pdfimage);

//close it up
$data = pdf_get_buffer($pdf);


Actual result:
Start of function trace
    0.0021          0     -> pdf_new() C:\MyFiles.XFiles\Numerald\test18.php:5
    0.0025          0     -> pdf_open_file(resource(2) of type (pdf object)) C:\wwwroot\test18.php:6
    0.0029          0     -> pdf_begin_page(resource(2) of type (pdf object), 200, 200) C:\wwwroot\Numerald\test18.php:11
    0.0040          0     -> pdf_open_image_file(resource(2) of type (pdf object), 'tiff', 'test.tif') C:\wwwroot\Numerald\test18.php:14


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-08 12:16 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This is a bug in the old libpdf libraries, upgrade your 
library to the latest stable libpdf library avaliable and 
the bug will go away. 
 [2004-03-13 14:10 UTC] techtonik at tut dot by
Why don't you include latest 4.0.3 Pdflib in distributive?

The BUG is fixed with it. Current version in latest distributive is 4.0.2
 [2004-04-13 16:40 UTC] techtonik at tut dot by
So, will you upgrade PDFlib in PHP distributive to latest available?
 [2004-04-13 17:01 UTC]
Edin, can you update the used dlls? (latest is 5.0.3 btw..)

 [2004-04-14 11:01 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 20:01:32 2024 UTC