From:             gfraley5 at earthlink dot net
Operating system: XP and Linux
PHP version:      4.3.2
PHP Bug Type:     Filesystem function related
Bug description:  FREAD not function correctly on url reads

Description:
------------
This code works perfectly on v4.3.1 and prior.  It no loner works on 4.3.2
nor on 4.3.3RC1.  I am using Apache 2.0.46.

<?
        $getNews = fopen("http://finance.yahoo.com/q?s=FON&d=t";, "r");
        $readNews = fread($getNews, 32767);
        fclose($getNews);
        echo "<table><tr><td align=\"center\">";
        if (strpos($readNews,'New research reports for')!=FALSE) {
                list($FirstSplit1,$FirstSplit2)= split ("New research reports for",
$readNews);
                list($SecondSplit1,$SecondSplit2)= split
("</a></font></td></tr></table>", $FirstSplit2);
                list($stockNews,$ThirdSplit2)= split ("<p><b><font face=arial
size=-1>All headlines for:", $SecondSplit2);
        }
        $stockNews = str_replace("href=","target=\"_new\" href=",$stockNews);

        echo "<font size=\"1\"><b>Financial News For
FON</b><br>$stockNews</font></td></tr></table></table>";
?>


Expected result:
----------------
Under 4.3.1 and prior:

Financial News For FON
Mon 6:15am FON Sprint, Sony, AOL in Mobile Content Distribution Pact - Dow
Jones Business News 
Mon 6:01am FON Sprint and Warner Music Group Expand Relationship to Offer
Customers America's First Full-Length Streamed Music Tracks in the Palm of
Their Hands - PR Newswire 
Mon 6:01am FON Sprint Inks Deal With Clark County of Nevada for Sprint
Ethernet Services(SM) - PR Newswire 
Mon 6:01am FON TriWest Healthcare Alliance Selects Sprint to Help Deliver
Access To Healthcare Services for Military Personnel in 16 States - PR
Newswire 
Mon 6:00am FON Sprint and Sony Music Entertainment Announce Broad
Strategic Partnership To Distribute Mobile Entertainment Content - PR
Newswire 
Mon 6:00am FON Hear It on Your Phone First: Sprint Launches the PCS Vision
Music Channel, A One-Stop Source for Access to Wireless Music - PR
Newswire 
Fri Jun 27 FON Sprint PCS Inks Streaming Music Deal With Sony, AOL -CNN -
Dow Jones Business News 
Fri Jun 27 FON Sprint Employees Tackle Hunger for Harvesters - PR Newswire

Thu Jun 26 FON Sprint Files To Sell 679,100 Earthlink Common Shares - Dow
Jones Business News 
Thu Jun 26 FON KPMG sued by employee over tax shelter work - Reuters 
 


Actual result:
--------------
Under 4.3.2 and 4.3.3rc1

Financial News For FON


-- 
Edit bug report at http://bugs.php.net/?id=24414&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24414&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24414&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24414&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24414&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24414&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24414&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24414&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24414&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24414&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24414&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24414&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24414&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24414&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24414&r=gnused

Reply via email to