Commit Graph

11 Commits

Author SHA1 Message Date
zynode
70366e3085 parseCSV 0.4 beta
- Error reporting for files/data which is corrupt
  or has formatting errors like using double
  quotes in a field without enclosing quotes. Or
  not escaping double quotes with a second one.

- parse() method does not require input anymore
  if the "$object->file" property has been set.

I'm calling this a beta release due to the heavy
modifications to the core parsing logic required
for error reporting to work. I have tested the
new code quite extensively, I'm fairly confident
that it still parses exactly as it always has.

The second reason I'm calling it a beta release
is cause I'm sure the error reporting code will
need more refinements and tweaks to detect more
types of errors, as it's only picking two types
or syntax errors right now. However, it seems
these two are the most common errors that you
would be likely to come across.

git-svn-id: http://parsecsv-for-php.googlecode.com/svn/trunk@28 339761fc-0c37-0410-822d-8b8cac1f6a97
2008-04-11 18:13:37 +00:00
zynode
2dfd35b988 added error reporting/validation of parsed data, still needs some more testing before release tho...
git-svn-id: http://parsecsv-for-php.googlecode.com/svn/trunk@27 339761fc-0c37-0410-822d-8b8cac1f6a97
2008-04-07 16:17:44 +00:00
zynode
ae00f949f0 parseCSV 0.3.2
This is primarily a bug-fix release for a critical
bug which was brought to my attention.

- Fixed a critical bug in conditions parsing which
  would generate corrupt matching patterns causing
  the condition(s) to not work at all in some
  situations.

- Fixed a small code error which would cause PHP to
  generate a invalid offset notice when zero length
  values were fed into the unparse() method to
  generate CSV data from an array.

git-svn-id: http://parsecsv-for-php.googlecode.com/svn/trunk@22 339761fc-0c37-0410-822d-8b8cac1f6a97
2008-03-31 22:50:36 +00:00
zynode
4e76da5eff minor fix to a bug which caused notice errors to be generated when _enclose_value() was fed a zero character long string
git-svn-id: http://parsecsv-for-php.googlecode.com/svn/trunk@20 339761fc-0c37-0410-822d-8b8cac1f6a97
2008-03-31 20:55:33 +00:00
zynode
7762e71316 parseCSV 0.3.1
- Small change to default output settings to
  conform with RFC 4180 (http://rfc.net/rfc4180.html).
  Only the LF (line feed) character was used
  by default to separate rows, rather than
  CRLF (carriage return & line feed).

git-svn-id: http://parsecsv-for-php.googlecode.com/svn/trunk@17 339761fc-0c37-0410-822d-8b8cac1f6a97
2007-08-31 22:45:22 +00:00
zynode
e28b3d0f9d parseCSV 0.3.0
- Changed to the MIT license.

- Added offset and limit options.

- Added SQL-like conditions for quickly
  filtering out entries. Documentation on the
  condition syntax is forthcoming.

- Small parsing modification to comply
  with some recent changes to the specifications
  outlined on Wikipedia's Comma-separated values
  article.

- Minor changes and optimizations, and a few
  spelling corrections. Oops :)

git-svn-id: http://parsecsv-for-php.googlecode.com/svn/trunk@14 339761fc-0c37-0410-822d-8b8cac1f6a97
2007-08-09 09:17:54 +00:00
zynode
9c389ed0c1 conditions, limit and offset are functional. conditions needs a rewrite tho.
added examples to trunk.


git-svn-id: http://parsecsv-for-php.googlecode.com/svn/trunk@13 339761fc-0c37-0410-822d-8b8cac1f6a97
2007-08-08 18:48:11 +00:00
zynode
82049f1701 Fixed stupid code which caused auto function to not work in some situations.
git-svn-id: http://parsecsv-for-php.googlecode.com/svn/trunk@12 339761fc-0c37-0410-822d-8b8cac1f6a97
2007-08-08 10:38:25 +00:00
zynode
72fde0424d fixed ChangeLog.txt line feeds to Windows friendliness
git-svn-id: http://parsecsv-for-php.googlecode.com/svn/trunk@10 339761fc-0c37-0410-822d-8b8cac1f6a97
2007-08-07 20:27:33 +00:00
zynode
5f0e6b03d4 initial import of parseCSV class
git-svn-id: http://parsecsv-for-php.googlecode.com/svn/trunk@8 339761fc-0c37-0410-822d-8b8cac1f6a97
2007-08-07 20:19:40 +00:00
(no author)
03c6dc37d4 Initial directory structure.
git-svn-id: http://parsecsv-for-php.googlecode.com/svn/trunk@1 339761fc-0c37-0410-822d-8b8cac1f6a97
2007-08-06 19:33:40 +00:00