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