Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122384 - php ebuild should install mod_files.sh
Summary: php ebuild should install mod_files.sh
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-10 08:44 UTC by Lindsay Haisley
Modified: 2006-02-18 07:16 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 Lindsay Haisley 2006-02-10 08:44:49 UTC
Versions of PHP4 since 4.0.1 provide a shell script, mod_files.sh, for creating a session file directory structure, as per the comments for session.save_path in the default php.ini file.  

This utility is required if one uses the syntax:

   session.save_path = "N;/path"


This directory structure isn't created by default by PHP and must be created prior to using PHP4 native sessions if one is using this feature.  mod_files.sh is provided in the ext/session directory relative to the root of the source tree.  A small patch to touch up the php.ini comment documentation would also be helpful since this script isn't named there, although its location in the source tree is given.

If PHP session data is stored in /dev/shm then the required directory structure must obviously be re-created each time the OS is restarted.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-02-10 09:08:06 UTC
The distributed script is broken in every single php version except >=php-5.1 (see http://bugs.php.net/bug.php?id=28644). Not really worth the hassle I'd say.
Comment 2 Lindsay Haisley 2006-02-10 13:01:25 UTC
OK, I don't think I need the directory separation feature but noted the support script referenced in the ini file was missing and thought it might be worthwhile to point this out.  Thanks for your attention on this.
Comment 3 Luca Longinotti (RETIRED) gentoo-dev 2006-02-18 07:16:25 UTC
Yeah, the script won't be installed by dev-lang/php, as it's broken for most PHP releases, not really useful (that usage of the session stuff isn't that great), and it's anyway very easy to get the script if you really need it.
Best regards, CHTEKK.