#16542 [Opn->Fbk]: safe_mode_exec_dir and exec()

From: Date: Sun, 03 Nov 2002 17:05:45 +0000
Subject: #16542 [Opn->Fbk]: safe_mode_exec_dir and exec()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23990@lists.php.net to get a copy of this message
 ID:               16542
 Updated by:       iliaa@php.net
 Reported By:      n.dose@leo-media.de
-Status:           Open
+Status:           Feedback
 Bug Type:         IIS related
 Operating System: windows XP
 PHP Version:      4.1.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2002-05-13 06:36:03] sander@php.net

Reopening on user request: it doesn't work, even with forward slashes 

------------------------------------------------------------------------

[2002-05-12 00:00:03] php-bugs@lists.php.net

No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2002-04-11 06:19:28] sander@php.net

YOu're messing with backslashes and slashes. Try setting the
safe_mode_exec_dir to something like c:/inetpub/cgi-bin
Does it work now?

------------------------------------------------------------------------

[2002-04-11 04:17:29] n.dose@leo-media.de

ISAPI mode.  IIS 5.1 

safe_mode_exec_dir = C:\\Inetpub\cgi-bin\

<?php
exec("myprog.exe");
?>

Calls to exec system with {safe mode = On} result in an extra "/"
being
prepended to the executable file's name:

Warning: Unable to fork [C:\\\\Inetpub\cgi-bin\\/myprog.exe] in
c:\inetpub\wwwroot\index.php4


(the fork error results from other issues, but notice the /myprog.exe)

------------------------------------------------------------------------

[2002-04-11 04:08:15] n.dose@leo-media.de

ISAPI mode.  IIS 5.1 

safe_mode_exec_dir = C:\\Inetpub\cgi-bin\

Calls to exec system with {safe mode = On} result in an extra "/" being
prepended to the executable file's name:

Warning: Unable to fork [C:\\\\Inetpub\cgi-bin\\/myprog.exe] in
c:\inetpub\wwwroot\index.php4

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16542&edit=1



Thread (13 messages)

« previous php.bugs (#23990) next »