[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: 04/01/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:
After upgrading to 3.0.6, SHOW_SOURCE no longer works correctly.
Obviously it doesn't do correct syntax highlighting, and some lines are concatenated although they shouldn't.

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.
(Second test made, see below)

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

(Note about Show_source not in manual deleted - was to silly to hit the "search button" <g>)

Full Bug description available at: http://ca.php.net/bugs.php3?id=1121

-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>