|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #45755 can't use pipes to deliver script via PATH_TRANSLATED
Submitted: 2008-08-08 06:30 UTC Modified: 2021-11-21 04:22 UTC
From: louis at steelbytes dot com Assigned: cmb (profile)
Status: No Feedback Package: *General Issues
PHP Version: 5.2.6 OS: Vista SP1 x64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: louis at steelbytes dot com
New email:
PHP Version: OS:


 [2008-08-08 06:30 UTC] louis at steelbytes dot com
I'm trying to call php-cgi.exe from inside my app, and I wanted to supply the script via a pipe.  so I set the pipe name \\.\pipe\testpipe in PATH_TRANSLATED, but php-cgi.exe won't read from there.  it failes in virtual_file_ex() being confused thinking it's a unc path, and skipping the . component, and trying to use FindFirstFile to test if valid.

Reproduce code:
see above

Expected result:
see above

Actual result:
see above


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-08 07:52 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

It's read by a human, we need a script or C code or at least something we can test with.
 [2008-08-11 11:08 UTC] louis at steelbytes dot com
using a trivial pipes experiment available from

  fileAsPipe c:\path\test.php \\.\pipe\test

  set PATH_TRANSLATED=\\.\pipe\test
  set SCRIPT_NAME=test.php

  Status: 404 Not Found
  X-Powered-By: PHP/5.2.6
  Content-type: text/html

  No input file specified.

note:  this is arguably not a bug, but really a feature request :)
 [2008-08-12 01:16 UTC] louis at steelbytes dot com
more notes:
* using php.exe -f \\.\pipe\test also does not work
* also using \\mypc\pipe\test does not work
 [2008-08-12 14:37 UTC]
Reclassified. This most likely will never be implemented. You really should be using the FastCGI interface anyways.
 [2021-11-11 13:42 UTC]
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: cmb
 [2021-11-11 13:42 UTC]
Is this still an issue with any of the actively supported PHP
versions[1]?  And is it still relevant for you?

[1] <>
 [2021-11-21 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Mar 04 22:01:30 2024 UTC