diff options
author | Remi Collet <remi@remirepo.net> | 2018-10-24 10:32:37 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-10-24 10:32:37 +0200 |
commit | 0ccc0239b364376a73a4a0d24e7217f781835b2f (patch) | |
tree | d15bc675f3489168a1ff54ac9dc5e38648750f27 /php-7.1.24-phpize.patch | |
parent | 4c6e468b89767ad4b7189849579b7fc15a1222e3 (diff) |
7.1.24RC1
Diffstat (limited to 'php-7.1.24-phpize.patch')
-rw-r--r-- | php-7.1.24-phpize.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/php-7.1.24-phpize.patch b/php-7.1.24-phpize.patch new file mode 100644 index 0000000..169f648 --- /dev/null +++ b/php-7.1.24-phpize.patch @@ -0,0 +1,35 @@ +diff -up php-7.1.24RC1/scripts/phpize.in.headers php-7.1.24RC1/scripts/phpize.in +--- php-7.1.24RC1/scripts/phpize.in.headers 2018-10-24 08:44:25.000000000 +0200 ++++ php-7.1.24RC1/scripts/phpize.in 2018-10-24 09:24:51.810847433 +0200 +@@ -162,6 +162,15 @@ phpize_autotools() + $PHP_AUTOHEADER || exit 1 + } + ++phpize_check_headers() ++{ ++ if test ! -f $includedir/main/php.h; then ++ echo "Can't find PHP headers in $includedir" ++ echo "The php-devel package is required for use of this command." ++ exit 1 ++ fi ++} ++ + # Main script + + case "$1" in +@@ -180,12 +189,15 @@ case "$1" in + + # Version + --version|-v) ++ phpize_check_headers + phpize_print_api_numbers + exit 0 + ;; + + # Default + *) ++ phpize_check_headers ++ + phpize_check_configm4 0 + + phpize_check_build_files |