note 21285 added to ref.msession
| From: | carsten at sarum dot dk | Date: | Mon, 06 May 2002 19:12:32 +0000 |
| Subject: | note 21285 added to ref.msession | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30270@lists.php.net to get a copy of this message | ||
If you have trouble connecting to the msessiond from a php-script, this might be the solution for
you.
msessiond (and your php-extension) both use the libphoenix.a which, among other files, is built from
a file called "mutils.cpp".
Open this file, and find a line saying:
FILE *f = fopen("/dev/random", "rb");
(I believe it is line 506. There's only this one.)
On my FreeBSD 4.5 Tiny, /dev/random seldom spits out data, so the program hangs on the next line (an
fread() call). Use /dev/urandom instead, it always sends data.
Change the line above to:
FILE *f = fopen("/dev/urandom", "rb");
Then rebuild phoenix-lib, msessiond, and PHP. You might want to do a "make clean" to be
sure the change is noted.
- Carsten
--
http://www.php.net/manual/en/ref.msession.php
http://master.php.net/manage/user-notes.php?action=edit+21285
http://master.php.net/manage/user-notes.php?action=delete+21285
http://master.php.net/manage/user-notes.php?action=reject+21285