Bug #18765 [Opn->Bgs]: While Loop Stopping Short

From: Date: Fri, 06 Apr 2012 06:16:12 +0000
Subject: Bug #18765 [Opn->Bgs]: While Loop Stopping Short
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8526@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=18765&edit=1 ID: 18765 Updated by: daniel.oconnor@gmail.com Reported By: ryan at webtechglobal dot co dot uk Summary: While Loop Stopping Short -Status: Open +Status: Bogus Type: Bug Package: File_CSV Operating System: Linux and Windows Package Version: 1.0.0 PHP Version: 5.3.0 Roadmap Versions: New Comment: -Status: Open +Status: Bogus Works as per submitter comments. Previous Comments: ------------------------------------------------------------------------ [2011-08-29 01:27:01] webtechglobal I just tested the older CSV.php that I have been using, until I updated it today with the latest version and my script now works. * @version CVS: $Id: CSV.php,v 1.41 2007/05/20 12:25:14 dufuz Exp $ Can't see this version provided on here. Should anyone find they are having this issue let me know and I can provide a copy at www.webtechglobal.co.uk ------------------------------------------------------------------------ [2011-08-29 01:04:15] webtechglobal Description: ------------ While read loop only gets through 3 rows of an 8000 row file on php 5.3.0 but on previous versions with the exact same CSV file it will behave normally. This is about to kill my product unless I dig deep into PEAR CSV. I use it in Easy CSV Importer for Wordpress. Worked on this plugin for 2 years. There is no vital difference between the rows either. Tried deleting many of the earlier rows and it only ever loops 3 times. So I started testing on other servers with older php versions and it worked as normal. Test script: --------------- while ( ( $record = File_CSV::read( $pro[$filename]['filepath'], $conf ) ) ) Expected result: ---------------- It should loop 8000 times and it does on older versions of PHP. I've just confirmed it. Actual result: -------------- The loop stops short. No errors are output either. ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=18765&edit=1

« previous php.pear.bugs (#8526) next »