PHP and 32 bits CPUs

Problems with packages? Post here, using [tags] of the package name.

PHP and 32 bits CPUs

Postby marco44 » Tue May 22, 2018 9:51 am

Hi,

I was having "failed to open stream: Value too large for defined data type" on a 32-bits ARM machine (with nextcloud). It is a consequence of PHP not being able to open larger than 2GB files.

Compiling the package adding $this->bbcode_second_pass_code('', 'CFLAGS+=' -D_FILE_OFFSET_BITS=64'') solves this problem. Is doing a PR for this a good idea ? (nextcloud cannot handle larger than 2GB files without this on 32 bits machines).

Regards
marco44
 
Posts: 3
Joined: Wed Apr 19, 2017 2:46 pm

Re: PHP and 32 bits CPUs

Postby WarheadsSE » Wed May 23, 2018 3:19 pm

As we don't currently override the `php` package, I think this might be best placed upstream, as this would help solve the problem for multiple downstream distributions from Arch Linux (ALARM, ArchLinux32)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: PHP and 32 bits CPUs

Postby marco44 » Thu May 24, 2018 9:41 am

Well, this has been attempted before…

https://bugs.archlinux.org/task/34036
marco44
 
Posts: 3
Joined: Wed Apr 19, 2017 2:46 pm

Re: PHP and 32 bits CPUs

Postby marco44 » Fri May 25, 2018 10:49 am

So I'm wondering, should I do an aur package ?
marco44
 
Posts: 3
Joined: Wed Apr 19, 2017 2:46 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 16 guests