Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lang/php82: Update version 8.2.14=>8.2.15
Changelog: https://www.php.net/ChangeLog-8.php#8.2.15
- Loading branch information
Showing
8 changed files
with
129 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
TIMESTAMP = 1703153770 | ||
SHA256 (php-8.2.14.tar.xz) = 763ecd39fcf51c3815af6ef6e43fa9aa0d0bd8e5a615009e5f4780c92705f583 | ||
SIZE (php-8.2.14.tar.xz) = 12080468 | ||
TIMESTAMP = 1705528747 | ||
SHA256 (php-8.2.15.tar.xz) = eca5deac02d77d806838275f8a3024b38b35ac0a5d9853dcc71c6cbe3f1f8765 | ||
SIZE (php-8.2.15.tar.xz) = 12075384 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- ext/standard/filestat.c.orig 2024-01-17 22:33:41 UTC | ||
+++ ext/standard/filestat.c | ||
@@ -315,7 +315,11 @@ PHPAPI int php_get_gid_by_name(const char *name, gid_t | ||
char *grbuf; | ||
|
||
if (grbuflen < 1) { | ||
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE) | ||
+ grbuflen = sysconf(_SC_PAGESIZE); | ||
+#else | ||
return FAILURE; | ||
+#endif | ||
} | ||
|
||
grbuf = emalloc(grbuflen); | ||
@@ -441,7 +445,11 @@ PHPAPI uid_t php_get_uid_by_name(const char *name, uid | ||
char *pwbuf; | ||
|
||
if (pwbuflen < 1) { | ||
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE) | ||
+ pwbuflen = sysconf(_SC_PAGESIZE); | ||
+#else | ||
return FAILURE; | ||
+#endif | ||
} | ||
|
||
pwbuf = emalloc(pwbuflen); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- main/fopen_wrappers.c.orig 2024-01-17 22:32:57 UTC | ||
+++ main/fopen_wrappers.c | ||
@@ -369,7 +369,11 @@ PHPAPI int php_fopen_primary_script(zend_file_handle * | ||
char *pwbuf; | ||
|
||
if (pwbuflen < 1) { | ||
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE) | ||
+ buflen = sysconf(_SC_PAGESIZE); | ||
+#else | ||
return FAILURE; | ||
+#endif | ||
} | ||
|
||
pwbuf = emalloc(pwbuflen); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- main/main.c.orig 2024-01-17 22:30:20 UTC | ||
+++ main/main.c | ||
@@ -1448,7 +1448,11 @@ PHPAPI char *php_get_current_user(void) | ||
char *pwbuf; | ||
|
||
if (pwbuflen < 1) { | ||
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE) | ||
+ pwbuflen = sysconf(_SC_PAGESIZE); | ||
+#else | ||
return ""; | ||
+#endif | ||
} | ||
pwbuf = emalloc(pwbuflen); | ||
if (getpwuid_r(pstat->st_uid, &_pw, pwbuf, pwbuflen, &retpwptr) != 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- posix.c.orig 2024-01-17 22:35:53 UTC | ||
+++ posix.c | ||
@@ -465,7 +465,11 @@ PHP_FUNCTION(posix_ttyname) | ||
#if defined(ZTS) && defined(HAVE_TTYNAME_R) && defined(_SC_TTY_NAME_MAX) | ||
buflen = sysconf(_SC_TTY_NAME_MAX); | ||
if (buflen < 1) { | ||
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE) | ||
+ buflen = sysconf(_SC_PAGESIZE); | ||
+#else | ||
RETURN_FALSE; | ||
+#endif | ||
} | ||
p = emalloc(buflen); | ||
|
||
@@ -728,7 +732,11 @@ PHP_FUNCTION(posix_getgrnam) | ||
#if defined(ZTS) && defined(HAVE_GETGRNAM_R) && defined(_SC_GETGR_R_SIZE_MAX) | ||
buflen = sysconf(_SC_GETGR_R_SIZE_MAX); | ||
if (buflen < 1) { | ||
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE) | ||
+ buflen = sysconf(_SC_PAGESIZE); | ||
+#else | ||
RETURN_FALSE; | ||
+#endif | ||
} | ||
buf = emalloc(buflen); | ||
try_again: | ||
@@ -784,7 +792,11 @@ PHP_FUNCTION(posix_getgrgid) | ||
|
||
grbuflen = sysconf(_SC_GETGR_R_SIZE_MAX); | ||
if (grbuflen < 1) { | ||
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE) | ||
+ grbuflen = sysconf(_SC_PAGESIZE); | ||
+#else | ||
RETURN_FALSE; | ||
+#endif | ||
} | ||
|
||
grbuf = emalloc(grbuflen); | ||
@@ -858,7 +870,11 @@ PHP_FUNCTION(posix_getpwnam) | ||
#if defined(ZTS) && defined(_SC_GETPW_R_SIZE_MAX) && defined(HAVE_GETPWNAM_R) | ||
buflen = sysconf(_SC_GETPW_R_SIZE_MAX); | ||
if (buflen < 1) { | ||
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE) | ||
+ buflen = sysconf(_SC_PAGESIZE); | ||
+#else | ||
RETURN_FALSE; | ||
+#endif | ||
} | ||
buf = emalloc(buflen); | ||
pw = &pwbuf; | ||
@@ -913,7 +929,11 @@ PHP_FUNCTION(posix_getpwuid) | ||
#if defined(ZTS) && defined(_SC_GETPW_R_SIZE_MAX) && defined(HAVE_GETPWUID_R) | ||
pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); | ||
if (pwbuflen < 1) { | ||
+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE) | ||
+ pwbuflen = sysconf(_SC_PAGESIZE); | ||
+#else | ||
RETURN_FALSE; | ||
+#endif | ||
} | ||
pwbuf = emalloc(pwbuflen); | ||
|