Red Hat Bugzilla – Bug 143514
fc3 php breaks bw compat wrt double to long conversion
Last modified: 2007-11-30 17:10:57 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):
Steps to Reproduce:
1. echo '<?php var_dump((int)0xffffffff) ?>' | php -q
Actual Results: int(2147483647)
Expected Results: int(-1)
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.
Fixed in 4.3.11 update, thanks for the report: