Bug #53632 [Asn]: PHP hangs on numeric value 2.2250738585072011e-308

From: Date: Tue, 04 Jan 2011 08:02:32 +0000
Subject: Bug #53632 [Asn]: PHP hangs on numeric value 2.2250738585072011e-308
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157540@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53632&edit=1

 ID:                 53632
 Updated by:         scottmac@php.net
 Reported by:        exploringbinary at gmail dot com
 Summary:            PHP hangs on numeric value 2.2250738585072011e-308
 Status:             Assigned
 Type:               Bug
 Package:            Math related
 PHP Version:        5.3.4
 Assigned To:        dmitry
 Block user comment: N
 Private report:     N

 New Comment:

This only seems to affect 32-bit systems.


Previous Comments:
------------------------------------------------------------------------
[2011-01-04 08:59:21] yuv dot adm at gmail dot com

Check out the strace:

  lstat64("/home/ubuntu/junk/p.php", {st_mode=S_IFREG|0644, st_size=59,
...}) = 0
  lstat64("/home/ubuntu/junk", {st_mode=S_IFDIR|0755, st_size=4096,
...}) = 0
  lstat64("/home/ubuntu", {st_mode=S_IFDIR|0755, st_size=4096, ...}) =
0
  lstat64("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
  ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe51238) = -1  ENOTTY
(Inappropriate ioctl for device)
  fstat64(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0
  mmap2(NULL, 68, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78d1000

and then it hangs...

------------------------------------------------------------------------
[2011-01-04 08:55:01] aquilax at gmail dot com

It hangs on Debian:


aquilax@zelda /tmp> php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php5/20090626+lfs/adodb.so' -
/usr/lib/php5/20090626+lfs/adodb.so: 
cannot open shared object file: No such file or directory in Unknown on
line 0
PHP 5.3.3-6 with Suhosin-Patch (cli) (built: Dec  7 2010 18:23:49) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins
GmbH
aquilax@zelda /tmp> cat t.php 
<?php $d = 2.2250738585072011e-308; ?>
aquilax@zelda /tmp> time php t.php 
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php5/20090626+lfs/adodb.so' -
/usr/lib/php5/20090626+lfs/adodb.so: 
cannot open shared object file: No such file or directory in Unknown on
line 0
^CCommand terminated by signal 2
7.55user 0.02system 0:07.61elapsed 99%CPU (0avgtext+0avgdata
36720maxresident)k
0inputs+0outputs (0major+2620minor)pagefaults 0swaps

------------------------------------------------------------------------
[2011-01-04 08:31:04] yuv dot adm at gmail dot com

Does not reproduce on a mac, confirmed:

mac:junk yuval$ cat p.php 
<?php
echo "a";
$d = 2.2250738585072011e-308; 
echo "b\n";
mac:junk yuval$ php p.php 
ab
mac:junk yuval$ php -v
PHP 5.3.3 (cli) (built: Aug 22 2010 19:41:55) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

------------------------------------------------------------------------
[2011-01-04 06:48:58] cswarth at gmail dot com

Doesn't happen on a mac.

$ php -v
PHP 5.3.1 (cli) (built: Feb 11 2010 02:32:22) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies

$ php -r "print 2.2250738585072011e-308;"
2.2250738585072E-308

------------------------------------------------------------------------
[2011-01-02 16:52:43] exploringbinary at gmail dot com

I also get the same problem on Linux (PHP Version 5.3.2-1ubuntu4.5).

------------------------------------------------------------------------


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

    http://bugs.php.net/bug.php?id=53632


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53632&edit=1


Thread (42 messages)

« previous php.bugs (#157540) next »