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

 ID:                 12595
 Updated by:         [email protected]
 Reported by:        sorgo at alternet dot sk
 Summary:            $argv passing
-Status:             Open
+Status:             Closed
 Type:               Feature/Change Request
 Package:            Windows Installer
 Operating System:   win2k (prob. all win's)
 PHP Version:        4.0.6
-Assigned To:        
+Assigned To:        jmertic
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2010-12-22 16:53:35] [email protected]

Automatic comment from SVN on behalf of jmertic
Revision: http://svn.php.net/viewvc/?view=revision&revision=306573
Log: Bug 12595 - Fix problem where only the first argument to the php
script is passed; now support up to 9 arguments.

------------------------------------------------------------------------
[2001-10-18 06:37:14] sorgo at alternet dot sk

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

------------------------------------------------------------------------
[2001-08-06 09:00:05] sorgo at alternet dot 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/bug.php?id=12595&edit=1

Reply via email to