Req #66876 [NEW]: missing data on file read
From: rennie at bdevel dot co dot uk
Operating system: Ubuntu
PHP version: 5.5.10
Package: Scripting Engine problem
Bug Type: Feature/Change Request
Bug description:missing data on file read
Description:
------------
code snipit
$string = file($tfile, FILE_IGNORE_NEW_LINES or
FILE_SKIP_EMPTY_LINES);
echo "Array is: ".sizeof($string)."<br>";
$k = 0;
do {
$string[$k] = str_replace("<","",$string[$k]);
echo "Number ".$k." String ".$string[$k]."<br>";
$k++;
}while($k<200);
line(s) that fails is (cut and paste using Dreamweaver):
<a href="ppl/a/b/cae94b82d133a7c8fba.php">Charles Edward Steel<span
class="grampsid"> [I2780]</span></a>
All data past <span class="grampsid"> is dropped until the /a. This
happens with fget fgets et. etc. 100% reproduced. There is a similar bug
report but the "fix" given does not work for me!
Expected result:
----------------
Number 50 String a href="ppl/a/b/cae94b82d133a7c8fba.php">Charles Edward
Steel span class="grampsid"> [I2780] /span> /a>
Actual result:
--------------
Number 50 String a href="ppl/a/b/cae94b82d133a7c8fba.php">Charles Edward
Steel/a>
--
Edit bug report at https://bugs.php.net/bug.php?id=66876&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66876&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66876&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66876&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66876&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66876&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66876&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66876&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66876&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66876&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66876&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66876&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66876&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66876&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66876&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66876&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66876&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66876&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66876&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66876&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66876&r=mysqlcfg
Thread (6 messages)
- rennie at bdevel dot co dot uk