Re: [INTERNALS-WIN] STDIN missing.
[email protected] (Richard Quadling)
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
2009/8/25 Garrett Serack <[email protected]>: > Hey Richard, > > LOL... Really. I don’t need help getting PHP working... the reason I haven't used the installer before is because I've been building it from scratch for over a year, and I've never *wanted* to run the installer. > > I ran the installer, as I thought that you had set it up that way. No bother. > > > Regardless... for me, this *does* work correctly: > --------------------------------------------- > c:\phptest>dir c:\tmp | test.php > > .lebal on sah C evird ni emuloV > CC5A-9C02 si rebmuN laireS emuloV > > pmt\:c fo yrotceriD > > . >RID< MA 80:90 9002/20/40 > .. >RID< MA 80:90 9002/20/40 > txt.gol_rre 415,366,802 MP 93:10 9002/52/80 > setyb 415,366,802 )s(eliF 1 > eerf setyb 466,503,251 )s(riD 2 > c:\phptest> > ---------------------------------------------- > > The question is, what have you done differently? > > G > > > > -----Original Message----- > From: Richard Quadling [mailto:[email protected]] > Sent: Tuesday, August 25, 2009 2:22 PM > To: Garrett Serack > Subject: Re: [INTERNALS-WIN] STDIN missing. > > 2009/8/25 Pierre Joye <[email protected]>: >> On Tue, Aug 25, 2009 at 11:03 PM, Garrett Serack<[email protected]> wrote: >>> I just installed PHP using the installer (something I can't ever recall doing before ;) ) >>> >>> I enabled the "Script Executable" and it's child "Register *.php files to open automatically with PHP") options. >>> >>> This apparently sets the handler for .PHP scripts to php-win.exe (which is a GUI process, not a console one) so I assume this is the process you see in the task manager. >>> >>> This would need to be set to php.exe for the script to work correctly. >>> >>> From your example, I can't see how: >>> >>> C:\Scripts\Reverse >>> >>> Would even run the script, from the install of PHP, it doesn't appear that the PATHEXT environment variable is modified so that .PHP is a recognized extension for executables. >> >> http://docs.php.net/manual/en/install.windows.commandline.php >> >> Cheers, >> -- >> Pierre >> >> http://blog.thepimp.net | http://www.libgd.org >> > > Garrett. I'm wanting to find the solution to the problem I've had to > document as "This seems to be a limitation of the command processor in > Windows.". > > Once that is done, CLI-based PHP scripts acting as filters "just work" > as expected. > > As I see it, I think the issue is one where the pipes simply aren't > being attached to the interpreter when the shell has to work out where > the interpreter is. > > I am guessing that though. One of the great things about OSS is being > able to find the issues that would otherwise leave you wondering "is > it me?". > > I don't think it is me. 20 odd years of this are telling me I've > covered all the bases. > > Other than that, thank you for taking the time to look into this issue. > > If you need any help getting PHP working (no need for the installer by > the way, just unzip > http://windows.php.net/downloads/releases/php-5.3.0-nts-Win32-VC9-x86.zip > into C:\PHP5 and follow the PATH/PATHEXT/ASSOC/FTYPE notes). > > Regards, > > Richard. > > -- > ----- > Richard Quadling > "Standing on the shoulders of some very clever giants!" > EE : http://www.experts-exchange.com/M_248814.html > Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 > ZOPA : http://uk.zopa.com/member/RQuadling > > I've found many Python references to this same problem. And for a LONG time .. no solutions. But then ... http://markmail.org/message/i4bfvxifqwnqmypr => http://support.microsoft.com/default.aspx?scid=kb;en-us;321788 Add the registry setting as described. All working. This should also work for perl, python, ruby, etc. Just going to retest (remove the entry). If all goes well, phpdoc will be updated today too. Ta bloody da! Richard. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling