Aditya Dhekney wrote:

> >send you a patch that will enable me to find the exact location? What
> >version of php4-module were you using? CVS, right? Sorry to be asking
> >this again, but I can't keep track of everyone.
>
> I don't see a problem in sending a patch.  Yes, i'm using the CVS version of
> the php4-midgard module.  My php4 version is 4.0.6.  No need to be
> sorry...anything to get this working!

You'll find the patch attached. This will _not_ stop the segfaults,
but it will log into apache errorlog, and I need to know how far it
gets before it dies.

> from ../bin/repligard, if i run ./repligard i get:** CRITICAL **: Error
> logging into Database
> The midgard-data isn't installed properly yet...that's what started this
> whole mess.  

Ah, hmm. Still shouldn't degfault, but it's another clue.
Please submit a bugreport for this, with the relevant info (dies
before php can do anything, the loggin info the patch generates, the
fact the data package wasn't installed). It makes it easier for me to
juggle stuff.

Emile
Index: midgard.c
===================================================================
RCS file: /usr/local/cvs/midgard/php4/midgard.c,v
retrieving revision 1.10
diff -u -r1.10 midgard.c
--- midgard.c   2001/07/09 10:15:25     1.10
+++ midgard.c   2001/07/17 15:34:53
@@ -347,13 +347,16 @@
    /* EEH: I have 0 clue as to what these params mean, and the PHP
     * docs on these are non-existant
     */
+   fprintf(stderr, "Creating destructor list\n");
    le_midgard_list_fetch =
       zend_register_list_destructors_ex(_midgard_list_fetch_dtor, NULL,
          "midgard list fetch", module_number);
 
+   fprintf(stderr, "Registering classes\n");
        for (midgard_class = MidgardClasses; midgard_class &&
                                                        *midgard_class; 
midgard_class++) {
                if(*midgard_class && (*midgard_class)->name) {
+         fprintf(stderr, ":: Registering %s\n", (*midgard_class)->name);
                        MGD_INIT_OVERLOADED_CLASS_ENTRY(
                                (*midgard_class)->class_entry,
                                (*midgard_class)->name,
@@ -364,11 +367,13 @@
                                //(*midgard_class)->get_property,
                                (*midgard_class)->set_property
                        );
+         (*midgard_class)->entry_ptr =
+            zend_register_internal_class(&((*midgard_class)->class_entry));
+         assert((*midgard_class)->entry_ptr);
                }
-      (*midgard_class)->entry_ptr =
-         zend_register_internal_class(&((*midgard_class)->class_entry));
-      assert((*midgard_class)->entry_ptr);
    }
+
+   fprintf(stderr, "Midgard MINIT succesful\n");
        return SUCCESS;
 }
 
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to