File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1233,7 +1233,7 @@ PHP_FUNCTION(min)
1233
1233
}
1234
1234
} else {
1235
1235
/* mixed min ( mixed $value1 , mixed $value2 [, mixed $value3... ] ) */
1236
- zval * min , result ;
1236
+ zval * min ;
1237
1237
uint32_t i ;
1238
1238
1239
1239
min = & args [0 ];
@@ -1283,9 +1283,6 @@ PHP_FUNCTION(min)
1283
1283
if (zend_compare (& args [i ], min ) < 0 ) {
1284
1284
min = & args [i ];
1285
1285
}
1286
- if (Z_TYPE (result ) == IS_TRUE ) {
1287
- min = & args [i ];
1288
- }
1289
1286
}
1290
1287
}
1291
1288
@@ -1323,7 +1320,7 @@ PHP_FUNCTION(max)
1323
1320
}
1324
1321
} else {
1325
1322
/* mixed max ( mixed $value1 , mixed $value2 [, mixed $value3... ] ) */
1326
- zval * max , result ;
1323
+ zval * max ;
1327
1324
uint32_t i ;
1328
1325
1329
1326
max = & args [0 ];
@@ -1370,8 +1367,7 @@ PHP_FUNCTION(max)
1370
1367
} else {
1371
1368
for (i = 1 ; i < argc ; i ++ ) {
1372
1369
generic_compare :
1373
- is_smaller_or_equal_function (& result , & args [i ], max );
1374
- if (Z_TYPE (result ) == IS_FALSE ) {
1370
+ if (zend_compare (& args [i ], max ) > 0 ) {
1375
1371
max = & args [i ];
1376
1372
}
1377
1373
}
You can’t perform that action at this time.
0 commit comments