From: Jim Hu <ji...@ta...> - 2007-10-12 15:55:50
|
I haven't gotten very far with version 3, but I got sick of some of the outstanding bugs and made a major change in cvs that will be the basis for 2.25. The big changes - handling the END:VEVENT has been split out of ical_parser.php into a separate file called end_vevent.php - I am trying to reduce the number of places in the code where the master_array gets written. I got rid of a couple by going toward my plan for v3, which is to treat all events as recurring, but allow only one instance for a non-recurring event. Right now this is implemented with a kind of ugly hack. - I reduced the size of the master_array for the day, week, and month views. This may break save_parsed_cals, but I haven't tested that yet. The hope is to reduce the problems people have been having with memory overflows. - I started working on adding support for the TZ_IDs in ics files that aren't in our canned list. Right now this is being done by reading the ics file twice, which is probably a bad idea. The two passes are to deal with tz info being at the end of the file. But I'm thinking that a better approach is to load a heavily pruned master_array first, then traverse it and adjust the timezone info before sorting. This could be ugly, though, as some of the adjustments will alter the date and time keys, and I'm not sure about how the overlap handling will cope. In case anyone on the list is still thinking about phpical now and then, I'd love to have people look at what's going on! I'm thinking that I probably broke stuff that worked in Chad's code in the process of making all these changes. Also, in an earlier part of the 2.x development, I tried to change the strtotime statements to make them less sensitive to strtotime bugs in certain php installations. In hindsight, I'm not sure if that was a good idea, as it causes problems in daylight savings transitions. Discussion of this would be welcome. ===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054 |