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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 07:01:32 2024 UTC