Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#18504 - [php] add support for the embed SAPI

Attached to Project: Arch Linux
Opened by Pierre Bourdon (delroth) - Sunday, 28 February 2010, 20:35 GMT
Last edited by Pierre Schmitz (Pierre) - Wednesday, 03 March 2010, 02:11 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The current php packages are compiled without the support of the embed SAPI. While marked as experimental in the PHP sources, it is a mature piece of code which has not been heavily modified since at least 4 years.

The fact that PHP is compiled without the embed SAPI blocks the packaging of software like PHC (http://www.phpcompiler.org/).

I reported this as a php package feature request instead of creating my own package on AUR as a php-embed package on AUR would require to recompile all of PHP, and the php-config script would not be up to date (php-config --php-sapis would not include "embed"). Please tell me if this is not the appropriate place.
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Wednesday, 03 March 2010, 02:11 GMT
Reason for closing:  Implemented
Comment by Pierre Schmitz (Pierre) - Sunday, 28 February 2010, 20:49 GMT
I didn't look into this yet. It depends on whether this is an addition to php or if it alters the php binary and modules itself.
Comment by Pierre Bourdon (delroth) - Sunday, 28 February 2010, 21:01 GMT
It is a ./configure option (--enable-embed=shared). It adds a target to PHP Makefile, libphp5.so (-> /usr/lib), and a header, php_embed.h (->/usr/include/php/sapi/embed/php_embed.h). Other SAPIs, such as cgi, cli, etc. are not concerned by this change.

It does not alter the PHP binary (if you mean /usr/bin/php) or its modules, which are shared amongst SAPIs, but is included with the PHP sources since at least PHP 5.0.

For more informations, see sapi/embed/* in PHP sources.
Comment by Pierre Schmitz (Pierre) - Wednesday, 03 March 2010, 01:21 GMT
OK, I had a look at it. I could add it as a separate split package php-embed. php-config will allways list cli only as you have to build the sapis independently.

That doesn't seem to be a problem at all. I just successfully compiled phc. So, expect a php-embed package in extra soon.

Loading...