|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-05-27 07:39 UTC] eugene at zhegan dot in
[2011-07-15 11:37 UTC] dsp@php.net
-Assigned To:
+Assigned To: srinatar
[2011-07-15 11:37 UTC] dsp@php.net
[2011-07-19 14:26 UTC] srinatar@php.net
-Status: Assigned
+Status: Feedback
[2011-07-19 14:26 UTC] srinatar@php.net
[2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 12 23:00:01 2025 UTC |
Description: ------------ Build php on solaris with Sun compiler: The default build for 64 bits, i.e. CFLAGS='-m64' produces strange results. Rebuilding all with CFLAGS='-m64 -O -xs -xstrconst -zlazyload' seems to work. To reproduce it: $obj[0]['data'][0]['Usr'] = 0.009035; echo json_encode($obj); with just CFLAGS='-m64' [{"data":[{"Usr":INF}]}] with CFLAGS='-m64 -O -xs -xstrconst -zlazyload' [{"data":[{"Usr":0.009035}]}] which is correct. may be a problem in main/snprintf.c and in main/spprintf.c regards Test script: --------------- $obj[0]['data'][0]['Usr'] = 0.009035; echo json_encode($obj); Expected result: ---------------- [{"data":[{"Usr":0.009035}]}] Actual result: -------------- [{"data":[{"Usr":INF}]}]