ID:               33392
 User updated by:  php dot 5 dot magnum3065 at spamgourmet dot com
 Reported By:      php dot 5 dot magnum3065 at spamgourmet dot com
 Status:           Bogus
 Bug Type:         CGI related
 Operating System: Debian GNU/Linux
 PHP Version:      5.0.4
 New Comment:

Ok, that makes sense.  Our system has been updated to require the CLI
version of the PHP executable.

The distinction between these seems to be a bit vauge since the CGI
executable can actually function quite similarly to the CLI version
when the CGI environment variables are not set.  The fact that it seems
like the two can't actually be built simultaneously is also a bit
confusing.  Fortunately it seems like most binary distributions of PHP
have both versions available.


Previous Comments:
------------------------------------------------------------------------

[2005-06-18 23:09:48] [EMAIL PROTECTED]

You're just trying to use the wrong tools (or right tool wrong way).
Use the PHP CLI binary instead. There is no bug in the CGI binary..


------------------------------------------------------------------------

[2005-06-18 21:50:24] php dot 5 dot magnum3065 at spamgourmet dot com

This is for the Trac issue tracking tool:
http://projects.edgewall.com/trac

We can't use a PHP script to do the highlighting since the application
itself is not written in PHP.  However some of our users would like to
use PHP's syntax highlighting for their source files.  So, we're trying
to use the PHP executable to perform the highlighting.  Unfortunately
the _implict_ filename specified by the SCRIPT_FILENAME environment
variable is given prescedence over the _explicit_ filename passed as an
argument to the executable.  This order of prescedence is difficult to
work around since it requires unsetting a half dozen environment
variables before running the PHP executable.  It would be more
intuitive to use the SCRIPT_FILENAME only when a filename is not
explicitly specified (including calling PHP like "php -- -" to specify
reading the input from stdin).

------------------------------------------------------------------------

[2005-06-18 15:08:19] [EMAIL PROTECTED]

Write a script and pass the filename as parameter. 
See:
http://www.php.net/manual/en/function.highlight-file.php

------------------------------------------------------------------------

[2005-06-18 06:59:44] php dot 5 dot magnum3065 at spamgourmet dot com

Upon further investigation it appears that the SCRIPT_FILENAME variable
is actually required if any of the following are set: SERVER_NAME,
SERVER_SOFTWARE, REQUEST_METHOD, PATH_TRANSLATED, GATEWAY_INTERFACE.

------------------------------------------------------------------------

[2005-06-18 06:12:43] php dot 5 dot magnum3065 at spamgourmet dot com

Oops, the trailing slash on not_me.txt/ is a typo.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/33392

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

Reply via email to