Re: Re: #19259 [Csd->Ctl]: sort-functions don't work

From: Date: Sat, 16 Nov 2002 19:17:11 +0000
Subject: Re: Re: #19259 [Csd->Ctl]: sort-functions don't work
References: 1 2 3 4 5  Groups: php.dev 
Request: Send a blank email to php-dev+get-91142@lists.php.net to get a copy of this message
Marcus Börger <marcus.boerger@t-online.de> wrote: > Thanks it looks good - applied. Thanks, great. While we're at it, there's another test which fails on 64 bit machines and can easily be fixed: var_dump float test [ext/standard/tests/general_functions/008.phpt] This test fails because 123456789012 and 1234567890120 are PHP integers on 64 bit machines: ---- EXPECTED OUTPUT [...] [11]=> float(123456789012) [12]=> float(1234567890120) ---- ACTUAL OUTPUT [...] [11]=> int(123456789012) [12]=> int(1234567890123) The fix: --- ext/standard/tests/general_functions/008.phpt~ Wed Aug 21 03:27:56 2002 +++ ext/standard/tests/general_functions/008.phpt Sun Nov 10 22:50:29 2002 @@ -5,7 +5,7 @@ --FILE-- <?php // this checks f,g,G conversion for snprintf/spprintf -var_dump(array(ini_get('precision'),.012,-.012,.12,-.12,1.2,-1.2,12.,-12.,0.000123,.0000123,123456789012,1234567890123,12345678901234567890)); +var_dump(array(ini_get('precision'),.012,-.012,.12,-.12,1.2,-1.2,12.,-12.,0.000123,.0000123,123456789012,(float)1234567890123,(float)12345678901234567890)); ?> --EXPECT-- array(14) { Regards... Michael

« previous php.dev (#91142) next »