HTTP 500 on ARMv7 when initially F3 DEBUG is 0

by jernst, Sunday, January 07, 2018, 06:14 (191 days ago)

This is very strange, and I do not expect anybody to have an answer, but I'd like to just report what I'm seeing.

Background: I build the UBOS Linux distro, which makes it simple to install and maintain web applications on a variety of devices from single-board to cloud. Selfoss has been one of the available apps for quite some time, and it has been working just fine.

We are building the Selfoss package identically on x86_64, ARMv6 (Raspberry PI Zero and One), ARMv7 (Raspberry PI 2 and 3) and aarch64 (ESPRESSObin) and we are running the exact same smoke tests. Recently, the smoke test on the Raspberry Pi 3 has started failing -- all the others still work.

Sequence of steps to reproduce:

If I go into the web server directory, and invoke "php index.php", I get slightly more:

The each() function is deprecated. This message will be suppressed on further calls
an error occured

(yes, including the misspelling of "occurred")

Here comes the strange part. If I edit "common.php" and change this line:

$f3->set('DEBUG', 0);

to this:

$f3->set('DEBUG', 1);

the home page comes up correctly. But then if I change it right back to

$f3->set('DEBUG', 0);

it continues to work correctly.

Restarting Apache makes no difference in behavior. Once I set DEBUG to 1, there is a difference in the content of the "public" folder, but that's the only difference I could notice. However, if I preserve the original "public" folder, set DEBUG to 1 so it rewrites it, then set DEBUG back to 0 and replace the rewritten "public" folder with the preserved one, it continues to work.

Beats me.

This is PHP 7.2.0, Apache 2.4.29.

Complete thread:

 RSS Feed of thread

powered by my little forum