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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-21 22:53 UTC] tony2001@php.net
short_tags are disabled by default.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 12:01:35 2025 UTC