File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ PHP NEWS
2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
3
?? ??? 2017 PHP 7.0.18
4
4
5
+ - Core:
6
+ . Fixed bug #73370 (falsely exits with "Out of Memory" when using
7
+ USE_ZEND_ALLOC=0). (Nikita)
8
+
5
9
- Date:
6
10
. Fixed bug #72096 (Swatch time value incorrect for dates before 1970). (mcq8)
7
11
Original file line number Diff line number Diff line change @@ -2862,7 +2862,7 @@ static ZEND_COLD ZEND_NORETURN void zend_out_of_memory(void)
2862
2862
ZEND_API void * __zend_malloc (size_t len )
2863
2863
{
2864
2864
void * tmp = malloc (len );
2865
- if (EXPECTED (tmp )) {
2865
+ if (EXPECTED (tmp || ! len )) {
2866
2866
return tmp ;
2867
2867
}
2868
2868
zend_out_of_memory ();
@@ -2878,7 +2878,7 @@ ZEND_API void * __zend_calloc(size_t nmemb, size_t len)
2878
2878
ZEND_API void * __zend_realloc (void * p , size_t len )
2879
2879
{
2880
2880
p = realloc (p , len );
2881
- if (EXPECTED (p )) {
2881
+ if (EXPECTED (p || ! len )) {
2882
2882
return p ;
2883
2883
}
2884
2884
zend_out_of_memory ();
You can’t perform that action at this time.
0 commit comments