php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35768 PHP.EXE outputs the filename.php file as TEXT
Submitted: 2005-12-21 22:48 UTC Modified: 2005-12-21 22:53 UTC
From: jason at thinkingman dot org Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 5.1.1 OS: Server 2003 Update 1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jason at thinkingman dot org
New email:
PHP Version: OS:

 

 [2005-12-21 22:48 UTC] jason at thinkingman dot org
Description:
------------
PHP.EXE outputs the filename.php file as TEXT output instead of executing the code under Windows Server 2003 command line when PHP.INI-recommended is used.

PHP.EXE works as normal when NO PHP.INI file is used or when PHP.INI-dist is used.

INSANELY ANNOYING BUG -- SPENT **HOURS** ON GOOGLE AND PHP.NET AND FAQ'S AND PHP README DOCS TRYING TO FIGURE OUT WHAT WAS WRONG WITH MY WIN 2003 SERVER AND PHP INSTALL / INI FILE.



Reproduce code:
---------------
To reproduce:

Rename PHP.INI-recommend to PHP.INI and copy to C:\Windows folder or set your env var PHPRC=C:\PHP (or where your PHP.INI is located.)

From the command line run PHP.EXE w/ .php file.

Example:

C:> php.exe testcode.php

Will output file instead of executing.  So, you'll get:

<?

   echo "hello world";

?>

instead of:
hello world


Expected result:
----------------
hello world

Actual result:
--------------
<?

   echo "hello world";

?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-21 22:53 UTC] tony2001@php.net
short_tags are disabled by default.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 13:01:30 2024 UTC