[php-src] Issue #8026: imagepng - when passed only quality do not output into buffer

From: Date: Thu, 03 Feb 2022 14:48:28 +0000
Subject: [php-src] Issue #8026: imagepng - when passed only quality do not output into buffer
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239436@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8026 Author: steffdimitrov ### Description The following code: ```php <?php ob_start(); imagepng($resource, null, 98); $contents = ob_get_clean(); ob_end_flush(); var_dump($contents); ``` Resulted in this output: ``` string(0); ``` But I expected this output instead: ``` $content = <<<Binary data here >>> ``` Tested on php 7.3 but I think it is also applicable for other version using gd. ### PHP Version PHP 7.3.33 ### Operating System Ubuntu 20.04

« previous php.bugs (#239436) next »