PHP 4.0 Bug #8394: pdf_open_image_file() makes PHP segfault

From: Date: Sun, 24 Dec 2000 04:28:07 +0000
Subject: PHP 4.0 Bug #8394: pdf_open_image_file() makes PHP segfault
Groups: php.dev 
Request: Send a blank email to php-dev+get-42203@lists.php.net to get a copy of this message
From: troels@arvin.dk Operating system: Linux PHP version: 4.0.4 PHP Bug Type: PDF related Bug description: pdf_open_image_file() makes PHP segfault In PHP 4.0.4, pdf_open_image_file() makes PHP segfault. Things work fine in PHP 4.0.3pl1 with the exact same code and the exact same image. It doesn't matter if pdf_open_image_file() is used with either PNG og JPEG images. Other PHP-PDFlib functions seem to work well. At http://troels.arvin.dk/php-bugs/pdf/ I have put all relevant information: - The configure-command used - Output from the configure-command - Demonstration script code and demonstration image - GDB-backtrace For bug isolation, I compiled PHP in the CGI-version with the following configure-switches: ./configure \ --with-pdflib \ --without-mysql \ --disable-session \ --disable-xml \ --without-pcre-regex \ --with-ttf \ --with-gd \ --enable-debug It doesn't help if a more involved configure statement (adding --with-png-dir=..., etc.) is used. Involved software ------------------------ Operating system: Red Hat Linux 7 (on a PIII CPU system) with all official updates. (The problem also seems to exist on Red Hat 6.2 hosts). PDFlib: V. 3.02 -- Edit Bug report at: http://bugs.php.net/?id=8394&edit=1

« previous php.dev (#42203) next »