|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 05:00:02 2025 UTC | 
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.