Hello! Ehhh... I know - it was stupid, but I spend 3h looking why my totally new php-5 (5.0.2 to be more specific) cannot handle sessions. A have an idea, which you may like.. i think (atleast I like it ;-) ). If user.admin is installing any db connectivity with php (through USE="mysql"/"postgresql"/etc.) why not to turn USE="session" for him, by default? I do not know why somebody would wnat to use php with db and _without_ session managment... PS. Sorry for my english Regards, Przemek Reproducible: Always Steps to Reproduce: 1. 2. 3.
Przemyslaw: Please use New Bug -> Gentoo Linux -> Component: Ebuilds. Infrastructure is not the correct addressee.
Carsten: sorry! Now it should be correct. Regards, Przemek
dupe of Bug 61732 perhaps ?
In a sense - yes, it is. But in the bug 61732 the sense are default USE flags per package - I'm talking about something more. To check wheter user wants a db managment (or not) and to choose USE="session" for user, after specifying one db connectivity. What I'm talking about is that "session" doesn't need to bo turn by default - make emerge turn it if it finds this `db conn`. Hope I make myself clear in this. Regards, Przemek
What should a database USE flag have to do with PHP's session extension? Besides that, I think that either ext/session should always be built and the session USE flag removed or the session USE flag should be enabled by default.
sebastian: you can't use session and a threaded apache MPM at the same time. (PHP configure bails out).
Are you sure that this is related solely to the session extension and not to its mm extension (which stores session data in shared memory instead of the filesystem)? The php5-sapi.eclass has if ! useq session ; then enable_extension_disable "session" "session" 1 else enable_extension_with "mm" "sharedmem" 0 enable_extension_with "msession" "msession" 1 fi The above code enables ext/session+mm and the (not really supported) msession extension for +session. Whether or not the above code is the cause for PHP failing to build with threading MPMs it should be rewritten so that the standard session extension can be configured separately from its mm extension and the msession extension. Ideally, like I said before, the session extension should not be configurable at all and be always enabled.
Hi Przemyslaw Maciag, Sorry, but I'm not automatically switching session support on if you switch on any of the db-related USE flags. It's perfectly valid to have one without the other. Marking bug as INVALID. Hi Sebastian, As long as things can be switched on and off via UPSTREAM's configure script, I'll be providing a USE flag for it w/ PHP 5. What we need to do is to make a list of the features that UPSTREAM switches on by default, and get the USE flags for those features into the profiles. That way, everyone gets them by default, but anyone who doesn't want them can switch them off if they wish. The main reason I haven't done this yet is that my time has had to go into establishing the Apache herd. Now that's pretty much done, I can start spending more time on PHP 5 ;-) Best regards, Stu