You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just wanted to update you with my output and wonder if I am misusing your VObject library
I have attached my simple script <index.php> and the vcard that I am trying to parse.
Wonder if you could confirm the bug or correct my working script if possible.
Regards,
Feras
What is the expected output? What do you see instead?
EXPECTED OUTPUT:
There are 0
It took us only 0.033527851104736 seconds
INSTEAD WE GOT:
Fatal error: Uncaught exception 'Sabre_VObject_ParseException' with message 'Invalid VObject, line 17 did not follow icalendar format' in /usr/local/vcard/VObject/Reader.php:112 Stack trace: #0 /usr/local/vcard/VObject/Reader.php(83): Sabre_VObject_Reader::readLine(Array) #1 /usr/local/vcard/VObject/Reader.php(54): Sabre_VObject_Reader::readLine(Array) #2 /usr/local/vcard/www/index.php(9): Sabre_VObject_Reader::read('BEGIN:VCARD??VE...') #3 {main} thrown in /usr/local/vcard/VObject/Reader.php on line 112
The vcard you attached appears to be corrupt. The spec says that long lines can be split into multiple lines, if the next line starts with a space, or tab.
Line 17 in that object does not start with either, which is why you're seeing the error.
Does this help? If you can find out what generated the file (looks like syncevolution?) you might want to see if you can file a bug report with them..
Original author: fta...@aptus.com (April 08, 2011 07:38:29)
Dear Evert:
Thank you for great work,
Just wanted to update you with my output and wonder if I am misusing your VObject library
I have attached my simple script <index.php> and the vcard that I am trying to parse.
Wonder if you could confirm the bug or correct my working script if possible.
Regards,
Feras
What is the expected output? What do you see instead?
EXPECTED OUTPUT:
There are 0
It took us only 0.033527851104736 seconds
INSTEAD WE GOT:
Fatal error: Uncaught exception 'Sabre_VObject_ParseException' with message 'Invalid VObject, line 17 did not follow icalendar format' in /usr/local/vcard/VObject/Reader.php:112 Stack trace: #0 /usr/local/vcard/VObject/Reader.php(83): Sabre_VObject_Reader::readLine(Array) #1 /usr/local/vcard/VObject/Reader.php(54): Sabre_VObject_Reader::readLine(Array) #2 /usr/local/vcard/www/index.php(9): Sabre_VObject_Reader::read('BEGIN:VCARD??VE...') #3 {main} thrown in /usr/local/vcard/VObject/Reader.php on line 112
Original issue: http://code.google.com/p/sabredav/issues/detail?id=122
The text was updated successfully, but these errors were encountered: