I recently reinstalled PHP 5.03 as FastCGI and with the hardened patch (under FreeBSD 4.10 using the www/php5-cgi port). Ever since then, I've been unable to add/reinstall extensions, as they fail with the following error: PHP Warning: PHP Startup: session: Unable to initialize module Module compiled with module API=20041030, debug=0, thread-safety=0 PHP compiled with module API=1020041030, debug=0, thread-safety=0 These options need to match in Unknown on line 0
I have no clue as to why PHP says it is using module API 1020041030 instead of 20041030 or as to how make php-extensions using API 20041030 :-?
i'm sorry, but i never haved compiled any module for php. maybe the installation instructions for the haredened php version have some tips/hints/more infos about that. i think you're not the only one who has that problem, but i can't give you a shoort therefore.
Attention: Hardened-PHP is not binary compatible to normal PHP anymore. If you want to use closed source extension with it, you must ask your vendor, to provide some linked against H-PHP. Open Source extensions will work like before, but need a recompile.
Tried that, but it keeps compiling against non-hardened php.
Checked the FreeBSD ports history and some provided a patch (http://www.freebsd.org/cgi/query-pr.cgi?pr=74919) for hardened PHP, but it was dismissed:
This patch breaks lang/php4-extensions - it tries to repatch the source for every extension installed.
But at least I have a direction to search for a sollution.