Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetching an acpu_variable leads to "false" - although data is there #481

Open
AloisKlingler opened this issue Nov 28, 2022 · 0 comments
Open

Comments

@AloisKlingler
Copy link

hi,

I am using php-7.3 with php-apcu 5.1.17 (both from raspbian 10.13) in several php scripts.

I have mainly stored arrays in acpu-variables.
now on a pre-elementary check I noticed, that the variables after apcu_fetch are "false" - and most astonishing associative references to the arrays work.

e.g.:
$froniusvalues = apcu_fetch('froniusvalues');
shows me on "var_dump($froniusvalues)" only "false"
and
if (is_array($froniusvalues)) {
fails, but a line below
$froniusvalues["P_PV"];

works correctly.

any idea if I am doing something wrong, or what's strange there?

Thank you. :-)

BR
Alois

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant