Public bug reported:

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($openFileHandle) call,
providing >4G bytes of data.

This works under Ubuntu 8.04 LTS on 64 bit system.

r...@opusdev2:~# lsb_release -rd
Description:    Ubuntu lucid (development branch)
Release:        10.04
r...@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://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
r...@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://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
PHP5 under Apache2 on 64 bit system is not completely 64 bit 
https://bugs.launchpad.net/bugs/564920
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to