File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- Core:
6
6
. Fixed bug #74149 (static embed SAPI linkage error). (krakjoe)
7
+ . Fixed bug #73370 (falsely exits with "Out of Memory" when using
8
+ USE_ZEND_ALLOC=0). (Nikita)
7
9
8
10
- Date:
9
11
. Fixed bug #72096 (Swatch time value incorrect for dates before 1970). (mcq8)
Original file line number Diff line number Diff line change @@ -2818,7 +2818,7 @@ static ZEND_COLD ZEND_NORETURN void zend_out_of_memory(void)
2818
2818
ZEND_API void * __zend_malloc (size_t len )
2819
2819
{
2820
2820
void * tmp = malloc (len );
2821
- if (EXPECTED (tmp )) {
2821
+ if (EXPECTED (tmp || ! len )) {
2822
2822
return tmp ;
2823
2823
}
2824
2824
zend_out_of_memory ();
@@ -2834,7 +2834,7 @@ ZEND_API void * __zend_calloc(size_t nmemb, size_t len)
2834
2834
ZEND_API void * __zend_realloc (void * p , size_t len )
2835
2835
{
2836
2836
p = realloc (p , len );
2837
- if (EXPECTED (p )) {
2837
+ if (EXPECTED (p || ! len )) {
2838
2838
return p ;
2839
2839
}
2840
2840
zend_out_of_memory ();
You can’t perform that action at this time.
0 commit comments