Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65334 - php-4.3.8-r1.ebuild (update)
Summary: php-4.3.8-r1.ebuild (update)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-25 11:12 UTC by Philippe Weibel
Modified: 2005-05-05 22:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
php-4.3.8-r1.ebuild (php-4.3.8-r1.ebuild,1.54 KB, text/plain)
2004-09-25 11:13 UTC, Philippe Weibel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Weibel 2004-09-25 11:12:15 UTC
PHP4 (cli version) doesn't follow ZTS rules of apache module...

I emerged mod_php on my system. I've enabled thread support in apache2.
mod_php correctly detects thread support in apache2 and builds module with ZTS enabled.
Then php is emerged with ZTS disabled.
I emerged then turck-mmcache and it's build ZTS off (using rules from php module, not mod_php)... This module can't work...

Ebuild I propose integrates such apache threading detection as in mod_php and to automatically enable ZTS in php (cli version) too.

This corrected the problem for me...
Comment 1 Philippe Weibel 2004-09-25 11:13:41 UTC
Created attachment 40400 [details]
php-4.3.8-r1.ebuild
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-26 21:42:52 UTC
You cannot use the cli from the mod_php version without some breakages happening.

A different solution must be found - probably a ZTS use flag.
Comment 3 Philippe Weibel 2004-09-27 01:26:45 UTC
I didn't use cli from mod_php ebuild but from php ebuild.

I saw a dependancy beween mod_php and php ebuild. The problem I tried to solve is 'php-config' script witch is called by other ebuild (php-ext-source_src_compile  I suppose).

Another possibility is to modify this function to generate both ZTS and non-ZTS versions when Apache2 is threaded.
ZTS use flag seems good, but should then be implemented in all php module (modify portage php-ext-source class?).

What did you mean with "some breakages"? Which packages? (I'm a newbie in ebuild buiding...). The problem could be that extensions emerged before apache (treads on) + php (ZTS on, then) are not working any more and sould be re-emerged.
Comment 4 Sebastian Bergmann (RETIRED) gentoo-dev 2005-05-05 22:01:12 UTC
Please test with the latest version of PHP that is available in portage (currently) PHP 4.3.11 and reopen if the problem persists.