PHP 4.0 Bug #8341 Updated: pdf_open_image_file no longer works

From: Date: Tue, 26 Dec 2000 14:15:40 +0000
Subject: PHP 4.0 Bug #8341 Updated: pdf_open_image_file no longer works
Groups: php.dev 
Request: Send a blank email to php-dev+get-42268@lists.php.net to get a copy of this message
ID: 8341 Updated by: hirokawa Reported By: pete@byways.org Status: Open Bug Type: PDF related Assigned To: Comments: In php-4.0.4, virtual_filepath() function is used in pdf_open_image_*. This function calls virtual_filepath_ex() function in TSRM/tsrm_virtual_cdw.c. In virtual_filepath_ex(), (char *) CWDG(cwd)->cwd is used as the source of current working directory, but it is now properly initialized, so it will cause the segmentation fault. Previous Comments: --------------------------------------------------------------------------- [2000-12-21 11:33:18] pete@byways.org Adding --with-png-dir to configuration does not solve the problem. --------------------------------------------------------------------------- [2000-12-20 18:33:27] sniper@php.net Adding --with-png-dir to your configure line might help. --Jani --------------------------------------------------------------------------- [2000-12-20 13:42:10] pete@byways.org After upgrading PHP from 4.0.3pl1 to 4.0.4 (Apache DSO), calls to pdf_open_image_file to open a PNG image no longer seem to work. This is my configure script: ./configure --with-apxs=/usr/sbin/apxs --with-gettext=no --with-msql --with-pgsql=shared --without-mysql --with-xml=shared --with-pdflib=/usr/local --without-gd --with-session=/tmp --enable-track-vars=yes --with-zlib --with-jpeg-dir=/usr --with-tiff-dir=/usr --enable-trans-sid --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8341

« previous php.dev (#42268) next »