Bug 143514 - fc3 php breaks bw compat wrt double to long conversion
fc3 php breaks bw compat wrt double to long conversion
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: php (Show other bugs)
3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2005-04-19 03:51:54 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


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
integers.

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):
php-4.3.9-4

How reproducible:
Always

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:

http://www.redhat.com/archives/fedora-announce-list/2005-April/msg00033.html

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