Doc #66190 [NEW]: Instructions to register PHP as interpreter for associated scripts needs fix
| From: | anrdaemon at yandex dot ru | Date: | Thu, 28 Nov 2013 09:28:31 +0000 |
| Subject: | Doc #66190 [NEW]: Instructions to register PHP as interpreter for associated scripts needs fix | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-10648@lists.php.net to get a copy of this message | ||
From: anrdaemon at yandex dot ru
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Instructions to register PHP as interpreter for associated scripts needs fix
Description:
------------
---
From manual page: http://www.php.net/install.windows.commandline
---
First, the order in which extension is registered is illogical, it only
works because CMD does not check the presence of a file type, when
adding an association.
But you MUST NOT rely on bugs.
You should create a file type first, then associate extensions with it.
Second, the suggested file type command prevent execution of a script
with more than one argument (if at all functional - on my installation,
it passing literal "%~2" to executing script). It must be changed to
something like
ftype phpfile="C:\PHP5\php.exe" -f "%1" -- %*
to make it work with any number of arguments.
The "%~2" notation is CMD (and more specifically - CMD batch file)
specific. When executing file type association, CMD is NOT used.
And third, I suggest using PHPScript for file type name, the same name
used in PECL ActiveScript SAPI, to keep all associations in one place.
--
Edit bug report at https://bugs.php.net/bug.php?id=66190&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66190&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66190&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66190&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66190&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66190&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66190&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66190&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66190&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66190&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66190&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66190&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66190&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66190&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66190&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66190&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66190&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66190&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66190&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66190&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66190&r=mysqlcfg