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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bjarte at gandtech dot com
New email:
PHP Version: OS:

 

 [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-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC