Problem compiling PHP4 and my Fix

C Blue <azuer88-/[email protected]>
Newsgroups gmane.comp.web.midgard.user
Message-ID <[email protected]>
Hi All,

I just started compiling midgard.  I have a RH8 system that I use for
testing.  I am running Apache 2.0, and PHP4.2.2. 

When I tried to compile midgard-php4, I got this error:

attachment.c: In function `zif_mgd_open_attachment':
attachment.c:503: too few arguments to function `php_log_err'
make[1]: *** [attachment.slo] Error 1

With a bit of help from google, I found the problem and changed line 503
that reads:

        if (!fp) {
                RETVAL_FALSE_BECAUSE(MGD_ERR_ACCESS_DENIED);
                php_log_err("Midgard: failed to open blob" ); 
        }
to:

        if (!fp) {
                RETVAL_FALSE_BECAUSE(MGD_ERR_ACCESS_DENIED);
                php_log_err("Midgard: failed to open blob" TSRMLS_CC);
        }

and that seem to solve the problem.

Just thought someone may find that helpful.



Blue

-- 
azuer88+at+yahoo+dot+com
GNU/Linux User#: 383238 http://counter.li.org/

                      __\/__ 
                  .  / ^  _ \  . 
                  |\| (o)(o) |/| 
#----------------.OOOo--oo--oOOO.-----------# 
# Why geeks like computers: unzip, strip,   #
# touch, finger, grep, mount, fsck, more,   #
# yes,fsck,fsck,fsck,umount, sleep.         #
#_________________________Oooo._____________# 
                  .oooO   (   ) 
                  (   )    ) / 
                   \ (    (_/ 
                    \_) 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe-b5ZhpPVuLA+tlBvVaVFjCkB+6BGkLq7r@public.gmane.org
For additional commands, e-mail: [email protected]
signature.asc (application/pgp-signature, 196 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBCbaTEdQJXYvad6cMRAhmUAJ4iTJZFVO54DFZRPxT/EoVf5Q3w4wCfW8ff
19ILDjV1+I2DzuezP4RRohs=
=WYOs
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.