I just upgraded to php-5.0.1/mod_php-5.0.1 today, and now my scripts (notably Gallery, also installed by Portage) that need session_id() don't run any more. I checked php --info and it says --enable-session was used to configure, but somehow my scripts can't find session_id() at runtime. Reproducible: Always Steps to Reproduce: 1. Emerge apache-2.0.50-r2 on ~x86 system. 2. Emerge php-5.0.1 and mod_php-5.0.1 on ~x86 system. 3. Emerge gallery-1.4.4_p2 on ~x86 system. 4. Try to view any of the gallery pages from a browser. Actual Results: I get "Call to undefined function session_id()" Expected Results: I expect the PHP code to execute properly producing valid HTML output displayed by my browser. emerge info output: Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.8) ================================================================= System uname: 2.6.8 i686 AMD Athlon(tm) MP 2600+ Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-mp -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-mp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa apache2 apm avi berkdb bitmap-fonts bonobo cdr crypt cups dba dvd encode esd foomaticdb freetype gd gdbm gif gnome gpm gtk gtk2 gtkhtml guile icq imap imlib jabber java jpeg ldap libg++ libwww mad mikmod mmx motif mozilla mpeg msn mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang smooth spell ssl svga tcltk tcpd tetex truetype x86 xft2 xml2 xmms xprint xv zlib" I have correctly configured my Apache and mod_php (with -D PHP5), as other PHP apps (WikkiTikkiTavi) work fine.
This can be closed IVLD. You need to compile (mod_)php with use=session support, see emerge -pv mod_php for use variables and use.desc or gentoo use docs online for a detailed description of use variables. Phillip L
There is stuff fixed in 5.0.2, and you need to USE=session.