From: techtonik at tut dot by Operating system: Windows 2000 PHP version: 4.3.5RC3 PHP Bug Type: *PDF functions Bug description: Loading TiFF file crashes Apache 2.0.48
Description: ------------ pdf_open_image_file() crashes Apache while attempting to load TiFF file. Reproduce code: --------------- <?php $pdf = pdf_new(); pdf_open_file($pdf); 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 pdf_end_page($pdf); pdf_close($pdf); $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 -- Edit bug report at http://bugs.php.net/?id=27526&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27526&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27526&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27526&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27526&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27526&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27526&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27526&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27526&r=support Expected behavior: http://bugs.php.net/fix.php?id=27526&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27526&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27526&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27526&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27526&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27526&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27526&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27526&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27526&r=float