PHP5 under Apache2 on 64 bit system is not completely 64 bit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Fix Released
|
Low
|
Thierry Carrez | ||
Lucid |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: php5
Something in php5 running under apache2 under Ubuntu 10.04 beta 2 (with updates) is not fully 64 bit aware on a 64 bit system. PHP scripts run under Apache correctly under Ubuntu 8.04 LTS (with latest updates). Under Ubuntu 10.04 beta 2, some place a value is being treated as 32 bits on a 64 bit system and is wrapping instead of using full 64 bits. Related to sending large data (> 4G) in response to an HTTP post request.
What is expected: Full data (>4G) downloaded via dynamic PHP based URL.
What happens: Data aborts based on wrap. Calculated number of bytes to be served are correct (>4G) as listed in the HTTP length header. Actual bytes served are (size) && 0xFFFFFFFF instead of (size) && 0xFFFFFFFFFFFFFFFF on 64 bit system.
Most of data is being transfered via fpassthru(
This works under Ubuntu 8.04 LTS on 64 bit system.
root@opusdev2:~# lsb_release -rd
Description: Ubuntu lucid (development branch)
Release: 10.04
root@opusdev2:~# apt-cache policy php5
php5:
Installed: 5.3.2-1ubuntu4
Candidate: 5.3.2-1ubuntu4
Version table:
*** 5.3.2-1ubuntu4 0
500 http://
100 /var/lib/
root@opusdev2:~# apt-cache policy php5
php5:
Installed: 5.3.2-1ubuntu4
Candidate: 5.3.2-1ubuntu4
Version table:
*** 5.3.2-1ubuntu4 0
500 http://
100 /var/lib/
Related branches
- Thierry Carrez (community): Approve
- Ubuntu branches: Pending requested
-
Diff: 50 lines (+30/-0)3 files modifieddebian/changelog (+6/-0)
debian/patches/lp564920-fix-big-files.patch (+23/-0)
debian/patches/series (+1/-0)
- Thierry Carrez (community): Approve
- Chuck Short: Pending requested
- Ubuntu branches: Pending requested
-
Diff: 51 lines (+31/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/lp564920-fix-big-files.patch (+23/-0)
debian/patches/series (+1/-0)
- Clint Byrum (community): Disapprove
- Chuck Short: Pending requested
-
Diff: 925 lines (+381/-160)11 files modifieddebian/changelog (+63/-0)
debian/control (+140/-113)
debian/maxlifetime (+1/-1)
debian/patches/CVE-2010-2950.patch (+2/-7)
debian/patches/CVE-2010-3710.patch (+35/-0)
debian/patches/fix-ftbfs-and-dso.patch (+55/-0)
debian/patches/php-5.3.4-ini.patch (+30/-0)
debian/patches/php_crypt_revamped.patch (+37/-23)
debian/patches/series (+5/-4)
debian/patches/use_system_crypt_fixes.patch (+11/-8)
debian/rules (+2/-4)
Changed in php5 (Ubuntu): | |
assignee: | nobody → Chuck Short (zulcss) |
tags: | added: patch |
Changed in php5 (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | Chuck Short (zulcss) → Clint Byrum (clint-fewbar) |
Changed in php5 (Ubuntu): | |
assignee: | Chuck Short (zulcss) → Thierry Carrez (ttx) |
Changed in php5 (Ubuntu Lucid): | |
status: | New → Confirmed |
Changed in php5 (Ubuntu Lucid): | |
assignee: | nobody → Thierry Carrez (ttx) |
importance: | Undecided → Medium |
status: | Confirmed → In Progress |
Was php5 compiled with -D_LARGEFILE_SOURCE and -D_FILE_ OFFSET_ BITS=64 on 64 bit systems?