mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: ext/gd: Fix comparison with result of php_stream_can_cast()
This commit is contained in:
3
NEWS
3
NEWS
@@ -15,6 +15,9 @@ PHP NEWS
|
||||
- FTP:
|
||||
. Fix theoretical issues with hrtime() not being available. (nielsdos)
|
||||
|
||||
- GD:
|
||||
. Fix incorrect comparison with result of php_stream_can_cast(). (Girgias)
|
||||
|
||||
- Hash:
|
||||
. Fix crash on clone failure. (nielsdos)
|
||||
|
||||
|
||||
@@ -1610,7 +1610,7 @@ static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type,
|
||||
pefree(pstr, 1);
|
||||
zend_string_release_ex(buff, 0);
|
||||
}
|
||||
else if (php_stream_can_cast(stream, PHP_STREAM_AS_STDIO)) {
|
||||
else if (php_stream_can_cast(stream, PHP_STREAM_AS_STDIO) == SUCCESS) {
|
||||
/* try and force the stream to be FILE* */
|
||||
if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_STDIO | PHP_STREAM_CAST_TRY_HARD, (void **) &fp, REPORT_ERRORS)) {
|
||||
goto out_err;
|
||||
|
||||
Reference in New Issue
Block a user