From: [EMAIL PROTECTED] Operating system: Redhat Linux 7.2 PHP version: 4.3.0 PHP Bug Type: GD related Bug description: ImageCreateFromString() causes segmentation fault
The following script crashes and never gets to process anything below imagecreatefromstring(). When using the same script with a supported image type (JPG/PNG/GIF/etc.), the script runs fine. Note: The original script gets $data from a database instead of from a file. <?php $data = file_get_contents('any-unsupported-image.psd'); $source_id = imagecreatefromstring($data); print_r($source_id); ?> Here's my configure line: './configure' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/libexec' '--datadir=/usr/share' '--sysconfdir=/etc' '--sharedstatedir=/usr/com' '--localstatedir=/var' '--libdir=/usr/lib' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-apxs=/usr/sbin/apxs' '--enable-force-cgi-redirect' '--enable-discard-path' '--with-layout=GNU' '--with-config-file-path=/etc' '--enable-safe-mode' '--with-exec-dir=/usr/bin' '--enable-magic-quotes' '--disable-rpath' '--with-openssl' '--with-zlib' '--enable-bcmath' '--with-bz2' '--enable-calendar' '--with-curl' '--enable-dbx' '--enable-dio' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-ftp=shared' '--with-gd' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--with-gettext=shared' '--with-iconv' '--with-imap=shared' '--with-kerberos' '--with-imap-ssl' '--with-ldap=shared' '--enable-mbstring' '--with-mysql=shared,/usr' '--with-unixODBC=shared' '--with-pfpro' '--with-pgsql=shared' '--with-pspell' '--enable-shmop' '--with-snmp=shared,/usr' '--enable-ucd-snmp-hack' '--enable-sockets' '--with-regex=system' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--with-expat-dir=/usr' '--enable-yp' '--with-zip' '--enable-versioning' '--with-pic' '--enable-memory-limit' The Apache error log contains the following error: [Wed Jan 8 11:46:00 2003] [notice] child pid 25614 exit signal Segmentation fault (11) -- Edit bug report at http://bugs.php.net/?id=21518&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21518&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21518&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21518&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21518&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21518&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21518&r=support Expected behavior: http://bugs.php.net/fix.php?id=21518&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21518&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21518&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21518&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21518&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21518&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21518&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21518&r=gnused