Ticket #178 (new defect)

Opened 2 years ago

Last modified 1 year ago

Problem with per VirtualHost safe_mode and shell_exec

Reported by: jens.gutzeit Assigned to: somebody
Priority: minor Milestone: 0.9.6
Component: eAccelerator Version: 0.9.5
Keywords: Cc:

Description

Hello,

we have a problem with eAccelerator 0.9.5-rc1 on PHP 4.4.4, compiled and used on a Debian X86 box. phpinfo() can be found on http://schreinerei-nau.de/phpinfo.php

We had disabled safe_mode on a per-virtualhost basis for using the shell_exec function. The phpinfo() output had reflect the change: safe_mode was Off in the "Local" column, but PHP still claimed about it can't use shell_exec() with safe_mode enabled:

Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in **********.php on line 10

Without eAccelerator the problem was gone, so it seems to be a bug in eAccelerator rather then PHP.

Change History

09/19/06 18:54:50 changed by hans

This seems rather odd. At first sight, I don't really see how eAccelerator gets involved in this.

Are you absolutely positive that safemode was off for that particular location? Did you try emptying your eA diskcache and restarting the webserver?

09/20/06 03:24:11 changed by jens.gutzeit

  • component changed from Control panel to eAccelerator.

Hello Hans,

we had done tests on a few other servers, all are debian sarge with the same PHP-version (running on apache-2, prefork-mpm) and newly created files that had not been cached before, so it's not a cache-issue.

Yes, I'm absolutely sure that safe_mode was disabled for this location. I had done the same test on a machine with Gentoo, running PHP 5.1.6 on an Apache 2 with worker-mpm and didn't hit this problem there.

11/04/06 14:06:56 changed by bart

  • version set to 0.9.5.
  • milestone set to 0.9.6.

08/19/07 19:53:35 changed by bart

  • priority changed from major to minor.

What is the status of this problem? We are 99.9999% sure this has nothing to do with eAccelerator and is some strange coincidence.