embedded-php / ext-spi Goto Github PK
View Code? Open in Web Editor NEWEmbedded PHP: SPI Extension
License: Other
Embedded PHP: SPI Extension
License: Other
Hi,
i have install this extension on a Raspberry Pi and the "make test" looking good.
Is there an issue with this line?
Warning: PHP Startup: Unable to load dynamic library 'spi.so' (tried: /home/pi/ext-spi/modules/spi.so (/home/pi/ext-spi/modules/spi.so: undefined symbol: zend_class_unserialize_deny), /home/pi/ext-spi/modules/spi.so.so (/home/pi/ext-spi/modules/spi.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Now i have insert the extension in the php.ini with "extension=/home/pi/ext-spi/modules/spi.so" but the extension isn't loaded. I have look at "php -m".
Is there a sample of code how to use and insert the class into an php-script.
Sorry for that beginner-questions but i'm stucking for days on that point.
result of my "make test":
Build complete.
Don't forget to run 'make test'.
=====================================================================
PHP : /usr/bin/php8.0
PHP_SAPI : cli
PHP_VERSION : 8.0.15
ZEND_VERSION: 4.0.15
PHP_OS : Linux - Linux raspberrypi 5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l
INI actual : /home/pi/ext-spi/tmp-php.ini
More .INIs :
---------------------------------------------------------------------
PHP : /usr/bin/phpdbg8.1
PHP_SAPI : phpdbg
PHP_VERSION : 8.1.2
ZEND_VERSION: 4.1.2
PHP_OS : Linux - Linux raspberrypi 5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l
INI actual : /home/pi/ext-spi/tmp-php.ini
More .INIs :
Warning: PHP Startup: Unable to load dynamic library 'spi.so' (tried: /home/pi/ext-spi/modules/spi.so (/home/pi/ext-spi/modules/spi.so: undefined symbol: zend_class_unserialize_deny), /home/pi/ext-spi/modules/spi.so.so (/home/pi/ext-spi/modules/spi.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
---------------------------------------------------------------------
CWD : /home/pi/ext-spi
Extra dirs :
VALGRIND : Not used
=====================================================================
TIME START 2022-01-29 23:23:54
=====================================================================
PASS Check if phpspi is loaded [tests/001.phpt]
PASS Check if constants are defined [tests/002.phpt]
PASS Test SPI\Bus::transfer on a MOSI->MISO jumper connected device [tests/transfer.phpt]
=====================================================================
TIME END 2022-01-29 23:23:54
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 0
Exts tested : 16
---------------------------------------------------------------------
Number of tests : 3 3
Tests skipped : 0 ( 0.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 0 ( 0.0%) ( 0.0%)
Tests passed : 3 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken : 0 seconds
=====================================================================
thanks a lot for some hints...
Martin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.