Bug #12595 Updated: $argv passing
| From: | sorgo at alternet dot sk | Date: | Thu, 18 Oct 2001 10:37:14 +0000 |
| Subject: | Bug #12595 Updated: $argv passing | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-68213@lists.php.net to get a copy of this message | ||
ID: 12595
User updated by: sorgo@alternet.sk
Reported By: sorgo@alternet.sk
Status: Open
Bug Type: Feature/Change Request
Old Operating System: win2k (prob. all win's)
Operating System: win2k (prob. all win\'s)
PHP Version: 4.0.6
New Comment:
with 'C:\php\php.exe -q "%1" %2 %3 %4 %5 %6 %7 %8 %9' set the command line
arguments cannot contain spaces, it should be rather
'C:\php\php.exe -q "%1" "%2" "%3" "%4" "%5"
"%6" "%7" "%8" "%9"' to allow the possibility to escape
arguments containing spaces into "'s
Previous Comments:
------------------------------------------------------------------------
[2001-08-06 09:00:05] sorgo@alternet.sk
When installing php on win32 it creates a registry record at "My
Computer\HKEY_CLASSES_ROOT\Applications\" named php.exe
the problem is that the value of "My
Computer\HKEY_CLASSES_ROOT\Applications\php.exe\shell\open\command\" is default
'C:\php\php.exe "%1"' it means it only passes to php.exe the first argument =
the name of the file and it do NOT pass any other arguments.
The solution is (maybe can be in a newer version of win32 php) to set the value to
'C:\php\php.exe -q "%1" %2 %3 %4 %5 %6 %7 %8 %9'
(maybe without the -q argument)
Sorgo
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12595&edit=1