#19704 [Opn->Fbk]: ImageTrueColorToPalette() kills PHP

From: Date: Wed, 02 Oct 2002 13:09:21 +0000
Subject: #19704 [Opn->Fbk]: ImageTrueColorToPalette() kills PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21271@lists.php.net to get a copy of this message
 ID:               19704
 Updated by:       iliaa@php.net
 Reported By:      sprice@wisc.edu
-Status:           Open
+Status:           Feedback
 Bug Type:         GD related
 Operating System: Darwin 6 (Mac OS 10.2)
 PHP Version:      4CVS-2002-10-01
 New Comment:

'kills php'? Does this mean PHP crashes, if so, please provide a
backtrace of the crash. Otherwise, please provide more information
about this 'killing of php'.

Note: The test script works fine on both Linux & Windows running latest
CVS.


Previous Comments:
------------------------------------------------------------------------

[2002-10-01 22:15:25] sprice@wisc.edu

This code creates the same error as described here:
http://bugs.php.net/bug.php?id=19700
the two may be related.

If the "ImageTrueColorToPalette" line is commented out this works
fine.

<?php
header( "Content-type: image/png" );

$img = ImageCreateTrueColor( 800, 600 );

ImageTrueColorToPalette( $img, 'TRUE', 256 );

ImagePNG( $img );
ImageDestroy( $img );
?>

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19704&edit=1



Thread (18 messages)

« previous php.bugs (#21271) next »