[PHP-DEV] Bug #1121 Updated: Show_source produces odd looking output after upgrading to 3.0.6 From: Bug Database (php-dev <email protected>)
Date: 09/30/99

ID: 1121
User Update by: Manuel.Hossfeld <email protected>
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">
&lt;?php
<br>require&nbsp;<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>?&gt;
<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 <email protected>, but to Manuel <email protected> 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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>