Edit report at https://bugs.php.net/bug.php?id=53436&edit=1
ID: 53436 Updated by: s...@php.net Reported by: fedora at famillecollet dot com Summary: RFE: add check for php headers in phpize -Status: Open +Status: Feedback Type: Feature/Change Request Package: Compile Failure Operating System: GNU/Linux (Fedora 14) PHP Version: 5.3SVN-2010-12-01 (SVN) Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2011-08-28 09:44:45] s...@php.net This patch can not be incorporated as-is - it refers to "php-devel package", which has no meaning outside of certain binary distributions of PHP. In general, I'm not sure why PECL command should always fail on --version if headers are not present, especially since, as you suggest, it may be useful without them. As for the build, if I understand correctly, the build would fail anyway if headers are not present, so how this patch improves things? ------------------------------------------------------------------------ [2010-12-01 15:49:52] fedora at famillecollet dot com Description: ------------ phpize is used to build pecl extension. This script already does a lot of sanity check before the build. On GNU/Linux distribution, PHP headers are available in a sub-package phpize should check if header are available before running the build. See : https://bugzilla.redhat.com/657812 Note than pecl command is usefull, even without "php-devel" to register/unregister packaged extension (--nobuild option), to list regitered extensions, etc. Test script: --------------- # yum remove php-devel # or any other command, apt, ... # pecl install APC Expected result: ---------------- 49 source files, building running: phpize Can't find PHP headers in /usr/include/php The php-devel package is required for use of this command. ERROR: `phpize' failed ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=53436&edit=1