ID: 25438
User updated by: sven at weih dot de
Reported By: sven at weih dot de
-Status: Feedback
+Status: Open
Bug Type: GD related
Operating System: Windows XP
PHP Version: 4.3.3
New Comment:
here is some code for reproducing the error. Note, it works sometimes,
but mostly there are errors.
--- code for sample.php ---
<?php
header ("Content-type: image/png");
$im = @ImageCreate (200, 200)
or die ("Cannot create image stream");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
$font = "c:/windows/fonts/arial.ttf";
for ($i=0; $i<360; $i+=5) {
ImageTTFText ($im, 12, $i, 50, 50, $text_color, $font,
"Draw sample text.");
}
ImagePNG ($im);
?>
--- end of sample.php ---
--- code of reproduce.php ----
<html>
<head>
</head>
<body>
<?php
for ($i=0; $i<50; $i++) {
echo '<img src="sample.php?'.$i.'"><br>'."\n";
}
?>
</body>
</html>
-- end of reproduce.php ---
Both files are in one directory. Calling reproduce.php will bring up
the error.
Previous Comments:
------------------------------------------------------------------------
[2003-09-08 18:53:11] [EMAIL PROTECTED]
Please provide a short example.
------------------------------------------------------------------------
[2003-09-08 16:49:31] sven at weih dot de
Description:
------------
Hi,
i am drawing images using Apache 2 and GD2. Whenever I draw two images
at the same time, there is a locking problem with the True Type Font.
In some cases Apache 2 crashes, in others php throws a failure.
Sven.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25438&edit=1