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 #1

Updated by Martin Kutschker almost 18 years ago

What hangs? Any exec() or "only" convert.exe? I have an IIS 6.0 running and did not encounter this problem. Or has an out-of-the-box TYPO3 no open session?

Actions #2

Updated by Christian Kuhn over 15 years ago

Resolved, no change required:

- No feedback for two years.
- No specific version information for system environment
- Link to php / IIS problem reference dead
- Not reproducible by other user
- Probably not a TYPO3 problem

Please open a new issue with detailed information and link resources if this is still a problem.

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF