Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44167 - PEAR-Log 'mail' needs _announce() and not finding
Summary: PEAR-Log 'mail' needs _announce() and not finding
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-09 11:49 UTC by Heitzso
Modified: 2004-03-15 06:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heitzso 2004-03-09 11:49:07 UTC
Using stable PEAR-Log
creating log object with:
 $conf = array('subject' => 'Severe Background Check Error');
 $adminLog = &Log::singleton('mail', $adminEmail, 'Background Check', $conf);
when use $adminLog->log($msg) php complains thusly:
Fatal error: Call to undefined function: 
_announce() in /usr/lib/php/Log/mail.php on line 161
If you grep on announce in that directory you won't fine the method


Reproducible: Always
Steps to Reproduce:
1. emerge stable PEAR-Log
2. create a mail log object
3. use mail log object

Actual Results:  
PHP stops with fatal error in mail.php file

Expected Results:  
emailed error message

Gentoo Base System version 1.4.3.13
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 AMD Athlon(tm) XP 2200+
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://cudlug.cudenver.edu/gentoo/
ftp://gentoo.mirrors.pair.com/ http://adelie.polymtl.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apm arts avi berkdb bonobo cdr crypt cups curl directfb
doc encode esd foomaticdb freetds gb gd gdbm gif gnome gphoto2 gpm gtk gtk2
gtkhtml guile imap imlib java jikes jpeg junit libg++ libwww mad maildir mikmod
motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png
postgres ppds python qt quicktime readline ruby samba sasl scanner sdl slang
spell ssl svga tcltk tcpd tetex tiff truetype usb wavelan wxwindows x86 xml xml2
xmms xv zlib"
Comment 1 Tal Peer (RETIRED) gentoo-dev 2004-03-14 10:41:28 UTC
Which file did you include?
when i include("Log.php") and use the code you pasted it works (_announce() is defined in Log.php).
Comment 2 Tal Peer (RETIRED) gentoo-dev 2004-03-15 06:19:53 UTC
Oh, didn't notice it's x86. 
Bumped 1.8.3 to x86 stable.
Comment 3 Tal Peer (RETIRED) gentoo-dev 2004-03-15 06:37:38 UTC
closing..