php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41771 phpinfo () by itself does not work right on a ISAPI installation.
Submitted: 2007-06-21 21:56 UTC Modified: 2007-06-22 07:53 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: webmaster at studio505 dot net Assigned:
Status: Not a bug Package: IIS related
PHP Version: 5.2.3 OS: Windows Server 2003
Private report: No CVE-ID: None
 [2007-06-21 21:56 UTC] webmaster at studio505 dot net
Description:
------------
Visual code error maybe?
I sat here for hours kicking myself wondering what i was doing wrong with the install. After adding a HTML header to create a default color for text it seems to pop right. 

I still need a fix. I cant go into hundreds of php pages and a header in html to every one of em. Please give fix!

Reproduce code:
---------------
<? 
phpinfo(); 
?>
[/code]
Will not display in http://area51solutions.com/test.php 
[code]
<html>
<head>
      <title>PHP Test</title>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
      <h1>PHP Test</h1>
      <p>
      <b>An Example of PHP in Action</b><br />
            <?php echo "The Current Date and Time is: <br>";
                  echo date("g:i A l, F j Y.");?>
      </p>

      <h2>PHP Information</h2>
      <p>
            <?php phpinfo(); ?>
      </p>
</body>
</html>
[/code] 
Works perfectly in http://area51solutions.com/test.php 

Expected result:
----------------
The expected result for phpinfo () 
as seen in http://area51solutions.com/test.php

installed as a ISAPI module in IIS 6.0 is to load a default module for text correctly. 

No text loads at all. just a blank screen. 

However i can verify my Install is correct in 

 http://area51solutions.com/test3.php with this.

by using this to add a HTML header to help "jump start" the default text. 

Proof Install was done correctly perfectly in http://area51solutions.com/test3.php 
[code]
<html>
<head>
      <title>PHP Test</title>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
      <h1>PHP Test</h1>
      <p>
      <b>An Example of PHP in Action</b><br />
            <?php echo "The Current Date and Time is: <br>";
                  echo date("g:i A l, F j Y.");?>
      </p>

      <h2>PHP Information</h2>
      <p>
            <?php phpinfo(); ?>
      </p>
</body>
</html>
[/code] 

Actual result:
--------------
This is not happening with a perfect install of PHP Version 5.2.3
People tend to give up installing it as a ISAPI module and let the default OODB version work by removing or commenting out the php.ini, or by revertig to the CGI version. 

I do not want to do this. 
I know my install is correct and i should be able to load this without HTML headers creating a default text and reap the benefits of my php.ini pointing to the custom files i want it to save logs.

Theres something wrong with your Topology of default text loading with ISAPI modules for IIS 6.0 Installs
 Im assuming its something to do with your g2 module. 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-21 22:03 UTC] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Try using the \"show source\" feature of your browser - looks like you have short_open_Tags disabled in your php.ini
 [2007-06-21 22:09 UTC] webmaster at studio505 dot net
ive proved this is a bug 
look 
http://area51solutions.com/test3.php Works perfectly with a HTML header to help Jump start the text to show.

http://area51solutions.com/test.php that just has a phpinfo () in it does not!

how are you going to sit here and tell me its not a bug when i sat here for hours poring over every setting and prove that it works with a html header in it to help jump start the text to show. 

i know you guys dont care much about windows server 2003, but come on man look at those links. one works and one doesnt. 

its a problem man.
 [2007-06-21 22:13 UTC] webmaster at studio505 dot net
short_open_Tags is not anywhere in the php.ini i just looked everywhere. 

The fact that even if it is disabled 

WHY is it working on http://area51solutions.com/test3.php 

AND why is not even in my php.ini if its so vital to making text show up. 

im telling you dude you got a bug with your stuff.
 [2007-06-21 22:16 UTC] johannes@php.net
In one script you have <? phpinfo(); ?> in the other <?php phpinfo(); ?> if you open http://area51solutions.com/test.php  in your browser and use the "view source" feature - as I said before - you can see that "<? phpinfo(); ?>" wasn't parsed, which means you have short_open_tags enabled in your php.ini file. No bug.
 [2007-06-21 22:30 UTC] webmaster at studio505 dot net
FOr crying out loud 
--------------------------------------------------------------------
[21 Jun 10:03pm UTC] johannes@php.net 
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Try using the \"show source\" feature of your browser - looks like you
have short_open_Tags disabled in your php.ini
--------------------------------------------------------------------

And now you say i got it open?!?

Look man / woman w/e 
Screenshot 

http://area51solutions.com/whereisit.jpg 
WHere is the short_open_Tags huh?


Do you know why you dont about this issue? 
becuase people give up on installing as a ISAPI module. They rely on the default mode. 

First you say i got this this short open tags disabled now you say i got open. 

quit trying to play me. 
There is a problem 

I told you this is a bug and if you fix you wouldnt get half the problems of people installing on windows server 2003. 

There is a problem with the ISAPI working as a perfect install on windows server 2003. It will not load the text. by adding the HTML headers to help 
JUMP START text output 
i proved the install is fine itself. 

I want a second opinion.
 [2007-06-21 22:37 UTC] webmaster at studio505 dot net
Theres the php.ini Recommended Version 

http://area51solutions.com/ini.rar 

theres not a dang thing wrong with it. 

And there sure as heck aint no short open tags setting in it. 

And if there was supposed to be one. 

Thats a bug by itself.
 [2007-06-21 23:06 UTC] fd@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This behaviour is quit normal. php.ini-recommendet disables short_open_tags by default. Although they would work if they are enabled use the recommended <?php and ?> syntax. Thanks!
 [2007-06-21 23:23 UTC] webmaster at studio505 dot net
Heres where am i angry. 

Johane said its open then closed. 
There is no settings for short_open_tags at all in php.ini. 
If you knew this release was going to be used for the windows package and people where going to need short_open_tags  and didnt add ANY settings in php.ini for it 

HOW can you say its not a bug. 
It clearly is. Wether you overlooked adding it or not doesnt matter. 
It affects how it works doesnt it?

And you have danced around saying its short_open_tags  BUT YOU HAVE NOT EVEN POSTED THE PLACE TO ADD THESE SETTINGS IN PHP.INI 

WHERE DO YOU ADD THESE MAGICALLY MISSING SETTINGS IN PHP.ini 

as i said before you would not have HALF The problems with IIS 6.0 installs if you were clear and SAID TO PEOPLE THE TRUTH 

Heres how you do it. 

1. We didnt release people need our integrated to work on ISAPI installs.
2. We forget to add any settings in php.ini that would enable this setting 
3. We arent going to blame other people for NOT HAVING SETTINGS THAT THEY WOULD NEED THAT WE DIDNT PUT IN THERE.

How is this my fault. 
You didnt put the settings in there. 

and you arent answering my question with a fix. 

Where do i put the magically missing settings to make php WORK correctly in php.ini 

You are so quick to say this is not a bug and not realize you goofed and you are affecting people installing ISAPI versions on windows server 2003. 

if i needed this setting to make it work right and its not there. 

THEN HOW THE HECK IS THAT WORKING AS INTENDED.
 [2007-06-22 07:53 UTC] colder@php.net
http://php.net/manual/en/ini.core.php#ini.short-open-tag

This setting is in both .ini files shipped with the windows package.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 13:01:30 2024 UTC