Skip to content

Commit d9f48e2

Browse files
committed
main: Remove PHP_API_VERSION
This one is not actually referenced anywhere (except being printed in phpinfo).
1 parent 465bbed commit d9f48e2

5 files changed

Lines changed: 2 additions & 7 deletions

File tree

‎UPGRADING.INTERNALS‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ PHP 8.7 INTERNALS UPGRADE NOTES
5555
to work.
5656
. The ZTS symbols compiler_globals_offset and executor_globals_offset have
5757
been removed: CG()/EG() now reach the globals through a __thread struct.
58+
. The unused PHP_API_VERSION was removed. ABI compatibility is verified
59+
against ZEND_MODULE_API_NO and ZEND_EXTENSION_API_NO.
5860

5961
- Changed:
6062
. The signature of zend_is_callable() has been changed to

‎ext/standard/info.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -831,9 +831,6 @@ PHPAPI ZEND_COLD void php_print_info(int flag)
831831
php_info_print_table_row(2, "Scan this dir for additional .ini files", php_ini_scanned_path ? php_ini_scanned_path : "(none)");
832832
php_info_print_table_row(2, "Additional .ini files parsed", php_ini_scanned_files ? php_ini_scanned_files : "(none)");
833833

834-
snprintf(temp_api, sizeof(temp_api), "%d", PHP_API_VERSION);
835-
php_info_print_table_row(2, "PHP API", temp_api);
836-
837834
snprintf(temp_api, sizeof(temp_api), "%d", ZEND_MODULE_API_NO);
838835
php_info_print_table_row(2, "PHP Extension", temp_api);
839836

‎ext/standard/tests/general_functions/phpinfo.phpt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ Configuration File (php.ini) Path => %s
2424
Loaded Configuration File => %r(.+?)%r
2525
Scan this dir for additional .ini files => %r(.+?)%r
2626
Additional .ini files parsed => %r(.+?)%r
27-
PHP API => %d
2827
PHP Extension => %d
2928
Zend Extension => %d
3029
Zend Extension Build => API%s

‎main/php.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include <dmalloc.h>
2121
#endif
2222

23-
#define PHP_API_VERSION 20261113
2423
#define YYDEBUG 0
2524
#define PHP_DEFAULT_CHARSET "UTF-8"
2625

‎scripts/phpize.in‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ phpize_get_api_numbers()
6161
# extracting API NOs:
6262
PHP_MINOR_VERSION=`grep '#define PHP_MINOR_VERSION' $includedir/main/php_version.h|$SED 's/#define PHP_MINOR_VERSION //'`
6363
PHP_MAJOR_VERSION=`grep '#define PHP_MAJOR_VERSION' $includedir/main/php_version.h|$SED 's/#define PHP_MAJOR_VERSION//'`
64-
PHP_API_VERSION=`grep '#define PHP_API_VERSION' $includedir/main/php.h|$SED 's/#define PHP_API_VERSION//'`
6564
ZEND_MODULE_API_NO=`grep '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|$SED 's/#define ZEND_MODULE_API_NO//'`
6665
ZEND_EXTENSION_API_NO=`grep '#define ZEND_EXTENSION_API_NO' $includedir/Zend/zend_extensions.h|$SED 's/#define ZEND_EXTENSION_API_NO//'`
6766
}
@@ -71,7 +70,6 @@ phpize_print_api_numbers()
7170
phpize_get_api_numbers
7271
echo "Configuring for:"
7372
echo "PHP Version: ${PHP_MAJOR_VERSION}.${PHP_MINOR_VERSION}"
74-
echo "PHP Api Version: "$PHP_API_VERSION
7573
echo "Zend Module Api No: "$ZEND_MODULE_API_NO
7674
echo "Zend Extension Api No: "$ZEND_EXTENSION_API_NO
7775
}

0 commit comments

Comments
 (0)