Project

General

Profile

Actions

Bug #16278

closed

Imagemagick forces Microsoft IIS to crash when running as ISAPI

Added by Christian Kurta over 18 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-06-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Because of problems with PHP on IIS and PHP-Sessions the exec() function, that runs convert/combine crashes the IIS and cmd.exe and convert.exe gonna hang in the process list of Windows.
So nobody can use imagemagick for thumbnails, image manipulation etc after crashing.

The problem with PHP, IIS and Sessions is, that PHP can't correctly run an external command when having an open session. This is true for all php 4 + 5 versions.

The solution for this is to close the Session before executing the exec function.
Session_Write_Close();
exec....
Session_Start();

I came to the solution while reading this forum-thread:
http://kuerzer.de/ghNGsvMhx

I suggest to make an option in the installtool for this problem, especially for IIS users.

Occures in:
t3lib/class.t3lib_diff.php
t3lib/class.t3lib_iconworks.php
t3lib/class.t3lib_stdgraphic.php
t3lib/thumbs.php

at every exec() function that executes convert/combine
(issue imported from #M3731)

Actions

Also available in: Atom PDF