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

From: Date: Mon, 10 Mar 2014 16:26:20 +0000
Subject: Req #66876 [Opn->Fbk]: missing data on file read
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184694@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
 Updated by:         requinix@php.net
 Reported by:        rennie at bdevel dot co dot uk
 Summary:            missing data on file read
-Status:             Open
+Status:             Feedback
 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:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

The exact contents of the input file could make all the difference. And protip: when debugging HTML
you need to be looking at the source of the page, not the output you see rendered by your browser.


Previous Comments:
------------------------------------------------------------------------
[2014-03-10 11:51:58] rennie at bdevel dot co dot uk

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!

------------------------------------------------------------------------
[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 (#184694) next »