Req #66876 [Opn]: missing data on file read

From: Date: Mon, 10 Mar 2014 11:51:59 +0000
Subject: Req #66876 [Opn]: missing data on file read
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184688@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66876&edit=1

 ID:                 66876
 User updated by:    rennie at bdevel dot co dot uk
 Reported by:        rennie at bdevel dot co dot uk
 Summary:            missing data on file read
 Status:             Open
 Type:               Feature/Change Request
 Package:            Scripting Engine problem
 Operating System:   Ubuntu
 PHP Version:        5.5.10
 Block user comment: N
 Private report:     N

 New Comment:

Work around: Use Dreamweaver to remove offending characters leaving

<a href="ppl/d/a/cae94ba15305f07a3ad.php">Cunnigham, Georgina Gladys
[I7532]</span></a>

Now works, but it took 2.5 hrs to replace all 9000 records!


Previous Comments:
------------------------------------------------------------------------
[2014-03-10 10:26:48] rennie at bdevel dot co dot uk

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 this bug report at https://bugs.php.net/bug.php?id=66876&edit=1


Thread (6 messages)

« previous php.bugs (#184688) next »