Home » File System » File » Bug #4865
File::ReadLine Doesn't Work at all
Details
| Submitted | 2005-07-19 22:53 UTC |
|---|---|
| From | chris dot stone at gmail dot com |
| Status | Duplicate |
| Package | File |
| PHP Version | 5.0.4 |
| OS | RHEL4 |
| Roadmaps | (Not assigned) |
Comments
[2005-07-19 22:53 UTC] chris dot stone at gmail dot com
Description:
------------
Using File::readLine with PHP5 is totally broken, I don't know how else to describe it. When I load the test page below absolutely nothing happens at all. No errors, no page refresh, nothing. It's like PHP is breaking or something??
Reproduce code:
---------------
<?php
require_once 'File.php';
var_dump(File::readLine('foo.txt'));
?>
foo.txt contains:
This is a file test.
With two lines in it.
Expected result:
----------------
var_dump of "This is a file test."
Actual result:
--------------
Complete breakage, page doesn't even start, for example, if you have another page already loaded and try to load file.php, the old page just remains on the screen.