<?php
// $source_file includes line breaks
$source=join('',file($source_file));
$body=highlight_string ( $source, $return=TRUE);
// $body is a single line, without line breaks
?>
Warning: Undefined variable $source_file in /in/YFOmj on line 3
Deprecated: file(): Passing null to parameter #1 ($filename) of type string is deprecated in /in/YFOmj on line 3
Fatal error: Uncaught ValueError: Path cannot be empty in /in/YFOmj:3
Stack trace:
#0 /in/YFOmj(3): file('')
#1 {main}
thrown in /in/YFOmj on line 3
Process exited with code 255.
Output for 8.0.0 - 8.0.30
Warning: Undefined variable $source_file in /in/YFOmj on line 3
Fatal error: Uncaught ValueError: Path cannot be empty in /in/YFOmj:3
Stack trace:
#0 /in/YFOmj(3): file('')
#1 {main}
thrown in /in/YFOmj on line 3
Process exited with code 255.
Notice: Undefined variable: source_file in /in/YFOmj on line 3
Warning: file(): Filename cannot be empty in /in/YFOmj on line 3
Warning: join(): Invalid arguments passed in /in/YFOmj on line 3
<br />
<b>Warning</b>: join() [<a href='function.join'>function.join</a>]: Bad arguments. in <b>/in/YFOmj</b> on line <b>3</b><br />
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.2
<br />
<b>Warning</b>: join(): Bad arguments. in <b>/in/YFOmj</b> on line <b>3</b><br />
Output for 4.3.0 - 4.3.1
<br />
<b>Warning</b>: join() [<a href='http://www.php.net/function.join'>function.join</a>]: Bad arguments. in <b>/in/YFOmj</b> on line <b>3</b><br />