#21651 [Opn->Fbk]: pdf_open_memory_image Segmentation Fault (11)
| From: | derick@php.net | Date: | Wed, 15 Jan 2003 09:49:12 +0000 |
| Subject: | #21651 [Opn->Fbk]: pdf_open_memory_image Segmentation Fault (11) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30084@lists.php.net to get a copy of this message | ||
ID: 21651
Updated by: derick@php.net
Reported By: erweb@erweb.it
-Status: Open
+Status: Feedback
Bug Type: PDF related
Operating System: Linux RedHat
PHP Version: 4.3.0
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-01-15 02:51:17] erweb@erweb.it
Well... as i work with PDF the following code causes
a segmentation fault:
$tmp_image =
ImageCreate($size[0]*$this->actual_img_dpi/$this->default_img_dpi,
$size[1]*$this->actual_img_dpi/$this->default_img_dpi);
imagecopyresampled ($tmp_image, $im, 0, 0, 0,
0,$size[0]*$this->actual_img_dpi/$this->default_img_dpi,
$size[1]*$this->actual_img_dpi/$this->default_img_dpi, $size[0],
$size[1]);
$img = pdf_open_memory_image($pdf_doc, $tmp_image);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21651&edit=1