[Bug 218891] [NEW] converting some doubles to strings yields trailing colon

2008-04-17 Thread Brett Kiefer
Public bug reported:

Binary package hint: php5

1) Description: Ubuntu hardy (development branch), Release: 8.04

2) module php5, Version: 5.2.4-2ubuntu5

3) I expect any number, divided by 10 times itself, then converted to a
string, to yield 0.1

4) In this release, sometimes I get 0.0: (yes, that's 0.0 with a
trailing colon character)

Detailed repro steps:

I can reproduce this bug on 32-bit Hardy Heron's default PHP, running on
VMWare, and have seen it on another user's non-VM setup.

Repro instructions:

$ php -v
PHP 5.2.4-2ubuntu5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 27 2008 
20:43:54) 
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

$ cat test.php
?php
for ($d = 0.10; $d  1; $d = $d + 0.1) print $d * 10 .   . ($d / ($d 
* 10)) . \n;
?
1) Description: Ubuntu hardy (development branch), Release: 8.04

2) module php5, Version: 5.2.4-2ubuntu5

$ php test.php
1 0.1
2 0.1
3 0.1
4 0.1
5 0.1
6 0.0:
7 0.0:
8 0.1
9 0.0:
10 0.1

Observed: Iterations 6, 7, and 9 have the output 0.0:
Expected: All of these should have the output 0.1

** Affects: php5 (Ubuntu)
 Importance: Undecided
 Status: New

-- 
converting some doubles to strings yields trailing colon
https://bugs.launchpad.net/bugs/218891
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 218891] [NEW] converting some doubles to strings yields trailing colon

2008-04-17 Thread Brett Kiefer
Public bug reported:

Binary package hint: php5

1) Description: Ubuntu hardy (development branch), Release: 8.04

2) module php5, Version: 5.2.4-2ubuntu5

3) I expect any number, divided by 10 times itself, then converted to a
string, to yield 0.1

4) In this release, sometimes I get 0.0: (yes, that's 0.0 with a
trailing colon character)

Detailed repro steps:

I can reproduce this bug on 32-bit Hardy Heron's default PHP, running on
VMWare, and have seen it on another user's non-VM setup.

Repro instructions:

$ php -v
PHP 5.2.4-2ubuntu5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 27 2008 
20:43:54) 
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

$ cat test.php
?php
for ($d = 0.10; $d  1; $d = $d + 0.1) print $d * 10 .   . ($d / ($d 
* 10)) . \n;
?
1) Description: Ubuntu hardy (development branch), Release: 8.04

2) module php5, Version: 5.2.4-2ubuntu5

$ php test.php
1 0.1
2 0.1
3 0.1
4 0.1
5 0.1
6 0.0:
7 0.0:
8 0.1
9 0.0:
10 0.1

Observed: Iterations 6, 7, and 9 have the output 0.0:
Expected: All of these should have the output 0.1

** Affects: php5 (Ubuntu)
 Importance: Undecided
 Status: New

-- 
converting some doubles to strings yields trailing colon
https://bugs.launchpad.net/bugs/218891
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs