php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14857 php.exe crashed during command: show_source(getenv("SCRIPT_FILENAME"));
Submitted: 2002-01-04 13:52 UTC Modified: 2002-05-28 16:08 UTC
Votes:4
Avg. Score:4.2 ± 0.8
Reproduced:3 of 4 (75.0%)
Same Version:1 (33.3%)
Same OS:2 (66.7%)
From: pYrania at 1337-designz dot de Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.1.1 OS: Windows Advanced Server
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: pYrania at 1337-designz dot de
New email:
PHP Version: OS:

 

 [2002-01-04 13:52 UTC] pYrania at 1337-designz dot de
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-04 13:55 UTC] pYrania at 1337-designz dot de
even 

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

will produce this error
 [2002-05-28 11:50 UTC] edink@php.net
I cannot reproduce this problem. Could you please try with the latest Apache and PHP versions and see if this still happens?
 [2002-05-28 12:48 UTC] pYrania at 1337-designz dot de
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 13:01 UTC] pYrania at 1337-designz dot de
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 :)
 [2002-05-28 16:08 UTC] edink@php.net
getenv() will get whatever variable was set by the web server. Not a php bug.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat May 10 23:01:29 2025 UTC