php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19175 highlight_file bug?
Submitted: 2002-08-29 12:07 UTC Modified: 2002-09-23 07:59 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: bjarte at gandtech dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 4.2.2 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
26 + 47 = ?
Subscribe to this entry?

 
 [2002-08-29 12:07 UTC] bjarte at gandtech dot com
highlight_file() seams to stop after a sertan length, try highlight a big file to get the bug. The apache server seams to stop data after a sertan number of bytes.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-29 23:08 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2002-09-23 07:59 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2005-10-18 01:35 UTC] el_flipis at yahoo dot es
I'm using PHP 5.0.5 and i experience the same problem. This code:

$desc = fopen("temp.php","w");
fwrite($desc,"<?php".$cphp."?>");
ob_start();
highlight_file("temp.php");
$code_ret = ob_get_contents();
ob_end_clean();
fclose($desc);
unlink("temp.php");
echo $code_ret;

stops after a certain lenght of file. I don't know why it happens, i've tried whith highlight_string() and the result is the very same.
 [2008-06-26 19:42 UTC] carlmcdade at gmail dot com
Same problem with PHP 5.2.5 on Windows XP.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Sep 30 05:05:54 2022 UTC