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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC