Bug #72131 [Nab]: Calling number_format(null) causes curl to not decode chunks

From: Date: Mon, 02 May 2016 08:57:45 +0000
Subject: Bug #72131 [Nab]: Calling number_format(null) causes curl to not decode chunks
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200857@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72131&edit=1 ID: 72131 Updated by: mike@php.net Reported by: andre at webkr dot de Summary: Calling number_format(null) causes curl to not decode chunks Status: Not a bug Type: Bug Package: cURL related Operating System: Linux PHP Version: 5.5.35 Block user comment: N Private report: N New Comment: Err, actually file a bug for libcurl of your distribution. Previous Comments: ------------------------------------------------------------------------ [2016-05-02 08:56:52] mike@php.net Oookay, so doing a web search for the error message revealed: https://curl.haxx.se/mail/lib-2015-03/0111.html Looks like you have to upgrade libcurl or file a bug report against the maintainer of your PHP distribution. ------------------------------------------------------------------------ [2016-05-02 08:38:51] mike@php.net Also, cannot reproduce locally (didn't try the Dockerfile). ------------------------------------------------------------------------ [2016-05-02 08:33:29] mike@php.net I can hardly think of any relation, but I have another problem: I cannot locate this error message; what version of libcurl are you using? ------------------------------------------------------------------------ [2016-04-30 05:50:39] andre at webkr dot de Indeed the problem exists with number_format(0), too. So that is: number_format(null) -> problem number_format(0) -> problem number_format(1) -> no problem // number_format(0) -> no problem ------------------------------------------------------------------------ [2016-04-30 05:34:44] pajoye@php.net number_format(null); is the same than number_format(0); except if strict_types=1 is used. And nothing in the number_format function affects something in the current context or globally. (see http://lxr.php.net/xref/PHP_MASTER/ext/standard/math.c#1275) Only to confirm the issue, the problem disappears if you remove the if ($i >= 2) block altogether right? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=72131 -- Edit this bug report at https://bugs.php.net/bug.php?id=72131&edit=1

« previous php.bugs (#200857) next »