php-812 - current version of php (based on openssl 1.1) includes fix for mod_php81.so crash
4 files deleted
2 files added
5 files modified
| | |
| | | |
| | | COMPONENT_NAME= php |
| | | COMPONENT_MJR_VERSION= 8.1 |
| | | COMPONENT_MNR_VERSION= 1 |
| | | COMPONENT_MNR_VERSION= 2 |
| | | COMPONENT_SUMMARY= PHP 8.1 |
| | | COMPONENT_DESCRIPTION= PHP is a popular general-purpose scripting language that is especially suited to web development. |
| | | COMPONENT_CLASSIFICATION=Meta Packages/Group Packages |
| | |
| | | COMPONENT_PROJECT_URL= https://www.php.net/ |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
| | | COMPONENT_ARCHIVE_HASH= sha256:4e4cf3f843a5111f6c55cd21de8f26834ea3cd4a5be77c88357cbcec4a2d671d |
| | | COMPONENT_ARCHIVE_HASH= sha256:9992409c0543e0c8e89914f7307e1485a08c057091146e4731565b59065f8bde |
| | | COMPONENT_ARCHIVE_URL= https://www.php.net/distributions/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_SIG_URL= https://www.php.net/distributions/$(COMPONENT_ARCHIVE).asc |
| | | COMPONENT_LICENSE= PHP License |
| | |
| | | PHP_SYSCONFDIR= /etc/php/$(COMPONENT_MJR_VERSION) |
| | | PHP_DATADIR= /var/php/$(COMPONENT_MJR_VERSION) |
| | | |
| | | CFLAGS+= $(CC_BITS) -D_XPG4_2 -D__EXTENSIONS__ |
| | | # -D__solaris__ is very important to trigger patched file TSRM.h |
| | | # otherwise mod_php81.so is crashing |
| | | CFLAGS+= $(CC_BITS) -D_XPG4_2 -D__EXTENSIONS__ -D__solaris__ |
| | | CFLAGS+= -I/usr/include/openldap |
| | | CPPFLAGS+= $(CPP_XPG6MODE) |
| | | LDFLAGS+= -lldap_r |
| | |
| | | ; - /dev/poll (Solaris >= 7) |
| | | ; - port (Solaris >= 10) |
| | | ; Default Value: not set (auto detection) |
| | | ;events.mechanism = epoll |
| | | ;events.mechanism = /dev/poll |
| | | |
| | | ; When FPM is build with systemd integration, specify the interval, |
| | | ; in second, between health report notification to systemd. |
| | |
| | | user_dir = |
| | | |
| | | ; Directory in which the loadable extensions (modules) reside. |
| | | ;extension_dir = "/usr/lib/php/8.1/extensions" |
| | | ;extension_dir = "/usr/php/8.1/extensions" |
| | | |
| | | ; Whether or not to enable the dl() function. The dl() function does NOT work |
| | | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically |
| | |
| | | <IfModule !mod_php8.c> |
| | | LoadModule php8_module libexec/mod_php81.so |
| | | <IfModule !mod_php.c> |
| | | LoadModule php_module libexec/mod_php81.so |
| | | </IfModule> |
| | | <IfModule mod_php8.c> |
| | | <IfModule mod_php.c> |
| | | AddHandler application/x-httpd-php .php5 |
| | | AddHandler application/x-httpd-php .php |
| | | AddHandler application/x-httpd-php-source .php5s |
New file |
| | |
| | | --- php-8.1.2/ext/mysqli/mysqli.c 2022-01-30 17:33:12.644053038 +0000 |
| | | +++ php-8.1.2/ext/mysqli/mysqli.c.new 2022-01-30 17:32:58.157704436 +0000 |
| | | @@ -886,6 +886,7 @@ |
| | | snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MyG(num_links)); |
| | | php_info_print_table_row(2, "Active Links", buf); |
| | | #ifndef MYSQLI_USE_MYSQLND |
| | | +#include <server/mysql_version.h> |
| | | php_info_print_table_row(2, "Client API header version", MYSQL_SERVER_VERSION); |
| | | php_info_print_table_row(2, "MYSQLI_SOCKET", MYSQL_UNIX_ADDR); |
| | | #endif |
New file |
| | |
| | | # -D__solaris__ is very important |
| | | # otherwise mod_php81.so is crashing |
| | | --- php-8.1.2/TSRM/TSRM.h 2022-01-31 14:37:28.923622243 +0000 |
| | | +++ php-8.1.2/TSRM/TSRM.h.new 2022-01-31 14:35:45.389879307 +0000 |
| | | @@ -147,7 +147,7 @@ |
| | | # define __has_attribute(x) 0 |
| | | #endif |
| | | |
| | | -#if !__has_attribute(tls_model) || defined(__FreeBSD__) || defined(__MUSL__) |
| | | +#if !__has_attribute(tls_model) || defined(__FreeBSD__) || defined(__MUSL__) || defined(__solaris__) |
| | | # define TSRM_TLS_MODEL_ATTR |
| | | #elif __PIC__ |
| | | # define TSRM_TLS_MODEL_ATTR __attribute__((tls_model("initial-exec"))) |
| | |
| | | "text/aspell", |
| | | "text/oniguruma", |
| | | "text/tidy", |
| | | "web/curl", |
| | | "web/php-81/php-cli" |
| | | "web/curl" |
| | | ], |
| | | "fmris": [ |
| | | "web/php-81", |