Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74208 - turn automaticuly on USE="seesion" for php
Summary: turn automaticuly on USE="seesion" for php
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-12 09:06 UTC by Przemyslaw Maciag (RETIRED)
Modified: 2005-02-19 02:00 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 Przemyslaw Maciag (RETIRED) gentoo-dev 2004-12-12 09:06:09 UTC
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.
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-12 12:31:51 UTC
Przemyslaw: Please use New Bug -> Gentoo Linux -> Component: Ebuilds. Infrastructure is not the correct addressee.
Comment 2 Przemyslaw Maciag (RETIRED) gentoo-dev 2004-12-12 12:37:15 UTC
Carsten: sorry! Now it should be correct.

Regards,
Przemek
Comment 3 SpanKY gentoo-dev 2004-12-13 07:37:31 UTC
dupe of Bug 61732 perhaps ?
Comment 4 Przemyslaw Maciag (RETIRED) gentoo-dev 2004-12-13 07:59:10 UTC
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
Comment 5 Sebastian Bergmann (RETIRED) gentoo-dev 2005-02-18 23:51:41 UTC
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.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-19 01:25:16 UTC
sebastian: you can't use session and a threaded apache MPM at the same time.
 (PHP configure bails out).
Comment 7 Sebastian Bergmann (RETIRED) gentoo-dev 2005-02-19 01:41:08 UTC
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.
Comment 8 Stuart Herbert (RETIRED) gentoo-dev 2005-02-19 02:00:46 UTC
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