From:             jason at thinkingman dot org
Operating system: Server 2003 Update 1
PHP version:      5.1.1
PHP Bug Type:     *Compile Issues
Bug description:  PHP.EXE outputs the filename.php file as TEXT

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";

?>

-- 
Edit bug report at http://bugs.php.net/?id=35768&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=35768&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=35768&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=35768&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35768&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=35768&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35768&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35768&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35768&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35768&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35768&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=35768&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=35768&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35768&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35768&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35768&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35768&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35768&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35768&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35768&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35768&r=mysqlcfg

Reply via email to