Bug 143514 - fc3 php breaks bw compat wrt double to long conversion
fc3 php breaks bw compat wrt double to long conversion
Product: Fedora
Classification: Fedora
Component: php (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2004-12-21 15:21 EST by Oskari Saarenmaa
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version: 4.3.11-2.4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-04-19 03:51:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Oskari Saarenmaa 2004-12-21 15:21:22 EST
Description of problem:
When rolling new rpms for fc1 based on the current rpms in fc3 I
noticed that a change from php5 had been backported to php4 that
breaks backwards compatibility with regard to converting floats to

While I understand that the previous behaviour was undefined, it
worked for quite a few different purposes, and with this change I
don't see any obvious way to fix existing scripts.

PHP bug http://bugs.php.net/bug.php?id=30701 has some more information
and links to other related bugs in the php bug system.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. echo '<?php var_dump((int)0xffffffff) ?>' | php -q

Actual Results:  int(2147483647)

Expected Results:  int(-1)
Comment 1 Joe Orton 2004-12-21 17:28:13 EST
Note that the results of the above are different on the two platforms
 supported by FC3.  But maybe we should revert this in FC3 too.
Comment 2 Joe Orton 2005-04-19 03:51:54 EDT
Fixed in 4.3.11 update, thanks for the report:


Note You need to log in before you can comment on or make changes to this bug.