PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File System » File » Bug #4865

File::ReadLine Doesn't Work at all

Details

Submitted2005-07-19 22:53 UTC
Fromchris dot stone at gmail dot com
StatusDuplicate
PackageFile
PHP Version5.0.4
OSRHEL4
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.