Project

General

Profile

Actions

Bug #14202

closed

ImageMagic detection fails in safe_mode

Added by old_powo almost 20 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Install Tool
Target version:
-
Start date:
2004-06-14
Due date:
% Done:

0%

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

Description

If PHP is running in safe mode and "safe_mode_exec_dir" is set to multiple directories separated by colon, ImageMagic binaries are not found. If only one Directory is listed in "safe_mode_exec_dir" the Binaries are found.

Expected behaviour: The install tool should split the safe_mode_exec_dir option and look for the binaries in all directories.

(issue imported from #M158)


Files

0000158-class.t3lib_install.php.diff (459 Bytes) 0000158-class.t3lib_install.php.diff Administrator Admin, 2004-06-14 15:27
000158.patch (563 Bytes) 000158.patch Administrator Admin, 2010-01-04 10:30

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #14830: Typo3 Imagemagick static detection not workingClosedMichael Stucki2005-06-19

Actions
Related to TYPO3 Core - Bug #16588: Inconsistent return values of ini_get() produce false positives for safe_mode detectionClosedChristian Kuhn2006-09-22

Actions
Actions #1

Updated by Michael Stucki almost 20 years ago

As far as I know, directories need to be separated by semi-colons, not colons!

Please try the untested patch and tell me if it fixes the problem.

Actions #2

Updated by old_powo almost 20 years ago

Unfortunately (otherwise fortunately) I couldn't reproduce the mentioned problem.
My safe_mode_exec_dir was "/bin:/usr/bin", which I replaced with "/usr/bin" to get typo3 working. Now when I changed it back to test the patch, i noticed that it worked even without the patch now. A fter completely reinstalling typo3 it also worked now. Very strange behaviour, I will give you feedback if I get the problem again.

Actions #3

Updated by Michael Stucki almost 20 years ago

Please try again, I need to know if the patch works. It's obvious to me that the current setting won't work with multiple directories.

- michael

Actions #4

Updated by Michael Stucki almost 20 years ago

Reminder sent to powo

Hello,
can you please check if my patch fixes your bug?

Cheers, michael

Actions #5

Updated by Benni Mack over 14 years ago

Hi michael,

the patch does not work anymore!

Actions #6

Updated by Benni Mack over 14 years ago

Hey Michael.

a) I updated your patch so it's validating against the latest trunk.

b) colons is correct!

If I set in php.ini:
safe_mode_exec_dir = /usr/local/bin/;/opt/local/bin/

then ini_get("safe_mode_exec_dir") returns only "/usr/local/bin/".

If I separate through colons:
safe_mode_exec_dir = /usr/local/bin/:/opt/local/bin/
then ini_get("safe_mode_exec_dir") returns "/usr/local/bin/:/opt/local/bin/".

Actions #7

Updated by Benni Mack over 14 years ago

And yes: My patch now works for me :). So +1 after testing and reading.

Actions #8

Updated by Benni Mack over 14 years ago

OK. I found out that still no version works. It seems like this isn't connected to the detection in the install tool, if I have lines like this in my php.ini

safe_mode_exec_dir = /usr/local/bin/;/opt/local/bin/
safe_mode_exec_dir = /usr/local/bin/:/opt/local/bin/
safe_mode_exec_dir = "/usr/local/bin/;/opt/local/bin/"

nothing gets detected at all. Seems like PHP cannot access the safe_mode_exec_dir if it has multiple entries.

Actions #9

Updated by Benni Mack over 14 years ago

OK. I found out that still no version works. It seems like this isn't connected to the detection in the install tool, if I have lines like this in my php.ini

safe_mode_exec_dir = /usr/local/bin/;/opt/local/bin/
safe_mode_exec_dir = /usr/local/bin/:/opt/local/bin/
safe_mode_exec_dir = "/usr/local/bin/;/opt/local/bin/"

nothing gets detected at all. Seems like PHP cannot access the safe_mode_exec_dir if it has multiple entries.

Actions #10

Updated by Christian Kuhn almost 14 years ago

Resolved, no change required:

Multiple pathes for safe_mode_exec_dir are impossible.

Actions #11

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF