Bug #1121 Updated: Show_source produces odd looking output after upgrading to 3.0.6
| From: | Bug Database | Date: | Thu, 30 Sep 1999 18:10:39 +0000 |
| Subject: | Bug #1121 Updated: Show_source produces odd looking output after upgrading to 3.0.6 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11393@lists.php.net to get a copy of this message | ||
ID: 1121
User Update by: Manuel.Hossfeld@db.com
Status: Analyzed
Bug Type: Misbehaving function
Description: Show_source produces odd looking output after upgrading to 3.0.6
Problem:
From 3.0.6 on, SHOW_SOURCE no longer works correctly.
Obviously it doesn't do correct syntax highlighting, and some lines are concatenated
although they shouldn't. (i.e. it does not insert linebreaks where it should)
(Remark: Please read the additional notes at the end)
Environment:
WinNT 4.0 SP3, Apache 1.3.4/Win32 (also tested with Apache 1.3.3 and MS PWS 4.0); PHP3.INI
and everything else is quite standard.
Example:
For the following lines
<?php
require ( "global.inc");
phpinfo();
page_footer();
?>
...Show_Source produces...
"wrong" output (with PHP 3.0.6):
<FONT color=#000000>require<FONT
color="#007700">(</FONT>global.inc<FONT
color="#007700">)</FONT><FONT
color="#007700">;</FONT>phpinfo<FONT
color="#007700">(</FONT><FONT
color="#007700">)</FONT><FONT
color="#007700">;</FONT>page_footer<FONT
color="#007700">(</FONT><FONT
color="#007700">)</FONT><FONT
color="#007700">;</FONT></FONT>
correct output (with PHP 3.0.5):
<FONT color=#000000><FONT color="#0000BB">
<?php
<br>require <FONT color="#007700">(</FONT><FONT
color="#DD0000">
<STRONG>"global.inc"</STRONG></FONT><FONT
color="#007700">)</FONT><FONT color="#007700">;</FONT>
<br>phpinfo<FONT color="#007700">(</FONT><FONT
color="#007700">)</FONT><FONT color="#007700">;</FONT>
<br>page_footer<FONT color="#007700">(</FONT><FONT
color="#007700">)</FONT><FONT color="#007700">;</FONT>
<br>?>
<br></FONT></FONT>
---
Additional Note:
I checked this again on a different machine, with NT4 Server (the test mentioned above was
with NT4 Workstation - of course that shouldn't matter at all). Show_source still produces
the same strange effects as described above: Show_source() on PHP/Win32 3.0.6 _definitely_
doesn't work as it should! With 3.0.5 there's no problem, and also with CAMP (an
Apache/CygWin port with PHP 3.0.6 compiled as a module) it works correctly...
---
Yet more notes:
1. Please don't write to Manuel.Hossfeld@db.com, but to Manuel@Hossfeld.de instead!
2. This is definitely a bug only present in the Win32 Versions. Other Users experienced it too.
Show_Source was and is always working fine on Unix/Linux, but not on Win32.
Full Bug description available at: http://bugs.php.net/?id=1121