From: Ajay S. <ss...@od...> - 2000-01-27 18:52:42
|
sorry about that. The problems is within the mcal_store_event(stream) function. Here's the code: <?php $stream=mcal_open( "{/mstore}", "ssharma", "wwamcs"); mcal_event_set_title($stream,$title); mcal_event_set_description($stream,$description); mcal_event_set_category($stream,$category); mcal_event_set_start($stream,$year,$month,$day); mcal_store_event($stream); Header( "Location: index.php3?month=$month&year=$year"); ?> when I comment out the "mcal_store_event($stream);" line it works as expected with no errors. later, ajay On Thu, 27 Jan 2000, Mark Musone wrote: > Ideally, can you limit it to the one or two mcal calls that you are making?? > > > > Mark > > > > > On Thu, 27 Jan 2000, Lauren Matheson wrote: > > > > I was wondering if the problems with PHP/MCAL causing Apache to seg > > > > fault have been fixed? I was planning on making a calendar module for > > > > PHPslash but I'm having a lot of problems getting the example on > > > > phpbuilder.com to work correctly. > > > I had this same trouble with php4, but it's fine with php3. There are > > > some suggestions to fix it in a couple of the bug reports on sourceforge, > > > but I don't think those have been added to the cvs yet. (have they?) > > > Maybe start your development in php3 and count on the bugs with 4 being > > > worked out at some point. > > > > Here's what I'm using: > > PHP 3.0.14 > > Mcal 0.5 > > Apache 1.3.6 > > Redhat Linux 6.0 (apache and php are compiled from src, not RPM's) > > > > You can see the "phpinfo" at: > > http://drakh.odc.net/~ssharma/test.php3 > > > > And the actual problem at: > > http://drakh.odc.net/~ssharma/calendar/ > > > > click on a date, type in some junk and submit and this will pop up in > > apache's error_log: > > > > [Thu Jan 27 10:25:45 2000] [notice] child pid 6407 exit signal > > Segmentation fault (11) > > > > There were any errors when I was compiling mcal or php. Does anyone > > have any ideas? > > > > Thanks, > > ajay > > > > ----------------------------------------------------- > > Satyajot (Ajay) Sharma > > System Administrator > > Digital Odyssey > > www.odc.net/~ssharma/ > > ----------------------------------------------------- > > > > > > _______________________________________________ > > Libmcal-users mailing list > > Lib...@li... > > http://lists.sourceforge.net/mailman/listinfo/libmcal-users > > > ----------------------------------------------------- Satyajot (Ajay) Sharma System Administrator Digital Odyssey www.odc.net/~ssharma/ ----------------------------------------------------- |