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

PHP 32-bit issue #1

Closed
samaphp opened this issue Nov 9, 2019 · 1 comment
Closed

PHP 32-bit issue #1

samaphp opened this issue Nov 9, 2019 · 1 comment
Labels
fixed This has been officially fixed

Comments

@samaphp
Copy link
Owner

samaphp commented Nov 9, 2019

When I'm running this code on Raspberry pi 4 with 32 bit CPU I'm getting this error:

Warning: pack(): 64-bit format codes are not available for 32-bit versions of PHP in Samaphp\LifxLan\DataWrapper->wrap() (line 104 of vendor/samaphp/lifxlan/src/DataWrapper.php).
Samaphp\LifxLan\DataWrapper->wrap('Pvv', 0, 102, 0) (Line: 96)
Samaphp\LifxLan\DataWrapper->protocolHeaderData() (Line: 82)
Samaphp\LifxLan\Message\Light->setColor(65535, 0, 65535, 3200) (Line: 70)
Samaphp\LifxLan\Message\Light->setColorByName('white_warm', 100) (Line: 42)

My test code is:

$light_ip = '192.168.1.169';
$Light = new Light($light_ip);
$Light->setColorByName('white_warm', 100);
@samaphp
Copy link
Owner Author

samaphp commented Nov 9, 2019

I just pushed a new update and released it under v0.1.2.
I believe this update is fixing this issue, I will keep documenting any PHP 32-bit issues in this issue and will re-open this issue if there will be any issue related to PHP 32-bit.

@samaphp samaphp closed this as completed Nov 9, 2019
@samaphp samaphp added the fixed This has been officially fixed label Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed This has been officially fixed
Projects
None yet
Development

No branches or pull requests

1 participant