PHP 4.0 Bug #4967: round function crashes when passed non-integer
| From: | warwick at imvs dot sa dot gov dot aau | Date: | Mon, 12 Jun 2000 01:47:27 +0000 |
| Subject: | PHP 4.0 Bug #4967: round function crashes when passed non-integer | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21068@lists.php.net to get a copy of this message | ||
From: warwick@imvs.sa.gov.aau
Operating system: Solaris 2.5.1 (RISC)
PHP version: 4.0.0 Release
PHP Bug Type: Misbehaving function
Bug description: round function crashes when passed non-integer
PHP crashes (ie stops running script) when passing the round function a non-integer. (useful?)
For example:
- round(10) - okay
- round(10.4) - crashes
- round(10.0) - crashes
Using Apache 1.3.12 with dynamic modules
Compiled with gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
Compile command:
./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
--with-config-file-path=/usr/local/apache/conf --enable-track-vars
System (according to phpinfo):
SunOS ringo 5.5.1 Generic_103640-27 sun4u sparc SUNW,Ultra-5_10
This problem does not occur with out Linux 2.2 box, which was compiled with same version of gcc and
running same version of Apache with dynamic modules.