9cae5e
diff -up php-7.3.0RC4/scripts/phpize.in.headers php-7.3.0RC4/scripts/phpize.in
9cae5e
--- php-7.3.0RC4/scripts/phpize.in.headers	2018-10-23 11:32:20.000000000 +0200
9cae5e
+++ php-7.3.0RC4/scripts/phpize.in	2018-10-23 13:35:55.382870481 +0200
9cae5e
@@ -162,6 +162,15 @@ phpize_autotools()
9cae5e
   $PHP_AUTOHEADER || exit 1
9cae5e
 }
9cae5e
 
9cae5e
+phpize_check_headers()
9cae5e
+{
9cae5e
+  if test ! -f $includedir/main/php.h; then
9cae5e
+    echo "Can't find PHP headers in $includedir"
9cae5e
+    echo "The php-devel package is required for use of this command."
9cae5e
+    exit 1
9cae5e
+  fi
9cae5e
+}
9cae5e
+
9cae5e
 # Main script
9cae5e
 
9cae5e
 case "$1" in
9cae5e
@@ -180,12 +189,15 @@ case "$1" in
9cae5e
 
9cae5e
   # Version
9cae5e
   --version|-v)
9cae5e
+    phpize_check_headers
9cae5e
     phpize_print_api_numbers
9cae5e
     exit 0
9cae5e
   ;;
9cae5e
 
9cae5e
   # Default
9cae5e
   *)
9cae5e
+     phpize_check_headers
9cae5e
+
9cae5e
      phpize_check_configm4 0
9cae5e
 
9cae5e
      phpize_check_build_files