This is a problem with PHP.  They changed the way the extensions are loaded.
So now on FreeBSD (that's all I can speak to) you build "PHP" and
"PHP-Extensions" separately.

In any case, assuming you have php configured to use sessions (ie, built
that extension), the problem might be in your php.ini file.

This will seem counter-intuitive, but look for "extension_dir" in your
php.ini and comment it out (!).  This was the suggestion from the PHP
mailing list.

And the reason why you might have seen the mysterious "it was working
YESTERDAY and NOTHING CHANGED!" is because changes in php/php.ini won't
take effect until Apache is restarted. 8)

So, you have a new build of PHP from July 28th... maybe your log rotate
stopped/started apache or it was restarted by an admin.

In any case, first check your php.ini, next ensure that the session (and
whatever php extensions you want) have been built, and lastly... drop the
list an e-mail if that still doesn't fix it.

Hope that helps. <8)
L8r.

Brian 8)

>To: [EMAIL PROTECTED]
>From: LuKreme <[EMAIL PROTECTED]>
>Date: Wed, 4 Aug 2004 13:09:12 -0600
>Subject: [SM-USERS] Call to undefined function: session_id()
>
>
>Yesterday Squirrelmail was working fine.  Today I am getting:
>
>Fatal error: Call to undefined function: session_id() in
>/usr/local/www/squirrelmail/functions/global.php on line 293
>
>As far as I can tell, nothing changed (there were no admins logged in
>to the system between when it was working (7pm last night) and when it
>was not (7:30am this morning)).
>
>I googled the error, but only found a web-board where someone asked the
>same question and two pages in japanese and a couple of links to
>SM-USERS posts (which were not helpful).  Searching over the last two
>months of messages here the only thing I fund was a suggestion that php
>was compiled incorrectly, but I know this php compilation has been
>working fine with Squirrelmail since it was updated last week.
>
>php version is 4.3.8
>
>// From PHP info:
>System: FreeBSD akane.covisp.net 5.2.1-RC FreeBSD 5.2.1-RC #0: Sat Jan
>31 05:36:22 GMT 2004
>[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386
>
>Build Date: Jul 28 2004 22:27:15
>
>Configure Command" './configure' '--enable-versioning'
>'--enable-memory-limit' '--with-layout=GNU'
>'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
>'--with-regex=php' '--disable-cli' '--with-apxs=/usr/local/sbin/apxs'
>'--prefix=/usr/local' 'i386-portbld-freebsd5.2.1'
>
>Server API: Apache
>
>Virtual Directory Support: disabled
>
>Configuration File (php.ini) Path: /usr/local/etc
>
>Scan this dir for additional .ini files: /usr/local/etc/php
>
>PHP API: 20020918
>
>PHP Extension: 20020429
>
>Zend Extension: 20021010
>
>Debug Build: no
>
>Thread Safety: disabled
>
>Registered PHP Streams: php, http, ftp
>
-- 
There are strange things done in the midnight sun/By the men who moil
for gold;
The Arctic trails have their secret tales/That would make your blood
run cold;
The Northern Lights have seen queer sights,/But the queerest they ever
did see
Was the night on the marge of Lake Lebarge/I cremated Sam McGee


-- 
"We accept arguments as a drunken man leans against
   a lamp post... for support, not illumination."
"Diplomacy is the art of saying, 'Nice doggie!'...
   until you can find a rock."



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to