Edit report at https://bugs.php.net/bug.php?id=60069&edit=1

 ID:                 60069
 Updated by:         paj...@php.net
 Reported by:        paj...@php.net
 Summary:            highlight_file/string outputs extra "1"
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            *General Issues
 PHP Version:        5.3SVN-2011-10-16 (SVN)
 Block user comment: N
 Private report:     N

 New Comment:

forgot that highlight_* outputs the string directly, so annoying but documented 
> 
bogus.


Previous Comments:
------------------------------------------------------------------------
[2011-10-16 16:11:00] paj...@php.net

Description:
------------
An extra char is written using highlight_file.

Test script:
---------------
<?php echo highlight_file(__FILE__); ?>

or

<?php echo highlight_string(file_get_contents(__FILE__)); ?>

Expected result:
----------------
<code><span style="color: #000000">
<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: 
#0000BB">highlight_file</span><span style="color: #007700">(</span><span<br />
</span>: #0000BB">__FILE__</span><span style="color: #007700">);
</span>
</code>

Actual result:
--------------
<code><span style="color: #000000">
<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: 
#0000BB">highlight_file</span><span style="color: #007700">(</span><span<br />
</span>: #0000BB">__FILE__</span><span style="color: #007700">);
</span>
</code>1


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60069&edit=1

Reply via email to