ID:               14857
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Windows Advanced Server
 PHP Version:      4.1.1
 New Comment:

Ok, the problem is

getenv("SCRIPT_FILENAME") / gentenv("SCRIPT_NAME")

outputs 'c:/php/php.exe'

so it's not the show_source, but the getenv function :)


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

[2002-05-28 12:48:00] [EMAIL PROTECTED]

PHP Version 4.2.1
System: Windows NT 5.1 build 2600 
Server API: CGI
Server Software: Apache/1.3.24 (Win32)

Still reproducible :\

show_sorce(__FILE__); works without any problems.

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

[2002-05-28 11:50:36] [EMAIL PROTECTED]

I cannot reproduce this problem. Could you please try with the latest
Apache and PHP versions and see if this still happens?

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

[2002-01-04 13:55:13] [EMAIL PROTECTED]

even 

<?php
show_source($_SERVER["SCRIPT_FILENAME"]);
?>

will produce this error

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

[2002-01-04 13:52:57] [EMAIL PROTECTED]

During some debug process I tried to display the script with:

<?php 
show_source(getenv("SCRIPT_FILENAME")); 
?>

This did work on all unix machines i tested ..

There is no configure line as you can imagine (WinServer). So all
modules of the standart installer version are activated / used.

It doesnt output any Errors, and even the error.log of _Apache_ gives
no information, BUT it prints out unusefull date like:

MZ����@���    �!�L�!This program cannot be run in DOS mode.
...
HTTP_COOKIEPHP_SELF
%sErrors parsing %s
No syntax errors detected in %s
No input file specified.
rbPATH_TRANSLATED-+%s
Not Implemented

After this it shows the php.exe -? options ..

I hope it's just a porting bug from liunx -> windows.

Regards,
   Markus Nigbur

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


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

Reply via email to