[php-src] PR #15965: fix printf negative infinity

From: Date: Fri, 20 Sep 2024 14:00:55 +0000
Subject: [php-src] PR #15965: fix printf negative infinity
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-28680@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/15965 Author: divinity76 sprintf("%.17g", -INF); should return -INF not INF resolves https://github.com/php/php-src/issues/15964 I tried fixing it inside php_sprintf_appendstring as it seems the original author intended, but.. that was difficult, and I broke other stuff. (I think php_sprintf_appendstring would benefit from using smart_str https://www.phpinternalsbook.com/php7/internal_types/strings/smart_str.html , but idk if the effort would be worth it)

« previous php.git-pulls (#28680) next »