|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-06-30 11:54 UTC] postings-php-bug at hans-spath dot de
Description:
------------
Yeah right. PI = 3 ... given a big enough 3 and a small enough pi ...
Reproduce code:
---------------
<? var_dump(array(M_PI,pi())); ?>
Expected result:
----------------
M:\php>echo "<? var_dump(array(M_PI,pi())); ?>" | 431\php -q
"array(2) {
[0]=>
float(3.1415926535898)
[1]=>
float(3.1415926535898)
}
"
Actual result:
--------------
M:\php>echo "<? var_dump(array(M_PI,pi())); ?>" | 500b1\php -q
"array(2) {
[0]=>
float(3)
[1]=>
float(3)
}
"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
Tested on Win2k SP3, fails exactly as described by reporter: C:\PHP\5.0.0b1>echo "<? var_dump(array(M_PI,pi())); ?>" | php -q "array(2) { [0]=> float(3) [1]=> float(3) } " Definitely not bogus.Ok, I've tested one of the CVS-snaps, and it worked. So I think it's "closed" now and not "bogus". M:\php\php5-win32-200306301130>echo "<? var_dump(array(M_PI,pi())); ?>" | php -q "array(2) { [0]=> float(3.1415926535898) [1]=> float(3.1415926535898) }